diff --git a/fuelweb_test/helpers/os_actions.py b/fuelweb_test/helpers/os_actions.py index e0290cf97..77b002dae 100644 --- a/fuelweb_test/helpers/os_actions.py +++ b/fuelweb_test/helpers/os_actions.py @@ -379,7 +379,8 @@ class OpenStackActions(common.Common): def create_image(self, **kwargs): image = self.glance.images.create(**kwargs) logger.info("Created image: '{0}'".format(image.id)) - return self.glance.images.get(image.id) + logger.info("Image status: '{0}'".format(image.status)) + return image def get_image_list(self): return self.glance.images.list() diff --git a/fuelweb_test/tests/test_ceph.py b/fuelweb_test/tests/test_ceph.py index 3a5e3ce3e..ad6996c8d 100644 --- a/fuelweb_test/tests/test_ceph.py +++ b/fuelweb_test/tests/test_ceph.py @@ -118,7 +118,12 @@ class CephCompact(TestBasic): image_data = BytesIO(bytearray(self.__class__.__name__)) image = os_conn.create_image(disk_format='raw', container_format='bare', + name='test_ceph_cinder_cow', + is_public=True, data=image_data) + wait(lambda: os_conn.get_image(image.name).status == 'active', + timeout=60 * 2, timeout_msg='Image is not active') + volume = os_conn.create_volume(size=1, image_id=image.id) with self.fuel_web.get_ssh_for_node('slave-01') as remote: