Wrongful lack of space message when converting qcow2 image for volume usage

Bug #1756271 reported by J-P methot
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

Error message:

2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume [req-f49d18a7-2205-48a8-88d9-f58907290fcb e2ba899a73234781894b58b0bc9edf6a 25350ba8c24946cebe79d2b77f74c61a - default default] Failed to copy image 4f94bf76-84be-4e19-91cc-3609062a9824 to volume: 36dc6b52-a65d-4a10-9997-d18230c5b12c: ImageTooBig: Image 4f94bf76-84be-4e19-91cc-3609062a9824 size exceeded available disk space: There is no space to convert image. Requested: 26843545600, available: 25220710400
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume Traceback (most recent call last):
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 555, in _copy_image_to_volume
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume context, volume, image_service, image_id)
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/driver.py", line 791, in copy_image_to_volume
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume context, volume, image_service, image_id, encrypted=False)
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/driver.py", line 832, in _copy_image_data_to_volume
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume {'image_id': image_id})
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume self.force_reraise()
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume six.reraise(self.type_, self.value, self.tb)
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/driver.py", line 826, in _copy_image_data_to_volume
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume size=volume['size'])
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 339, in fetch_to_raw
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume run_as_root=run_as_root)
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 412, in fetch_to_volume_format
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume check_available_space(dest, data.virtual_size, image_id)
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 517, in check_available_space
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume raise exception.ImageTooBig(image_id=image_id, reason=msg)
2018-03-16 02:07:21.079 4140 ERROR cinder.volume.flows.manager.create_volume ImageTooBig: Image 4f94bf76-84be-4e19-91cc-3609062a9824 size exceeded available disk space: There is no space to convert image. Requested: 26843545600, available: 25220710400

Description:
Since updating to the latest RDO-Pike, I have an issue with provisioning a specific image on a volume. It appears that Cinder believes that there is not enough space on disk to do the conversion. My uncompressed image is indeed about 26 GB. However, I have 288 GB of space available to cinder for conversion. Hence, the 25220710400 value appears to be coming out of nowhere. The volume creation does conclude, but the result is an empty volume.

This issue might be linked to this bug : https://bugs.launchpad.net/cinder/+bug/1737551 . At the very least, I have undone the patch introduced to fix this bug and provisioning for this image works now. Whether this is a regression or not is yet to be proven however.

Additional info:
OS: CentOS 7
Cinder package version: openstack-cinder-11.1.0-1.el7
Storage type: ISCSI

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.