[Bug 1447215] Re: Schema Missing kernel_id, ramdisk_id causes #1447193
Stuart McLaren
1447215 at bugs.launchpad.net
Thu Jul 23 16:06:19 UTC 2015
I installed a stable kilo devstack, but still wasn't able to get the image-list reproducer to work:
$ glance --version
0.17.2
$ glance --os-image-api-version 1 image-create --name test --disk-format raw --container-format bare --property ramdisk_id= --property kernel_id= --file /etc/fstab
+-----------------------+--------------------------------------+
| Property | Value |
+-----------------------+--------------------------------------+
| Property 'kernel_id' | None |
| Property 'ramdisk_id' | None |
| checksum | 9cb02fe7fcac26f8a25d6db3109063ae |
| container_format | bare |
| created_at | 2015-07-23T15:55:41.000000 |
| deleted | False |
| deleted_at | None |
| disk_format | raw |
| id | a139ed67-e254-44d7-9499-78b13b498bb4 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | test |
| owner | 3447cea05d6947658d73791ed9e0ed9f |
| protected | False |
| size | 145 |
| status | active |
| updated_at | 2015-07-23T15:55:42.000000 |
| virtual_size | None |
+-----------------------+--------------------------------------+
$ glance --os-image-api-version 2 image-list
+--------------------------------------+---------------------------------+
| ID | Name |
+--------------------------------------+---------------------------------+
| 75fb76bc-cb1c-49b0-a821-704a3525dfcc | cirros-0.3.2-x86_64-uec |
| 9325073e-fc51-494f-b80b-f9de075dc00f | cirros-0.3.2-x86_64-uec-kernel |
| 9cf53d72-8b1b-4f94-9ecc-6c2061c74034 | cirros-0.3.2-x86_64-uec-ramdisk |
| e156d634-3087-4361-a6ad-89fbf544ae2e | cirros-0.3.4-x86_64-uec |
| f0134c5f-1563-4700-8f33-880334a5f834 | cirros-0.3.4-x86_64-uec-kernel |
| d22d2060-3b6c-44fa-823b-e7d108b43d9d | cirros-0.3.4-x86_64-uec-ramdisk |
| a139ed67-e254-44d7-9499-78b13b498bb4 | test |
+--------------------------------------+---------------------------------+
I'm struggling to understand why I'm not able to reproduce using image-
list. I do suspect that the image-list issue has gone away with an
updated client, but can't be 100% sure.
The nova stack trace in comment #4 is from an image-show rather than an
image list.
I am able to reproduce using image-show (as suggested by Mike Fedosin)
ie
$ glance --os-image-api-version 1 image-create --name test --disk-format
raw --container-format bare --property ramdisk_id= --property kernel_id=
$ glance --os-image-api-version 2 image-show b51e04cc-dab9-4419-80dc-
87c16b886551
as per http://paste.openstack.org/show/380777.
--
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:
Confirmed
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