Comment 7 for bug 1447215

Stuart McLaren (stuart-mclaren) wrote :

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.