Timeouts using AWS modules

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 \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}

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

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 :slight_smile:

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 :slight_smile:

Regards, K.