Skip to content
Snippets Groups Projects
Commit 4f3efd7d authored by Patrick Powell's avatar Patrick Powell
Browse files

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
parent b44abe07
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,8 @@ class SanityChecks(object): ...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment