nova/smoketests
Dan Prince 731c6b1d5d Fix wait_for_deleted function in SmokeTests.
Fixes the wait_for_not_running function in smoketests/base.py so
that it short circuits when an instance ID is deleted rather than
waits 60 seconds (the timeout). Previously this function had
two problems:

 1) It used Boto's instance.update() instead of instance.update(validate=True).
 Since update() returns returns quietly if no data about the instance was
 returned (aka the instance has been deleted) it effectively made this
 function almost always wait for the timeout (60 seconds). This makes the
 tests take about a minute longer than they need to unless #2 below
 occurs...

 2) It also introduced a race condition in that... if hit just right
 the instance.state would get set to 'terminated'. Which would cause
 the loop to short circuit. This might seem correct at first glance but
 in fact causes intermittent failures in some of the netadmin tests
 because security groups can't be deleted if a running (or exiting)
 instance is still assigned to them. In fact wait_for_not_running
 was added to guard against just this in the first place!

Also, renames the base.wait_for_not_running function to be
called wait_for_deleted (that is what we are really doing here)

Change-Id: I4486995a7d9028d876366e8d7a2c845520319b86
2012-11-21 10:57:25 -05:00
..
__init__.py Remove outdated moduleauthor tags 2012-10-01 15:25:47 -07:00
base.py Fix wait_for_deleted function in SmokeTests. 2012-11-21 10:57:25 -05:00
flags.py fixes and refactoring of smoketests 2011-01-22 16:20:36 -08:00
proxy.sh Make proxy.sh work with both openbsd and traditional variants of netcat. 2011-03-18 11:27:38 +01:00
public_network_smoketests.py Run hacking tests as part of the gate. 2012-07-02 08:50:41 -04:00
random.image remove openwrt image 2011-08-15 11:31:44 -07:00
random.kernel remove openwrt image 2011-08-15 11:31:44 -07:00
run_tests.py Fix no attribute 'STD_OUT_HANDLE' on windows 2012-11-02 14:42:25 -04:00
test_netadmin.py Fix wait_for_deleted function in SmokeTests. 2012-11-21 10:57:25 -05:00
test_sysadmin.py Update vol mount smoketest to wait for volume. 2012-11-12 15:36:32 -05:00