Create boot volume form raw image failed when qemu-img is not installed

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

Bug Description

Create boot volume form raw image failed when qemu-img is not installed

Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server [None req-f05e1256-fbf1-4f6c-b9b9-51a61e1080cd None None] Exception during message handling: ProcessExecutionError: Unexpected errorr while running command.
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: Command: /usr/bin/python -m oslo_concurrency.prlimit --as=1073741824 --cpu=8 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /opt/stack/data/cinder/conversion/tmpFt1Ao2localhost.localdomain@lvmdriver-1
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: Exit code: 96
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: Stdout: u''
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: qemu-img (filter match = qemu-img)\n'
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server Traceback (most recent call last):
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 166, in _process_incoming
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "<decorator-gen-673>", line 2, in create_volume
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/objects/cleanable.py", line 208, in wrapper
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server result = f(*args, **kwargs)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 749, in create_volume
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server _run_flow()
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 741, in _run_flow
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server flow_engine.run()
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server for _state in self.run_iter(timeout=timeout):
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: 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 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server failure.Failure.reraise_if_any(er_failures)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 339, in reraise_if_any
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server failures[0].reraise()
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 346, in reraise
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server six.reraise(*self._exc_info)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: 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 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server result = task.execute(**arguments)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 970, in execute
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server **volume_spec)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 860, in _create_from_image
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server image_service)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "<decorator-gen-672>", line 2, in _prepare_image_cache_entry
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/coordination.py", line 151, in _synchronized
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server return f(*a, **k)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: 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 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server update_cache=True)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 748, in _create_from_image_cache_or_download
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server data = image_utils.qemu_img_info(tmp_image)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/image/image_utils.py", line 110, in qemu_img_info
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server prlimit=QEMU_IMG_LIMITS)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/utils.py", line 128, in execute
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server return processutils.execute(*cmd, **kwargs)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 424, in execute
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server cmd=sanitized_cmd)
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server ProcessExecutionError: Unexpected error while running command.
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server Command: /usr/bin/python -m oslo_concurrency.prlimit --as=1073741824 --cpu=8 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /opt/stack/data/cinder/conversion/tmpFt1Ao2localhost.localdomain@lvmdriver-1
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server Exit code: 96
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server Stdout: u''
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: ERROR oslo_messaging.rpc.server Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: qemu-img (filter match = qemu-img)\n'
Jan 13 22:09:15 localhost.localdomain cinder-volume[92137]: 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/653694

Changed in cinder:
status: New → In Progress
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.