SSH connection slow after going from 1.6 to 1.8

209 views
Skip to first unread message

Thomas Fuchs

unread,
Oct 30, 2014, 9:34:32 PM10/30/14
to ansible...@googlegroups.com
Hi there!

I've these options in my ansible.cfg:

[ssh_connection]
pipelining=True
ssh_args=-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=7200s

On an older version (Ansible 1.6 development, shortly before 1.7 was final), these settings make deploying relatively fast.

On Ansible 1.8 (devel fe0ab8e750, from earlier today), deploying is really, really, really slow.

How can update the settings/has configuration changed?

Thanks,
Thomas

 

Matt Martz

unread,
Nov 2, 2014, 8:32:10 PM11/2/14
to ansible...@googlegroups.com
What is your control machine (machine you are running ansible from)?

Ansible 1.8 now chooses paramiko as the "smart" transport when running from Mac. If this is your case, you will need to set transport = ssh under defaults as well.

You can verify if you are using ssh or paramiko by running with -vvvv, which may help trace things down regardless of this being the case.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ace1ba41-76fb-44d5-8bea-0d5406b90bf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Michael DeHaan

unread,
Nov 3, 2014, 9:28:52 AM11/3/14
to ansible...@googlegroups.com
"Ansible 1.8 now chooses paramiko as the "smart" transport when running from Mac. If this is your case, you will need to set transport = ssh under defaults as well."

Actually it doesn't.

Darwin has a somewhat common error where "askpass" for SSH can occasionally kernel panic the machine (I'm almost positive this is due to iCloud keychain - possibly a keychain plugin - or something like it), so we'll use paramiko by default there in 1.8 to avoid this happening.

We've considered making it do this only if it thinks it needs a password, but that's possibly confusing.

I think it's time to make that change now though, and I'll see that we do.



Michael DeHaan

unread,
Nov 3, 2014, 9:30:32 AM11/3/14
to ansible...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages