get_qemu_img_version raise "OSError: [Errno 2] No such file or directory" when qemu-img is not installed insteadof a WARNING log "qemu-img is not installed.".
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server [None req-3a9b4069-bb33-4559-af68-e5ca48109bf3 None None] Exception during message handling: OSError: [Errno 2] No such file or directory
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server Traceback (most recent call last):
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: 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:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: 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:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "<decorator-gen-673>", line 2, in create_volume
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/objects/cleanable.py", line 208, in wrapper
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server result = f(*args, **kwargs)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 749, in create_volume
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server _run_flow()
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 741, in _run_flow
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server flow_engine.run()
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: 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:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server for _state in self.run_iter(timeout=timeout):
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: 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:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server failure.Failure.reraise_if_any(er_failures)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: 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:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server failures[0].reraise()
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 346, in reraise
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server six.reraise(*self._exc_info)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: 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:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server result = task.execute(**arguments)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 971, in execute
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server **volume_spec)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 861, in _create_from_image
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server image_service)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "<decorator-gen-672>", line 2, in _prepare_image_cache_entry
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/coordination.py", line 151, in _synchronized
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server return f(*a, **k)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: 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:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server update_cache=True)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 749, in _create_from_image_cache_or_download
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server tmp_image, image_meta)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/image/image_utils.py", line 691, in get_image_virtual_size
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server qemu_version = get_qemu_img_version()
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/image/image_utils.py", line 128, in get_qemu_img_version
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server info = utils.execute('qemu-img', '--version', check_exit_code=False)[0]
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/utils.py", line 128, in execute
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server return processutils.execute(*cmd, **kwargs)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 391, in execute
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server env=env_variables)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/eventlet/green/subprocess.py", line 58, in __init__
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server errread, errwrite)
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server raise child_exception
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server OSError: [Errno 2] No such file or directory
Jan 13 22:34:04 localhost.localdomain cinder-volume[98778]: ERROR oslo_messaging.rpc.server
Fix proposed to branch: master /review. opendev. org/655617
Review: https:/