Clean up Glance image after sanity check

The sanity check creates an image that needs to be
deleted after in order for the sanity check to
pass so that we complete deployment with a clean
enviroment.
Closes-bug: #1606580

Change-Id: Ib347f69b69229e39925f0c1ff11069b15afcf192
This commit is contained in:
Patrick Powell 2016-07-26 10:01:55 -04:00
parent b44abe078f
commit 4f3efd7d4b
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ class SanityChecks(object):
open("/tmp/blank.qcow2", 'a').close() open("/tmp/blank.qcow2", 'a').close()
cloud.create_image("test", filename="/tmp/blank.qcow2", cloud.create_image("test", filename="/tmp/blank.qcow2",
disk_format="qcow2", container_format="bare") disk_format="qcow2", container_format="bare")
testid = cloud.get_image_id("test")
cloud.delete_image(testid)
@staticmethod @staticmethod
def cinder(cloud): def cinder(cloud):