community.general/lib/ansible
Gaudenz Steinlin 4c94c6f9ba cloudscale_server: add timeout param and increase default timeout (#33088)
* Improve error message in cloudscale_server module

Fix punctuation and add the full contents of "info" to the output in
case of failed API calls. This is useful in case of connection timeouts
and other error conditions where there is no response body available.

* Increase timeouts in cloudscale_server module

Increase the timeouts to not fail in case the API calls take a bit
longer than usual. The default timeout of fetch_url is 10s which is
quite short. Increase it to 30s. The timeout for waiting for a server
change is increased as well as it calls the API in a loop. Therefore
this value should be larger than the API timeout.

* Send API parameters as JSON in cloudscale_server module

Use JSON to send the POST data to the API instead of an urlencoded
string. Urlencoding is not really a good match for some Python
datatypes.

This fixes an issue when submitting a list of SSH keys which did not get
translated properly.

* Fix typo in cloudscale_server documentation

* cloudscale_sever: Replace timeout const by api_timeout param

Replace the static TIMEOUT_API constant by a user configurable
api_timeout parameter. Also eliminate the TIMEOUT_WAIT constant by
2*api_timeout. This means that the timeout to wait for server changes is
always double the timeout for API calls.

* Use Debian 9 image for cloudscale_server tests
2017-11-22 10:30:31 +01:00
..
cli jsonify inventory (#32990) 2017-11-21 13:41:27 -08:00
compat Create a short license for PSF and MIT. (#32212) 2017-11-06 10:25:30 -08:00
config Config continued (#31024) 2017-11-16 13:49:57 -05:00
errors Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
executor Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
galaxy Fix IndexError raised on galaxy-install 2017-11-14 09:54:52 -05:00
inventory Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
module_utils Ensure that readonly result members are serialized (#33169) 2017-11-21 20:12:32 -05:00
modules cloudscale_server: add timeout param and increase default timeout (#33088) 2017-11-22 10:30:31 +01:00
parsing Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
playbook Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
plugins make vars only group declarations an error 2017-11-21 14:40:02 -05:00
template Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
utils Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
vars fix item var in delegation (#32986) 2017-11-20 09:29:55 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fixes eos sending 'None' to device (#33015) 2017-11-17 11:33:54 -05:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00