Bug 1782229

Summary: Enable image import conversion & image output format via TripleO
Product: Red Hat OpenStack Reporter: Giulio Fidente <gfidente>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Tzach Shefi <tshefi>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: abishop, cyril, gcharot, mabrams, mburns, mgarciac, ndeevy
Target Milestone: z11Keywords: FeatureBackport, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-glance-12.5.0-6.el7ost openstack-tripleo-heat-templates-8.4.1-42.el7ost Doc Type: Enhancement
Doc Text:
This enhancement adds two new parameters, `GlanceImageImportPlugins` and `GlanceImageConversionOutputFormat`, to enable Image service (glance) plugins during the image import process. For example, if you enable the `image_conversion` plugin, the following command imports a qcow2 image, stores it in raw format, and converts it automatically after import: `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` This means that you can store images always in raw format when you use RBD as an Image service driver.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-10 11:23:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1778098    
Bug Blocks: 1793433, 1831876, 1831878, 1831880    

Description Giulio Fidente 2019-12-11 13:20:41 UTC
Description of problem:

Glance image conversion is not configured by tripleO. glance-image-import.conf must be configured

How reproducible:

Always

Steps to Reproduce:

1. in glance_api container
grep image_import_plugins /etc/glance/glance-image-import.conf
#image_import_plugins = [no_op]

2. 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
3. Image is still in qcow2

Actual results:

Image is not converted

Expected results:

Image is converted

Additional info:

Need to have
image_import_plugins = ['image_conversion']

in glance-image-import.conf

Comment 11 Cyril Roelandt 2020-02-18 20:18:14 UTC
Giulio said in an email thread that cherry-picked the missing patch in upstream and downstream branches. Giulio, could you add links to the patches in this BZ?

Comment 12 Cyril Roelandt 2020-02-18 20:26:40 UTC
Oh, you already did (https://review.opendev.org/#/c/708077/), sorry for the noise :)

Comment 21 errata-xmlrpc 2020-03-10 11:23:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0760