cinder upload-to-image doesn't copy os_type property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Kilo |
Fix Released
|
High
|
Unassigned | ||
cinder (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
[Description]
on Trusty Icehouse, Kilo(UCA, only second commit)
When copy volume to image using upload-to-image, it doesn't copy os_type properly.
I modified second patche's directory structure in patch file because there was no matched "unit" directory, removed and adjust it.
[Test Case]
deploy trusty openstack environment.
testing script
http://
[Regression Potential]
Regression potential is low. these patches are already in upstream.
Making image from volume could be affected. Could be issue on custom properties.
[Other Info]
related bugs
- first commit (upstream) : https:/
- include from Juno (2014.2)
- second commit (LP) : https:/
- included from Liberty(7.0.2)
Below commits fix this issue.
[1]
commit dcf4b10cd1e16b2
Author: PranaliDeore <email address hidden>
Date: Tue May 6 04:04:45 2014 +0000
Copy custom properties to image from volume
Presently after copying an image to volume, all properties
of the image are getting copied properly but while creating
image back from volume, it doesn't copy custom properties
to the image.
At present in volume-
of volume are stored as key and value. Because of this it is
difficult to differentiate between core and custom properties.
To overcome this, I have added a new option
'glance_
all core properties of an image. This way, it's easy to separate
core and custom properties from the glance_
custom property to the newly created image.
For Example:
glance_
'disk_format', 'image_name', 'image_id', 'min_disk',
'min_ram', 'name', 'size'
DocImpact: Added 'glance_
core and custom properties as discussed above in cinder.conf
blueprint: restrict-
Change-Id: I786edbc6e54b3d
[2]
commit edf00659aadaf89
Author: Tomoki Sekiyama <email address hidden>
Date: Fri Dec 18 20:38:36 2015 +0900
Fix volume upload failure with glance_
When the volume has additional image properties, upload-to-image
using glance API version 2 will fail with the following error.
Failed validation u'type' in schema[
{u'type': u'string'}
This is due to non core properties passed as a dict to the key
'properties'. It is valid in Image API v1, but the additional
properties must be passed just like core properties in v2.
Change-Id: Ib32c92a8be170b
Closes-Bug: #1527324
Related branches
Changed in cinder: | |
status: | New → Fix Released |
Changed in cinder (Ubuntu): | |
status: | New → Fix Released |
description: | updated |
tags: |
added: sts-sru-needed removed: sts-sru |
description: | updated |
description: | updated |
Changed in cloud-archive: | |
status: | New → Fix Released |
description: | updated |
Changed in cinder (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in cinder (Ubuntu Trusty): | |
status: | Triaged → In Progress |
description: | updated |
tags: |
added: verification-done-trusty removed: verification-done |
@seyeongkim can you please provide the following info:
* specify which LP bug the first patch comes from
* specify which versions you are targeting (is it just Trusty Icehouse?) - Kilo is still supported but i don't think the second patch is in Kilo.