From 4f3efd7d4b37f40e2c29a8dac3e5d759559c3dd0 Mon Sep 17 00:00:00 2001 From: Patrick Powell Date: Tue, 26 Jul 2016 10:01:55 -0400 Subject: [PATCH] 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 --- docker/kolla-toolbox/kolla_sanity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/kolla-toolbox/kolla_sanity.py b/docker/kolla-toolbox/kolla_sanity.py index c6fce08d1a..d2d2d4e481 100644 --- a/docker/kolla-toolbox/kolla_sanity.py +++ b/docker/kolla-toolbox/kolla_sanity.py @@ -37,6 +37,8 @@ class SanityChecks(object): open("/tmp/blank.qcow2", 'a').close() cloud.create_image("test", filename="/tmp/blank.qcow2", disk_format="qcow2", container_format="bare") + testid = cloud.get_image_id("test") + cloud.delete_image(testid) @staticmethod def cinder(cloud):