Skip to content

Commit

Permalink
Add debug to 105 test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkavanagh committed May 13, 2020
1 parent d9a7cae commit b7d2d52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zaza/openstack/charm_tests/cinder/tests.py
Expand Up @@ -126,12 +126,18 @@ def test_100_volume_create_extend_delete(self):

def test_105_volume_create_from_img(self):
"""Test creating a volume from an image."""
logging.debug("finding image {} ..."
.format(glance_setup.LTS_IMAGE_NAME)
image = self.nova_client.glance.find_image(
glance_setup.LTS_IMAGE_NAME)
logging.debug("using cinder_client to create volume from image {}"
.format(image.id))
vol_img = self.cinder_client.volumes.create(
name='{}-105-vol-from-img'.format(self.RESOURCE_PREFIX),
size=3,
imageRef=image.id)
logging.debug("now waiting for volume {} to reach available"
.format(vol_img.id))
openstack_utils.resource_reaches_status(
self.cinder_client.volumes,
vol_img.id,
Expand Down

0 comments on commit b7d2d52

Please sign in to comment.