ansible/test/legacy
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
..
group_vars Reorganize integration tests: 2017-09-14 07:14:30 -07:00
host_vars Reorganize integration tests: 2017-09-14 07:14:30 -07:00
roles cloudscale_server: add timeout param and increase default timeout (#33088) 2017-11-22 10:30:31 +01:00
vars Reorganize integration tests: 2017-09-14 07:14:30 -07:00
amazon.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
azure.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cleanup_azure.py Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cleanup_ec2.py Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cleanup_gce.py Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cleanup_rax.py Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cloudflare.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cloudscale.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
cnos.yaml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
connection-buildah.yaml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
consul.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
consul_inventory.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
consul_running.py Reorganize integration tests: 2017-09-14 07:14:30 -07:00
credentials.template Reorganize integration tests: 2017-09-14 07:14:30 -07:00
exoscale.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
galaxy_playbook.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
galaxy_playbook_git.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
galaxy_roles.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
galaxy_rolesfile Reorganize integration tests: 2017-09-14 07:14:30 -07:00
gce.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
gce_credentials.py Reorganize integration tests: 2017-09-14 07:14:30 -07:00
integration_config.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
inventory Reorganize integration tests: 2017-09-14 07:14:30 -07:00
inventory.yaml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
jenkins.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
Makefile remove unused ssh pipelining setters 2017-10-03 09:22:01 -04:00
netscaler.yaml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
nuage.yaml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
ovs.yaml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
rackspace.yml Reorganize integration tests: 2017-09-14 07:14:30 -07:00
setup_gce.py Reorganize integration tests: 2017-09-14 07:14:30 -07:00