Random SSH connection reset during EC2 provisionning

50 views
Skip to first unread message

Warren Seine

unread,
Apr 8, 2015, 10:34:22 AM4/8/15
to ansible...@googlegroups.com
Hi,

I use Ansible to provision Ubuntu 14.04 machines. Some machines are at a dedicated provider's, some are EC2 instances. Provisionning works great for the first ones, but sometimes fails with EC2 VMs. The failure is typically an SSH disconnection. Error messages usually indicate "Connection closed by peer" or similar depending on the log level and the step where it fails. They happen randomly during the provisioning which takes about 15 minutes. If I re-provision, it may succeed.

I guess this is not Ansible's fault, but I was wondering if someone had the same experience. I'm using a vanilla Ubuntu AMI and haven't tweaked the SSH settings at all.

Thanks,
Warren.

Mark

unread,
Apr 13, 2015, 3:18:23 PM4/13/15
to ansible...@googlegroups.com
I've run into similar issues, provisioning to RHEL servers from Ubuntu.   Either SSH connection refused, terminated, reset, etc.  I've even tried uploading my ubuntu VM to ESXi, and get the same thing there.   I'm backing down to 1.8.4 of Ansible to see if it still occurs,  I don't think I ran into these issues until the package was upgraded.

Warren Seine

unread,
Apr 14, 2015, 8:15:03 AM4/14/15
to ansible...@googlegroups.com
I'm using Ansible 1.8.3, from OS X to Ubuntu 14.04.

I ended up using Ansible locally on the EC2 machine. Not only it works all the time, but it's also about 10x faster.

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/VWPzhjD3r2w/unsubscribe.
To unsubscribe from this group and all its topics, 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/f7ccb96f-3f5e-4fb0-aaa0-3a163c4e547d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Warren Seine


Founder and CTO of Aerys | aerys.in
Reply all
Reply to author
Forward
0 new messages