aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Powell <ppowell@redhat.com>2016-07-11 09:52:54 -0400
committerPatrick Powell <ppowell@redhat.com>2016-07-14 10:49:46 -0400
commite7251f164018ade6d172514536286ea40d6fac25 (patch)
treecc452ef6ee4842c4d17137ac9e0f9d2718b3876e
parent51504c35976474b704470d9a4bbc02b5ba715436 (diff)
downloadkolla-e7251f164018ade6d172514536286ea40d6fac25.tar.gz
kolla-e7251f164018ade6d172514536286ea40d6fac25.zip
Improve glance sanity check
Checks to see if a blank glance image was loaded correctly partially-implements: blueprint sanity-check-container Change-Id: I29549518e726b9530897ef31b120dd3759d1b279
-rw-r--r--docker/kolla-toolbox/kolla_sanity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/kolla-toolbox/kolla_sanity.py b/docker/kolla-toolbox/kolla_sanity.py
index c13854e9f..c6fce08d1 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):