summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2015-09-14 13:56:19 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2015-09-16 14:55:44 +0000
commiteb2d84aa1c9fec961c15c2a149504e5780e87815 (patch)
tree1ede7bf8bc9058535c8897a38f27b42e5e4bb48f
parent47af849a36aefadbf86f1b387ba72332bbf38a5c (diff)
downloadciat-tester-eb2d84aa1c9fec961c15c2a149504e5780e87815.tar.gz
Need delay before image removal to avoid silently failing.
-rwxr-xr-xopenstack/tester5
1 files changed, 5 insertions, 0 deletions
diff --git a/openstack/tester b/openstack/tester
index 8c687b4..7d68056 100755
--- a/openstack/tester
+++ b/openstack/tester
@@ -128,6 +128,11 @@ class DeployedSystemInstance(object):
# wasn't running
print "- Failed"
pass
+
+ # Sleep for a bit, or nova silently fails to delete the image
+ # TODO: Test whether the image has been deleted in a retry loop.
+ time.sleep(20)
+
print "Deleting %s test disc image" % (self.hostname)
try:
cliapp.runcmd(['nova', 'image-delete', self.hostname])