Kernel and ramdisk ids cannot have 'None' value in Glance

Bug #1539698 reported by Mike Fedosin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Mike Fedosin

Bug Description

Currently if user wants to create an instance using a Glance snapshot that has no value for ramdisk_id or kernel_id, then Nova copies the image metadata into instance system metadata and prefixes the keys with 'image_'.
Due to [1] the None value of ramdisk_id and kernel_id get written as the string 'None' in system metadata.

Unfortunately these values are not accepted by glance image schema in v2 api [2]. They can be None, but a not string 'None'.

This issue doesn't allow us to fully adopt glance v2 api in Nova.

Paste from ~smatzek http://paste.openstack.org/show/485397/

[1] https://github.com/openstack/nova/blob/master/nova/utils.py#L1245
[2] https://github.com/openstack/glance/blob/master/etc/schema-image.json

Tags: images
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/274203

Changed in nova:
assignee: nobody → Mike Fedosin (mfedosin)
status: New → In Progress
Matt Riedemann (mriedem)
tags: added: images
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Mike Fedosin (<email address hidden>) on branch: master
Review: https://review.openstack.org/274203

Revision history for this message
Augustina Ragwitz (auggy) wrote :

The patch was abandoned because it was determined these values should be validated/filtered in the GlanceImageServiceV2 class. Also this issue is no longer blocking Glance v2 compatibility per https://review.openstack.org/#/c/321551/

Marking this as invalid, please reopen if I'm mistaken.

Changed in nova:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.