Timeouts using AWS modules

27 views
Skip to first unread message

Karl Auer

unread,
Aug 28, 2018, 10:31:10 AM8/28/18
to ansible-project
I am getting a LOT of read timeouts working with AWS modules. The commonest is with ec2_group, but I've seen it with elb_application_lb and a couple of others as well. Sometimes running the playbook again gets past it, sometimes not. With biggish playbooks it is getting to be  real problem.

Is this something I can do anything about?
Regards, K.

Sample (sorry about the formatting):

TASK [sg : Create a security group ADFS-wap-sg protecting WAP instances] *********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ssl.SSLError: ('The read operation timed out',)
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_NEDa9I/ansible_module_ec2_group.py\", line 1021, in <module>\n    main()\n  File \"/tmp/ansible_NEDa9I/ansible_module_ec2_group.py\", line 890, in main\n    group, groups = group_exists(client, module, vpc_id, group_id, name)\n  File \"/tmp/ansible_NEDa9I/ansible_module_ec2_group.py\", line 831, in group_exists\n    all_groups = get_security_groups_with_backoff(client).get('SecurityGroups', [])\n  File \"/tmp/ansible_NEDa9I/ansible_modlib.zip/ansible/module_utils/cloud.py\", line 153, in retry_func\nssl.SSLError: ('The read operation timed out',)\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}


--
Karl Auer

Email  : ka...@2pisoftware.com
Website: 
http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

Pshem Kowalczyk

unread,
Aug 29, 2018, 12:44:52 AM8/29/18
to ansible...@googlegroups.com
This generally indicates connectivity problems. Are you behind a proxy of some sort (might be transparent). I have seen those sort of issues in various corporate environments that used proxies to inspect all traffic.

kind regards
Pshem


--
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/CA%2B%2BT08TUciST1HkdLjuDjcKJqMWjcFeLzWFz1O2iZN2AgEhzeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Karl Auer

unread,
Aug 29, 2018, 12:50:16 AM8/29/18
to ansible-project
Nope, it's not a connectivity, or not that sort of connectivity issue. It's been getting worse with each version of Ansible, though that is correlation, not necessarily causation :-)

Everything I do is on localhost, running ansible AWS modules, which talk to AWS rather than to actual hosts. I find it a bit suspicious that the lion's share of the issues are with security groups, but I'm not sure what I'm suspicious of :-)

Regards, K.



On Wed, Aug 29, 2018 at 2:44 PM, Pshem Kowalczyk <psh...@gmail.com> wrote:
This generally indicates connectivity problems. Are you behind a proxy of some sort (might be transparent). I have seen those sort of issues in various corporate environments that used proxies to inspect all traffic.

kind regards
Pshem


On Wed, 29 Aug 2018 at 02:31 Karl Auer <ka...@2pisoftware.com> wrote:
I am getting a LOT of read timeouts working with AWS modules. The commonest is with ec2_group, but I've seen it with elb_application_lb and a couple of others as well. Sometimes running the playbook again gets past it, sometimes not. With biggish playbooks it is getting to be  real problem.

Is this something I can do anything about?
Regards, K.

Sample (sorry about the formatting):

TASK [sg : Create a security group ADFS-wap-sg protecting WAP instances] *********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ssl.SSLError: ('The read operation timed out',)
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_NEDa9I/ansible_module_ec2_group.py\", line 1021, in <module>\n    main()\n  File \"/tmp/ansible_NEDa9I/ansible_module_ec2_group.py\", line 890, in main\n    group, groups = group_exists(client, module, vpc_id, group_id, name)\n  File \"/tmp/ansible_NEDa9I/ansible_module_ec2_group.py\", line 831, in group_exists\n    all_groups = get_security_groups_with_backoff(client).get('SecurityGroups', [])\n  File \"/tmp/ansible_NEDa9I/ansible_modlib.zip/ansible/module_utils/cloud.py\", line 153, in retry_func\nssl.SSLError: ('The read operation timed out',)\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}


--
Karl Auer

Email  : ka...@2pisoftware.com
Website: 
http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

--
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-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.

--
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-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEaZiRUsSetgxXTq9%2B7GNQOHMwtFror96SXOUgv9cb4qsQLKbw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages