4c94c6f9ba
* 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
5 lines
490 B
YAML
5 lines
490 B
YAML
---
|
|
cloudscale_test_flavor: flex-2
|
|
cloudscale_test_image: debian-9
|
|
cloudscale_test_ssh_key: |
|
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSPmiqkvDH1/+MDAVDZT8381aYqp73Odz8cnD5hegNhqtXajqtiH0umVg7HybX3wt1HjcrwKJovZURcIbbcDvzdH2bnYbF93T4OLXA0bIfuIp6M86x1iutFtXdpN3TTicINrmSXEE2Ydm51iMu77B08ZERjVaToya2F7vC+egfoPvibf7OLxE336a5tPCywavvNihQjL8sjgpDT5AAScjb3YqK/6VLeQ18Ggt8/ufINsYkb+9/Ji/3OcGFeflnDXq80vPUyF3u4iIylob6RSZenC38cXmQB05tRNxS1B6BXCjMRdy0v4pa7oKM2GA4ADKpNrr0RI9ed+peRFwmsclH test@ansible
|