← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1539698] Re: Kernel and ramdisk ids cannot have 'None' value in Glance

 

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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1539698

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

Status in OpenStack Compute (nova):
  Invalid

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1539698/+subscriptions


References