← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1592808] Re: Snapshot failed during inconsistencies in glance v2 image schema

 

Reviewed:  https://review.openstack.org/329981
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3f8076acdc7756b8a5f0f16d4885a47cb001483e
Submitter: Jenkins
Branch:    master

commit 3f8076acdc7756b8a5f0f16d4885a47cb001483e
Author: Mike Fedosin <mfedosin@xxxxxxxxxxxx>
Date:   Wed Jun 15 17:35:07 2016 +0300

    Fix image meta which is sent to glance v2
    
    This commit fixes recently found issues with converting
    images in nova format to glance v2.
    
    1. If property string is unicode we shouldn't convert it
    to str.
    
    2. kernel_id and ramdisk_id are custom properties and for
    this reason they have to be processed on 'properties' layer
    and not with regular attributes.
    
    3. In glance v1 it was possible to set empty string to
    kernel_id and ramdisk_id properties. In glance v2 it's
    forbidden and that's why we have to convert them to
    None values.
    
    Change-Id: I950777c5d0292b4a54d14913611038a18ef41d57
    Closes-bug: #1592808


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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/1592808

Title:
  Snapshot failed during inconsistencies in glance v2 image schema

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  When trying to create a snapshot with Glance v2 with nodepool the bug
  appears: http://paste.openstack.org/show/516238/

  It happens because in glance v1 it was possible to set empty string to
  kernel_id or ramdisk_id. In v2 it's forbidden.

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


References