[Bug 1447215] Re: Schema Missing kernel_id, ramdisk_id causes #1447193

OpenStack Infra 1447215 at bugs.launchpad.net
Fri Jul 24 05:08:31 UTC 2015


Reviewed:  https://review.openstack.org/176379
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=82c63b1df4399db22dfd71e3326a6bfc1b372a9c
Submitter: Jenkins
Branch:    master

commit 82c63b1df4399db22dfd71e3326a6bfc1b372a9c
Author: Jorge Niedbalski <jorge.niedbalski at canonical.com>
Date:   Wed Apr 22 12:54:29 2015 -0300

    Allow ramdisk_id, kernel_id to be null on schema
    
    Since is possible to create images with no
    ramdisk_id, kernel_id parameters on glance v1,
    then the schema-image.json needs to be modified to
    allow null, string values for both attributes
    and prevent LP #1447193 to happen with a glance v2
    client.
    
    APIImpact
    
    Closes-Bug: #1447215
    Related-Bug: #1447193
    
    Change-Id: I645c797553ccaa84062f9ad28f2349ae738a0c96
    Signed-off-by: Jorge Niedbalski <jorge.niedbalski at canonical.com>


** Changed in: glance
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to glance in Ubuntu.
https://bugs.launchpad.net/bugs/1447215

Title:
  Schema Missing kernel_id, ramdisk_id causes #1447193

Status in Glance:
  Fix Committed
Status in glance package in Ubuntu:
  Confirmed

Bug description:
  [Description]

  
  [Environment]

  - Ubuntu 14.04.2
  - OpenStack Kilo

  ii  glance                           1:2015.1~rc1-0ubuntu2~cloud0     all          OpenStack Image Registry and Delivery Service - Daemons
  ii  glance-api                       1:2015.1~rc1-0ubuntu2~cloud0     all          OpenStack Image Registry and Delivery Service - API
  ii  glance-common                    1:2015.1~rc1-0ubuntu2~cloud0     all          OpenStack Image Registry and Delivery Service - Common
  ii  glance-registry                  1:2015.1~rc1-0ubuntu2~cloud0     all          OpenStack Image Registry and Delivery Service - Registry
  ii  python-glance                    1:2015.1~rc1-0ubuntu2~cloud0     all          OpenStack Image Registry and Delivery Service - Python library
  ii  python-glance-store              0.4.0-0ubuntu1~cloud0            all          OpenStack Image Service store library - Python 2.x
  ii  python-glanceclient              1:0.15.0-0ubuntu1~cloud0         all          Client library for Openstack glance server.

  [Steps to reproduce]

  0) Set /etc/glance/glance-api.conf to enable_v2_api=False
  1) nova boot --flavor m1.small --image base-image --key-name keypair --availability-zone nova --security-groups default snapshot-bug 
  2) nova image-create snapshot-bug snapshot-bug-instance 

  At this point the created image has no kernel_id (None) and image_id
  (None)

  3) Enable_v2_api=True in glance-api.conf and restart.

  4) Run a os-image-api=2 client,

  $ glance --os-image-api-version 2 image-list

  This will fail with #1447193

  [Description]

  The schema-image.json file needs to be modified to allow null, string
  values for both attributes.

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



More information about the Ubuntu-openstack-bugs mailing list