community.general/lib/ansible/modules
sethp-nr 402b095841 wait_for: treat broken connections as "unready" (#28839)
* wait_for: treat broken connections as "unready"

We have observed the following condition while waiting for hosts:

```
Traceback (most recent call last):
  File "/var/folders/f8/23xp00654plcv2b2tcc028680000gn/T/ansible_8hxm4_/ansible_module_wait_for.py", line 585, in <module>
    main()
  File "/var/folders/f8/23xp00654plcv2b2tcc028680000gn/T/ansible_8hxm4_/ansible_module_wait_for.py", line 535, in main
    s.shutdown(socket.SHUT_RDWR)
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 57] Socket is not connected
```

This appears to happen while the host is still starting; we believe something is
accepting our connection but immediately resetting it. In these cases, we'd
prefer to continue waiting instead of immediately failing the play.

This patch has been applied locally for some time, and we have seen no adverse
effects.

* wait_for: fixup change

We were missing an import and a space after the `#`
2017-10-12 11:37:20 -04:00
..
cloud vmware_vm_facts: Add error check for config.vm (#31629) 2017-10-12 10:32:06 -04:00
clustering kubernetes: PEP8 compliancy and doc fixes (#30914) 2017-09-29 01:51:23 -04:00
commands Fixes #30073: Remove 'Consider hg command' warning. (#31159) 2017-10-02 23:33:13 +02:00
crypto openssl_certificate: compare bytes with bytes on python3 (#30522) 2017-09-25 12:13:50 -07:00
database Port arg specs from type='str' to type='path' 2017-10-09 21:15:56 -07:00
files Corrects examples in the find module. (#31522) 2017-10-12 09:43:18 +10:00
identity ipa_sudorule: Fix issue #25863 (#26285) 2017-09-27 03:51:59 -04:00
inventory clarified inventory_dir changes for 2.4 (#31484) 2017-10-09 20:56:32 -07:00
messaging Add max_priority to give priority ability to a queue 2017-09-08 16:09:50 -07:00
monitoring Remove boundary_meter module as the hosted service it configured has been removed. (#31506) 2017-10-12 09:12:37 +10:00
net_tools Port arg specs from type='str' to type='path' 2017-10-09 21:15:56 -07:00
network Adding enos/__init__.py (#31580) 2017-10-12 13:34:36 +01:00
notification mail: Fix charset encoding issue 2017-09-21 01:07:53 +02:00
packaging yum: fix crashes installing from file/url 2017-10-10 11:39:47 -07:00
remote_management foreman: PEP8 compliancy and doc fixes (#30910) 2017-10-03 09:50:27 +02:00
source_control Revert "fix git wrapper (#29069)" 2017-10-04 12:55:57 -07:00
storage Enable more pylint rules and fix reported issues. (#30539) 2017-09-18 23:20:32 -07:00
system Remove sysctl entries when state=absent (#31486) 2017-10-10 09:01:33 -07:00
utilities wait_for: treat broken connections as "unready" (#28839) 2017-10-12 11:37:20 -04:00
web_infrastructure Port arg specs from type='str' to type='path' 2017-10-09 21:15:56 -07:00
windows minor updates + tests to win_firewall_rule as per jborean93 review (#29148) 2017-10-10 16:23:08 +10:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00