Output of ImageUnacceptable exception is wrong

Bug #1825277 reported by yenai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Undecided
yenai

Bug Description

Create a boot-volume when the qemu-img of cinder-volume is not installed.
The output of ImageUnacceptable is: Image f0085e76-3bd9-410c-9a99-170a550f9acb 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.
Obviously, the description should be [......and image is of type qcow2...], qcow2 is the disk format of the image.

Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server [None req-545fcda8-e888-4f58-823a-4d1cafa387b8 None None] Exception during message handling: ImageUnacceptable: Image f0085e76-3bd9-410c-9a99-170a550f9acb 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.
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server Traceback (most recent call last):
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 166, in _process_incoming
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "<decorator-gen-673>", line 2, in create_volume
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/objects/cleanable.py", line 208, in wrapper
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server result = f(*args, **kwargs)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 749, in create_volume
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server _run_flow()
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 741, in _run_flow
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server flow_engine.run()
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server for _state in self.run_iter(timeout=timeout):
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server failure.Failure.reraise_if_any(er_failures)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 339, in reraise_if_any
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server failures[0].reraise()
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 346, in reraise
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server six.reraise(*self._exc_info)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server result = task.execute(**arguments)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 970, in execute
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server **volume_spec)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 860, in _create_from_image
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server image_service)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "<decorator-gen-672>", line 2, in _prepare_image_cache_entry
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/coordination.py", line 151, in _synchronized
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server return f(*a, **k)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 660, in _prepare_image_cache_entry
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server update_cache=True)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 733, in _create_from_image_cache_or_download
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server backend_name) as tmp_image:
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server return self.gen.next()
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/image/image_utils.py", line 849, in fetch
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server fetch_verify_image(context, image_service, image_id, tmp)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/image/image_utils.py", line 478, in fetch_verify_image
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server dest, run_as_root)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/image/image_utils.py", line 454, in get_qemu_data
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server image_id=image_id)
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server ImageUnacceptable: Image f0085e76-3bd9-410c-9a99-170a550f9acb 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.
Jan 13 20:30:10 localhost.localdomain cinder-volume[83314]: ERROR oslo_messaging.rpc.server

yenai (yenai2008)
Changed in cinder:
assignee: nobody → yenai (yenai2008)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/653649

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by "Eric Harney <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/653649

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.