cinder-volume is not able to convert images to raw:
|__Flow 'volume_create_manager': cinder.exception.ImageUnacceptable: Image 8b07a606-ba98-4208-9605-8ffbd12371cc is unacceptable: qemu-img is not installed and image is of type False. Only RAW images can be used if qemu-img is not installed.
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager Traceback (most recent call last):
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/image/image_utils.py", line 493, in get_qemu_data
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager force_share=force_share)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/image/image_utils.py", line 138, in qemu_img_info
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager prlimit=QEMU_IMG_LIMITS)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/utils.py", line 126, in execute
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager return processutils.execute(*cmd, **kwargs)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/oslo_concurrency/processutils.py", line 424, in execute
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager cmd=sanitized_cmd)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager Command: /var/lib/openstack/bin/python -m oslo_concurrency.prlimit --as=1073741824 --cpu=60 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/conversion/tmpw8zy6s3vcinder-volume-worker@rbd1
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager Exit code: 1
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager Stdout: ''
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager Stderr: 'sudo: unable to send audit message\nsudo: pam_open_session: System error\nsudo: policy plugin failed session initialization\n'
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager During handling of the above exception, another exception occurred:
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager Traceback (most recent call last):
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager result = task.execute(**arguments)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 1135, in execute
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager **volume_spec)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/utils.py", line 696, in _wrapper
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager return r.call(f, *args, **kwargs)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/retrying.py", line 206, in call
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager return attempt.get(self._wrap_exception)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/retrying.py", line 247, in get
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager six.reraise(self.value[0], self.value[1], self.value[2])
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/six.py", line 703, in reraise
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager raise value
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/retrying.py", line 200, in call
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 1025, in _create_from_image
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager image_service)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "<decorator-gen-718>", line 2, in _prepare_image_cache_entry
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/coordination.py", line 151, in _synchronized
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager return f(*a, **k)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 823, in _prepare_image_cache_entry
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager update_cache=True)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/volume/flows/manager/create_volume.py", line 897, in _create_from_image_cache_or_download
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager backend_name) as tmp_image:
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager return next(self.gen)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/image/image_utils.py", line 946, in fetch
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager fetch_verify_image(context, image_service, image_id, tmp)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/image/image_utils.py", line 530, in fetch_verify_image
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager dest, run_as_root)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager File "/var/lib/openstack/lib/python3.6/site-packages/cinder/image/image_utils.py", line 506, in get_qemu_data
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager image_id=image_id)
2020-11-10 17:15:24.871 11 ERROR cinder.volume.manager cinder.exception.ImageUnacceptable: Image 8b07a606-ba98-4208-9605-8ffbd12371cc is unacceptable: qemu-img is not installed and image is of type False. Only RAW images can be used if qemu-img is not installed.
tested with train and ussuri from openstackhelm dockerhub.
qemu-img is installed:
$ kubectl exec -ti cinder-volume-584b984b97-5mb6t -n openstack -- which qemu-img
/usr/bin/qemu-img
$ kubectl exec -ti cinder-volume-584b984b97-5mb6t -n openstack -- qemu-img --version
qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.32)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers