community.general/lib/ansible
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
..
cli better message for unsupported include/imports 2017-10-09 20:49:11 -07:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config Update base.yml to add enos from lenovo (#31565) 2017-10-12 13:34:08 +01:00
errors report extra info in verbose and if needed 2017-10-03 16:48:21 -04:00
executor move from with_<lookup>: to loop: 2017-10-10 15:43:49 -04:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory Fix Inventory Plugin Loading (#31605) 2017-10-11 17:28:11 -07:00
module_utils cs_snapshot_policy: fix VM not found in non-default zone 2017-10-11 18:35:54 +02:00
modules wait_for: treat broken connections as "unready" (#28839) 2017-10-12 11:37:20 -04:00
parsing Fix typo in vault decrypt error message (#31335) 2017-10-05 18:09:22 -04:00
playbook Fix static determination for include_tasks 2017-10-11 17:30:45 -07:00
plugins etcd.py module improved . added posibility to configure from playbook… (#18580) 2017-10-12 15:55:59 +01:00
template Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
utils Create document fragment for enos modules (#31512) 2017-10-12 13:33:04 +01:00
vars move from with_<lookup>: to loop: 2017-10-10 15:43:49 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fix backwards compatibility of constants.get_config 2017-10-03 09:19:04 -04:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00