Replace strategy of time.sleep(s_value) waiting for an image to
reach 'active' with a time-bounded wait-for-status loop function.
That way we can have a more generous s_value, which seems to
sometimes be needed in the gates, without having to use that much
time on every run.
I picked the initial s_value as 4x what was in the current code,
though given that some of the other gate tests run >1 hour, we could
easily make it 600 sec without lengthening the current minimum
time-to-verification of a patch.
Reviewed: https:/ /review. openstack. org/564649 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=b2179479db2 8bb222412f700c0 9985578b935084
Committed: https:/
Submitter: Zuul
Branch: master
commit b2179479db28bb2 22412f700c09985 578b935084
Author: Brian Rosmaita <email address hidden>
Date: Thu Apr 26 19:04:58 2018 -0400
Add time-bounded wait-for-status to func tests
Replace strategy of time.sleep(s_value) waiting for an image to
reach 'active' with a time-bounded wait-for-status loop function.
That way we can have a more generous s_value, which seems to
sometimes be needed in the gates, without having to use that much
time on every run.
I picked the initial s_value as 4x what was in the current code, to-verification of a patch.
though given that some of the other gate tests run >1 hour, we could
easily make it 600 sec without lengthening the current minimum
time-
Closes-bug: #1767142 12c7b6d90fa89e7 fd4161422d3
Change-Id: Ib771079348d222