Improve glance sanity check

Checks to see if a blank glance image was loaded correctly
partially-implements: blueprint sanity-check-container

Change-Id: I29549518e726b9530897ef31b120dd3759d1b279
This commit is contained in:
Patrick Powell 2016-07-11 09:52:54 -04:00
parent 51504c3597
commit e7251f1640

View File

@ -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):