Cannot create cinder volume from image
Issue
- A cinder volume cannot be created from a glance image and will output an error message in
/var/log/cinder/volume.logsimilar to the following :
2015-10-06 08:48:38.022 7407 DEBUG oslo_concurrency.processutils [req-2011387d-5443-47af-aecd-f5bff9e53061 fdbf90ae7bc54fb487e23f53dff306c3 432c71216e3149f7ac182138758a6b85 - - -] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/conversion/tmpV9cvou execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199
2015-10-06 08:48:38.236 7407 DEBUG oslo_concurrency.processutils [req-2011387d-5443-47af-aecd-f5bff9e53061 fdbf90ae7bc54fb487e23f53dff306c3 432c71216e3149f7ac182138758a6b85 - - -] CMD "sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/conversion/tmpV9cvou" returned: 1 in 0.215s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225
2015-10-06 08:48:38.239 7407 DEBUG oslo_concurrency.processutils [req-2011387d-5443-47af-aecd-f5bff9e53061 fdbf90ae7bc54fb487e23f53dff306c3 432c71216e3149f7ac182138758a6b85 - - -] u'sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/conversion/tmpV9cvou' failed. Not Retrying. execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:258
2015-10-06 08:48:38.243 7407 ERROR cinder.volume.flows.manager.create_volume [req-2011387d-5443-47af-aecd-f5bff9e53061 fdbf90ae7bc54fb487e23f53dff306c3 432c71216e3149f7ac182138758a6b85 - - -] Failed to copy image to volume: 45ed8ea8-75fd-4ca4-b9dd-2578c46f0af7
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume Traceback (most recent call last):
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 501, in _copy_image_to_volume
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume copy_image_to_volume(context, volume_ref, image_service, image_id)
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume return f(*args, **kwargs)
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 858, in copy_image_to_volume
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume size=volume['size'])
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 226, in fetch_to_raw
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume run_as_root=run_as_root)
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 259, in fetch_to_volume_format
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume image_id=image_id)
2015-10-06 08:48:38.243 7407 TRACE cinder.volume.flows.manager.create_volume ImageUnacceptable: Image f21de4f6-4dd3-44d5-914e-d4e10ddc6500 is unacceptable: qemu-img is not installed and image is of type qcow2. Only RAW images can be used if qemu-img is not installed.
Environment
- Red Hat OpenStack platform.
- Ceph backend.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
