← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1805765] Re: Glance image conversion fails

 

Reviewed:  https://review.openstack.org/620781
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=8ee37b7d7ca7d5d2d5e8ef2adc61306f3b57a0a2
Submitter: Zuul
Branch:    master

commit 8ee37b7d7ca7d5d2d5e8ef2adc61306f3b57a0a2
Author: Abhishek Kekane <akekane@xxxxxxxxxx>
Date:   Thu Nov 29 06:05:41 2018 +0000

    Image conversion fails
    
    It is not possible to convert glance images as it fails with error,
    NoSuchOptError: no such option 'conversion_plugin_options' in group
    [DEFAULT] as there is no 'conversion_plugin_options' option or group
    in glance-image-import.conf file.
    
    Used correct option group 'image_conversion' to fetch the image
    'output_format' option.
    
    Change-Id: Ia7ced170bcddcd3639b7edfb644deef3018b11a8
    Closes-Bug: #1805765


** Changed in: glance
       Status: In Progress => Fix Released

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

Title:
  Glance image conversion fails

Status in Glance:
  Fix Released

Bug description:
  It is not possible to convert glance images as it fails with error,
  NoSuchOptError: no such option conversion_plugin_options in group
  [DEFAULT].

  Steps to reproduce:
  Ensure 'image_conversion' plugin is enabled in glance-image-import.conf as shown below:

  [image_import_opts]
  image_import_plugins = ['image_conversion']

  [image_conversion]
  output_format = raw

  Run below command to create image:
  $ glance image-create-via-import --disk-format qcow2 --container-format bare --name cirros --import-method web-download --uri http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img

  Expected result:
  Image should be converted to raw format on the fly.

  Actual result:
  Conversion fails

  Glance API logs:
  2018-11-28 16:26:46.502 24 INFO eventlet.wsgi.server [-] 172.17.1.201 - - [28/Nov/2018 16:26:46] "GET /healthcheck HTTP/1.0" 200 137 0.003688
  2018-11-28 16:26:46.870 25 WARNING glance.async.taskflow_executor [-] Task 'api_image_import-Convert_Image-f8822a30-4980-451d-bbed-d73fd48736a8' (ba9729e1-9069-40fd-a3fd-496072765936) transitioned into state 'FAILURE' from state 'RUNNING'
  5 predecessors (most recent first):
    Flow 'api_image_import'
    |__Atom 'api_image_import-ConfigureStaging-f8822a30-4980-451d-bbed-d73fd48736a8' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': 'file:///var/lib/glance/staging/7b317981-81a6-4839-8bc3-a138ddb4472d'}
       |__Flow 'api_image_import'
          |__Atom 'api_image_import_retry' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': [(None, {})]}
             |__Flow 'api_image_import': NoSuchOptError: no such option conversion_plugin_options in group [DEFAULT]
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor Traceback (most recent call last):
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor     result = task.execute(**arguments)
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor   File "/usr/lib/python2.7/site-packages/glance/async/flows/plugins/image_conversion.py", line 78, in execute
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor     target_format = CONF.conversion_plugin_options.output_format
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2644, in __getattr__
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor     raise NoSuchOptError(name)
  2018-11-28 16:26:46.870 25 ERROR glance.async.taskflow_executor NoSuchOptError: no such option conversion_plugin_options in group [DEFAULT]

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


References