ansible/test/legacy/roles
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
..
azure_rm_networkinterface/tasks
azure_rm_resourcegroup/tasks
cloudscale_server cloudscale_server: add timeout param and increase default timeout (#33088) 2017-11-22 10:30:31 +01:00
cnos_backup
cnos_bgp Add a code-smell test for smart quotes and remove smart quotes from all files 2017-09-18 16:49:16 -07:00
cnos_command
cnos_conditional_command
cnos_conditional_template
cnos_ethernet
cnos_facts
cnos_image Add a code-smell test for smart quotes and remove smart quotes from all files 2017-09-18 16:49:16 -07:00
cnos_portchannel
cnos_rollback Add a code-smell test for smart quotes and remove smart quotes from all files 2017-09-18 16:49:16 -07:00
cnos_save
cnos_showrun
cnos_template
cnos_vlag
cnos_vlan
ec2_elb_instance_setup
ec2_provision_instances
netscaler_cs_action
netscaler_cs_policy
netscaler_cs_vserver
netscaler_gslb_service
netscaler_gslb_site
netscaler_gslb_vserver
netscaler_lb_monitor
netscaler_lb_vserver
netscaler_save_config
netscaler_server
netscaler_service
netscaler_servicegroup
netscaler_ssl_certkey
prepare_rax_tests/defaults
prepare_tests/tasks
test_azure
test_cloudflare_dns
test_consul_acl
test_consul_inventory/tasks
test_consul_kv/tasks
test_consul_service/tasks
test_consul_session/tasks
test_ec2
test_ec2_asg/tasks
test_ec2_eip
test_ec2_elb
test_ec2_vpc_nat_gateway
test_exoscale_dns
test_gcdns
test_gce
test_gce_labels
test_gce_mig
test_gce_net
test_gce_pd
test_gce_tag
test_gcp_glb
test_gcp_healthcheck
test_gcp_url_map
test_jenkins_job
test_rax
test_rax_cbs
test_rax_cbs_attachments
test_rax_cdb
test_rax_cdb_database
test_rax_clb
test_rax_clb_nodes
test_rax_facts
test_rax_identity
test_rax_keypair
test_rax_meta
test_rax_network
test_rax_scaling_group
setup_ec2
setup_sshkey