tempest/tempest/common
Dan Smith ef8e054b6b Make import wait check for store status
During a glance import, if we fail, we are not going to change the
state of the image in all cases, and definitely not to 'active'.
Thus waiting for active just means we keep polling a broken image
for a long time, wasting resources. We should also be checking the
list of failed stores, and if something pops in there, abort right
then and there.

This patch makes us use the wait_for_image_imported_to_stores()
waiter, and modifies it to not look at image['stores'] if no
stores are provided. In the case where we don't have multistore
support enabled, we won't be able to know that the import failed
until we time out, but otherwise we will (barring a glance bug for
which I also have a fix). This also makes the waiter not fail on
KeyError if os_glance_failed_import is not present on the image,
as would be the case if used when stores are not enabled.

Note that I'm doing this because sometimes web-download fails in the
gate due to a timeout trying to pull our http_image and we just keep
looping until our own timeout instead of noticing. It also means
we just report "never reached active state" instead of what we know
to be true, which is that import failed.

Change-Id: Ie0569b84dd1c397a79d13af609bf23db52a2dfc8
2021-02-08 09:56:57 -08:00
..
utils Move horizon test from tempest-horizon to tempest 2021-01-22 00:11:44 +00:00
__init__.py Changes the namespace from storm to tempest, as well as adding addition tests and improvements 2011-12-06 16:48:03 -06:00
compute.py Merge "Remove six.PY3/six.PY2" 2020-11-27 01:52:40 +00:00
credentials_factory.py Add system scope for admin auth 2021-01-11 19:11:45 +00:00
custom_matchers.py Remove checking of Accept-Range header 2020-07-08 08:55:18 +00:00
identity.py Add autopep8 to tox.ini 2019-03-08 16:04:05 +01:00
image.py Replace six.iteritems with dict.items 2017-01-03 23:17:34 +00:00
tempest_fixtures.py Update all Oslo module use 2015-03-11 21:07:56 +00:00
waiters.py Make import wait check for store status 2021-02-08 09:56:57 -08:00