← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1591971] Re: Glance task creates failed when setting work_dir local and qemu-img version is 1.5.3

 

Looks like this was fixed by configuration, closing.

** Changed in: glance
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1591971

Title:
  Glance task creates failed when setting work_dir local and qemu-img
  version is 1.5.3

Status in Glance:
  Invalid

Bug description:
  The openstack version is mitaka.

  # rpm -qa |grep qemu-img
  qemu-img-1.5.3-105.el7_2.4.x86_64

  The glance-api.conf setting is:
  [task]
  work_dir = /home/work/
  [taskflow_executor]
  conversion_format = raw

  Then run the cli:
  glance  task-create --type import --input '{"import_from":"http://10.43.177.17/cirros-0.3.2-x86_64-disk.img","import_from_format": "","image_properties":{"disk_format":"qcow2","container_format":"bare","name":"test1"}}'

  The log is :
  2016-06-14 04:08:29.032 DEBUG oslo_concurrency.processutils [-] CMD "qemu-img info --output=json file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d" returned: 1 in 0.025s from (pid=5460) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:374
  2016-06-14 04:08:29.033 DEBUG oslo_concurrency.processutils [-] None
  command: u'qemu-img info --output=json file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d'
  exit code: 1
  stdout: u''
  stderr: u"qemu-img: Could not open 'file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d': Could not open 'file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d': No such file or directory\n" from (pid=5460) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:413
  2016-06-14 04:08:29.034 DEBUG oslo_concurrency.processutils [-] u'qemu-img info --output=json file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d' failed. Not Retrying. from (pid=5460) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:422
  Command: qemu-img info --output=json file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d
  Exit code: 1
  Stdout: u''
  Stderr: u"qemu-img: Could not open 'file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d': Could not open 'file:///home/work/90ff2129-0079-487e-a7ec-79ef23bd1c0d': No such file or directory\n"
  2016-06-14 04:08:29.072 WARNING glance.async.taskflow_executor [-] Task 'import-ImportToFS-42684807-86db-4ff5-a4a9-abf3b1998b63' (5ff9cf63-f257-48d2-9cc9-cfeffd905854) transitioned into state 'FAILURE' from state 'RUNNING'
  4 predecessors (most recent first):
    Flow 'import'
    |__Atom 'import-CreateImage-42684807-86db-4ff5-a4a9-abf3b1998b63' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': '90ff2129-0079-487e-a7ec-79ef23bd1c0d'}
       |__Atom 'import_retry' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': [(None, {})]}
          |__Flow 'import'
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor Traceback (most recent call last):
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 82, in _execute_task
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor     result = task.execute(**arguments)
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor   File "/opt/stack/glance/glance/async/flows/base_import.py", line 175, in execute
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor     metadata = json.loads(stdout)
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor   File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor     return _default_decoder.decode(s)
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor   File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor   File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor     raise ValueError("No JSON object could be decoded")
  2016-06-14 04:08:29.072 TRACE glance.async.taskflow_executor ValueError: No JSON object could be decoded

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1591971/+subscriptions


References