Error reading SSH protocol banner / No handlers could be found for logger "paramiko.transport"

Hey guys,

i’m using ansible now since some month (awesome, thanks!) to deploy an system repeatedly to freshly booted ec2 instances.
Since a few days now i’m faced with such errors (from time to time onl):

build	08-Jan-2014 12:00:45	     [exec] changed: [ec2-54-211-133-206.compute-1.amazonaws.com] => (item=swapon /swapfile)
build	08-Jan-2014 12:00:52	     [exec] No handlers could be found for logger "paramiko.transport"
build	08-Jan-2014 12:00:53	     [exec] fatal: [ec2-54-204-61-146.compute-1.amazonaws.com] => {'msg': 'One or more items failed.', 'failed': True, 'changed': True, 'results': [{u'changed': True, u'end': u'2014-01-08 06:00:28.736316', u'stdout': u'', 'item': u'dd if=/dev/zero of=/swapfile bs=1M count=4096', u'cmd': u'dd if=/dev/zero of=/swapfile bs=1M count=4096 ', u'rc': 0, u'start': u'2014-01-08 05:59:41.348336', u'stderr': u'4096+0 records in\n4096+0 records out\n4294967296 bytes (4.3 GB) copied, 47.3796 s, 90.7 MB/s', u'delta': u'0:00:47.387980', 'invocation': {'module_name': 'shell', 'module_args': u'dd if=/dev/zero of=/swapfile bs=1M count=4096'}}, {'msg': 'FAILED: Error reading SSH protocol banner', 'failed': True}]}

Any ideas about that ?
The only difference i recognized is that now i’m using ansible 1.4 instead of 1.3 previously.
Is there an easy way do install ansible in an 1.3 version to pinpoint this ? (Currently i just install it via ‘yum -y install ansible’)

Any help appreciated!
Johannes

BTW: i’m using accelerated mode.

Rather than going back, I’d recommend you go forward.

The current version of Ansible is 1.4.4, which contains various fixes along the way on top of 1.4, in particular accelerate mode in 1.4.1

It’s very likely though that in 1.5 (current devel branch), accelerate mode is obviated by the new optimized SSH connection, “-c ssh_alt”, which will soon replace the default ssh.py

We’re even thinking making it only add ControlPersist when relevant, and that it could also replace paramiko completely as well.

You may be interested in trying out “-c ssh_alt”, and should get equally nice performance relative to accelerate. (Major points to Jerome Wagner for a really smart optimization!)