Bug 1782229 - Enable image import conversion & image output format via TripleO
Summary: Enable image import conversion & image output format via TripleO
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z11
: 13.0 (Queens)
Assignee: Giulio Fidente
QA Contact: Tzach Shefi
URL:
Whiteboard:
Depends On: 1778098
Blocks: 1793433 1831876 1831878 1831880
TreeView+ depends on / blocked
 
Reported: 2019-12-11 13:20 UTC by Giulio Fidente
Modified: 2024-10-01 16:25 UTC (History)
7 users (show)

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.
Clone Of:
Environment:
Last Closed: 2020-03-10 11:23:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1807366 0 None None None 2019-12-11 13:20:40 UTC
OpenStack gerrit 698558 0 None MERGED Enable image import plugins & image output format 2020-11-10 23:41:41 UTC
OpenStack gerrit 698559 0 None MERGED Enable image import conversion & image output format 2020-11-10 23:42:00 UTC
OpenStack gerrit 708077 0 None MERGED Pass image import conf file to command which runs glance server 2020-11-10 23:42:00 UTC
Red Hat Issue Tracker OSP-5314 0 None None None 2022-08-11 17:25:50 UTC
Red Hat Product Errata RHBA-2020:0760 0 None None None 2020-03-10 11:24:00 UTC

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


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