Glance image conversion fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Abhishek Kekane |
Bug Description
It is not possible to convert glance images as it fails with error, NoSuchOptError: no such option conversion_
Steps to reproduce:
Ensure 'image_conversion' plugin is enabled in glance-
[image_import_opts]
image_import_
[image_conversion]
output_format = raw
Run below command to create image:
$ glance image-create-
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.
2018-11-28 16:26:46.870 25 WARNING glance.
5 predecessors (most recent first):
Flow 'api_image_import'
|__Atom 'api_image_
|__Flow 'api_image_import'
|__Atom 'api_image_
|__Flow 'api_image_import': NoSuchOptError: no such option conversion_
2018-11-28 16:26:46.870 25 ERROR glance.
2018-11-28 16:26:46.870 25 ERROR glance.
2018-11-28 16:26:46.870 25 ERROR glance.
2018-11-28 16:26:46.870 25 ERROR glance.
2018-11-28 16:26:46.870 25 ERROR glance.
2018-11-28 16:26:46.870 25 ERROR glance.
2018-11-28 16:26:46.870 25 ERROR glance.
2018-11-28 16:26:46.870 25 ERROR glance.
Changed in glance: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: rocky-backport-potential |
Changed in glance: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
Changed in glance: | |
status: | Confirmed → In Progress |
Changed in glance: | |
milestone: | none → stein-2 |
Changed in glance: | |
milestone: | stein-2 → stein-1 |
To test this with devstack, use one of the following workaround:
Workaround:
Change ExecStart mentioned in /<email address hidden> unit file to
ExecStart = /usr/local/ bin/glance- api --config-dir /etc/glance
or
Make changes in glance/cmd/api.py as mentioned in [1] and then changing ExecStart mentioned in /<email address hidden> unit file to
ExecStart = /usr/local/ bin/glance- api
NOTE:
After modifying <email address hidden> we need to relaod deamon using "sudo systemctl daemon-reload" command
[1] http:// paste.openstack .org/show/ 722963/