From e7251f164018ade6d172514536286ea40d6fac25 Mon Sep 17 00:00:00 2001 From: Patrick Powell Date: Mon, 11 Jul 2016 09:52:54 -0400 Subject: [PATCH] Improve glance sanity check Checks to see if a blank glance image was loaded correctly partially-implements: blueprint sanity-check-container Change-Id: I29549518e726b9530897ef31b120dd3759d1b279 --- docker/kolla-toolbox/kolla_sanity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/kolla-toolbox/kolla_sanity.py b/docker/kolla-toolbox/kolla_sanity.py index c13854e9f2..c6fce08d1a 100644 --- a/docker/kolla-toolbox/kolla_sanity.py +++ b/docker/kolla-toolbox/kolla_sanity.py @@ -34,7 +34,9 @@ class SanityChecks(object): @staticmethod def glance(cloud): - [image for image in cloud.glance_client.images.list()] + open("/tmp/blank.qcow2", 'a').close() + cloud.create_image("test", filename="/tmp/blank.qcow2", + disk_format="qcow2", container_format="bare") @staticmethod def cinder(cloud):