Interoperable Image Import in glance documented format for inject not working as expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Undecided
|
Cyril Roelandt |
Bug Description
According to the documentation, the correct way to specify custom import image metadata properties is:
"inject is a comma-separated list of properties and values that will be injected into the image record for the imported image. Each property and value should be quoted and separated by a colon (‘:’) as shown in the example above."
With the example being:
inject = "property1"
When specifying properties in this way the resulting properties in the imported image look like this:
properties | "property2"
If you look closely at each of the properties, the quotes are inconsistent:
"property2"
"property3"
property1"
Conversely, if you use the following (no quotes):
inject = property1:
properties | os_glance_
Now it looks better:
property1='value1'
property2='value2'
property3='value3'
The resulting quotes using this format seem to match the other standard properties, ie. key='value' and I suspect what we are going for. I'm unclear if this is a parser issue or a documentation issue.
-------
Release: 27.0.0.0b3.dev5 on 2022-08-30 13:35:51
SHA: 46c30f0b6db6ed6
Source: https:/
URL: https:/
summary: |
Interoperable Image Import in glance documented format for inject not - working + working as expected |
description: | updated |
Changed in glance: | |
assignee: | nobody → Cyril Roelandt (cyril-roelandt) |
status: | New → Confirmed |
Fix proposed to branch: master /review. opendev. org/c/openstack /glance/ +/890423
Review: https:/