Comment 6 for bug 1828858

Revision history for this message
Wendy Mitchell (wmitchellwr) wrote :

successfully created a volume from a ubuntu image (in qcow2 format)
BUILD_ID="2019-05-24_17-39-51"

{"log":"2019-05-27 17:36:19.812 19 INFO cinder.volume.flows.manager.create_volume [req-1cd60072-7133-43ff-9a1d-3cf0be6b3790 bd792b11e0014ae2aee2c562d9ee246d 549263dfcb73441a9436d6a934d62fba - default default] Volume 66c83b97-40a6-471e-913b-4f2797c199bb: being created as image with specification: {'status': u'creating', 'image_location': (u'rbd://45d2e1b8-6d93-4d62-b3d7-4b5dfecfa83a/images/60cfee11-686c-43ee-9991-0439403a3902/snap', None), 'volume_size': 20, 'volume_name': u'66c83b97-40a6-471e-913b-4f2797c199bb', 'image_id': u'60cfee11-686c-43ee-9991-0439403a3902', 'image_service': \u003ccinder.image.glance.GlanceImageService object at 0x7fb073dda4d0\u003e, 'image_meta': {u'container_format': u'bare', u'min_ram': 0, u'updated_at': datetime.datetime(2019, 5, 27, 14, 51, 15, tzinfo=\u003ciso8601.Utc\u003e), u'file': u'/v2/images/60cfee11-686c-43ee-9991-0439403a3902/file', u'owner': u'77d8bc21c72a44c6a185aab143e37116', u'id': u'60cfee11-686c-43ee-9991-0439403a3902', u'size': 260440576, u'disk_format': u'qcow2', u'os_hash_algo': u'sha512', u'direct_url': u'rbd://45d2e1b8-6d93-4d62-b3d7-4b5dfecfa83a/images/60cfee11-686c-43ee-9991-0439403a3902/snap', u'status': u'active', u'tags': [], u'visibility': u'public', u'min_disk': 0, u'virtual_size': None, 'properties': {}, u'name': u'ubuntu_14', u'checksum': u'c1b6664df43550fd5684fe85cdd3ddc3', u'created_at': datetime.datetime(2019, 5, 27, 14, 51, tzinfo=\u003ciso8601.Utc\u003e), u'os_hidden': False, u'protected': False, u'os_hash_value': u'e68b9faba509d917aa9994bc1a3f4d0c287313c28590f1e3fbda2d0e904123cb951b6dcb121dea10de6df4bb7da4573ae1625e8bb116fce382e6e067d9a32238'}}\n","stream":"stdout","time":"2019-05-27T17:36:19.813081446Z"}
{"log":"2019-05-27 17:38:16.430 19 INFO cinder.volume.flows.manager.create_volume [req-1cd60072-7133-43ff-9a1d-3cf0be6b3790 bd792b11e0014ae2aee2c562d9ee246d 549263dfcb73441a9436d6a934d62fba - default default] Volume 66c83b97-40a6-471e-913b-4f2797c199bb (66c83b97-40a6-471e-913b-4f2797c199bb): created successfully\n","stream":"stdout","time":"2019-05-27T17:38:16.431029438Z"}
{"log":"2019-05-27 17:38:16.430 19 INFO cinder.volume.flows.manager.create_volume [req-1cd60072-7133-43ff-9a1d-3cf0be6b3790 bd792b11e0014ae2aee2c562d9ee246d 549263dfcb73441a9436d6a934d62fba - default default] Volume 66c83b97-40a6-471e-913b-4f2797c199bb (66c83b97-40a6-471e-913b-4f2797c199bb): created successfully\n","stream":"stdout","time":"2019-05-27T17:38:16.43133285Z"}

Note also that if the original image is not qcow2 format the volume will launch in error (see cinder log output for the error). In this case it will successfully delete while in error.

ImageCopyFailure: Failed to copy image to volume: qemu-img: Could not open '/var/lib/cinder/conversion/tmpDBfYDLcinder-volume-worker@ceph-store': Image is not in qcow2 format\