Bug 1654405 - Glance missing file store for image conversion
Summary: Glance missing file store for image conversion
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Emilien Macchi
QA Contact: Mike Abrams
URL:
Whiteboard:
Depends On:
Blocks: 1654413
TreeView+ depends on / blocked
 
Reported: 2018-11-28 17:15 UTC by Gregory Charot
Modified: 2020-05-05 09:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Release Note
Doc Text:
When you use the image conversion feature, ensure that `file` is part of the `stores` configuration option in the `glance_store` section of the glance-api.conf file.
Clone Of:
Environment:
Last Closed: 2020-05-05 09:19:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gregory Charot 2018-11-28 17:15:56 UTC
Description of problem:

Glance missing file store to support image conversion.

OSP14 supports glance auto image conversion but it needs to have the file store enabled (used during conversion)

Version-Release number of selected component (if applicable):

14

How reproducible:

always

Steps to Reproduce:
1. glance image-create-via-import --disk-format qcow2 --container-format bare --name cirros2 --import-method web-download --uri https://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img
2.
3.

Actual results:

Command succeed, image remains in qcow, glance reports 

2018-11-28 09:15:00.061 26 INFO eventlet.wsgi.server [-] 172.17.1.201 - - [28/Nov/2018 09:15:00] "GET /healthcheck HTTP/1.0" 200 137 0.003032
2018-11-28 09:15:00.078 25 WARNING glance.async.taskflow_executor [-] Task 'api_image_import-DeleteFromFS-7d4b8c45-e111-4928-b965-37adf4e120e9' (70e815b0-0873-4bc3-abf8-fe20786b4d82) transitioned into sta
te 'FAILURE' from state 'RUNNING'
6 predecessors (most recent first):
  Flow 'api_image_import'
  |__Atom 'api_image_import-ImportToStore-7d4b8c45-e111-4928-b965-37adf4e120e9' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'file_path': 'file:///var/lib/glance/staging/121cabe3-30a0-4696-83
b8-9ac26ae21358'}, 'provides': None}
     |__Atom 'api_image_import-ConfigureStaging-7d4b8c45-e111-4928-b965-37adf4e120e9' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': 'file:///var/lib/glance/staging/121cabe3-30a0
-4696-83b8-9ac26ae21358'}
        |__Flow 'api_image_import'
           |__Atom 'api_image_import_retry' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': [(None, {})]}
              |__Flow 'api_image_import': UnknownScheme: Unknown scheme 'file' found in URI
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor Traceback (most recent call last):
2018-11-28 09:15:00.078 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 09:15:00.078 25 ERROR glance.async.taskflow_executor     result = task.execute(**arguments)
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor   File "/usr/lib/python2.7/site-packages/glance/async/flows/api_image_import.py", line 92, in execute
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor     store_api.delete_from_backend(file_path)
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor   File "/usr/lib/python2.7/site-packages/glance_store/backend.py", line 407, in delete_from_backend
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor     loc = location.get_location_from_uri(uri, conf=CONF)
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor   File "/usr/lib/python2.7/site-packages/glance_store/location.py", line 75, in get_location_from_uri
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor     raise exceptions.UnknownScheme(scheme=pieces.scheme)
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor UnknownScheme: Unknown scheme 'file' found in URI
2018-11-28 09:15:00.078 25 ERROR glance.async.taskflow_executor
2018-11-28 09:15:00.087 25 WARNING glance.async.taskflow_executor [-] Task 'api_image_import-DeleteFromFS-7d4b8c45-e111-4928-b965-37adf4e120e9' (70e815b0-0873-4bc3-abf8-fe20786b4d82) transitioned into state 'REVERTED' from state 'REVERTING'
2018-11-28 09:15:00.092 25 WARNING glance.async.taskflow_executor [-] Task 'api_image_import-ImportToStore-7d4b8c45-e111-4928-b965-37adf4e120e9' (afe10e07-b2c9-472e-8b5a-cfd3eb4ca468) transitioned into state 'REVERTED' from state 'REVERTING'
2018-11-28 09:15:00.098 25 WARNING glance.async.taskflow_executor [-] Task 'api_image_import-ConfigureStaging-7d4b8c45-e111-4928-b965-37adf4e120e9' (6f40a059-5a67-42c2-a9bd-0e8ea7b99610) transitioned into state 'REVERTED' from state 'REVERTING'


Expected results:

Need to add file store in the glance config 

stores=http,rbd,file
in /var/lib/config-data/puppet-generated/glance_api/etc/glance/glance-api.conf

Need to add this into the THT.

Additional info:

Comment 1 Cyril Roelandt 2018-12-05 14:09:26 UTC
I think this is similar to  https://bugzilla.redhat.com/show_bug.cgi?id=1649679 . We may need a different (but similar) patch, though.


Note You need to log in before you can comment on or make changes to this bug.