After create_server returns check for an ERROR status and raise an exception. Since the ERROR state is unrecoverable there is no need to wait for glance_cache_wait_timeout to expire. glance_cache_wait_timeout is usually set to higher values than the other timeouts used with the OpenStack API. In CI scenarios where server create failures are more painful due to volume this change eliminates most of this wait time and allows the CI job to enter its retry logic sooner.
Issues Resolved
n/a
Check List
[X] All tests pass. See TESTING.md for details.
[X] New functionality includes testing.
New functionality has been documented in the README if applicable.
Description
After create_server returns check for an ERROR status and raise an exception. Since the ERROR state is unrecoverable there is no need to wait for glance_cache_wait_timeout to expire. glance_cache_wait_timeout is usually set to higher values than the other timeouts used with the OpenStack API. In CI scenarios where server create failures are more painful due to volume this change eliminates most of this wait time and allows the CI job to enter its retry logic sooner.
Issues Resolved
n/a
Check List
New functionality has been documented in the README if applicable.