Glance client fails with v2 API / Failed validating 'Type' in schema[u'properties'][u'ramdisk_id']
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
High
|
Jorge Niedbalski | ||
python-glanceclient (Ubuntu) |
Fix Released
|
Undecided
|
Jorge Niedbalski |
Bug Description
[Environment]
- OpenStack Kilo
- Ubuntu Trusty 14.04
ii python-glanceclient 1:0.15.
[Reproduction]
- The image was correctly created with No ramdisk_id, kernel_id using a glance v1 only( no v2 enabled )
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-
- After enabling glance v2 api ( enable_v2_api = True on glance-api.conf) and create endpoints i tried to list images
$ glance --os-image-
None is not of type u'string'
Failed validating u'type' in schema[
{u'
u'is_base': False,
u'pattern': u'^([0-
u'type': u'string'}
On instance[
None
summary: |
- Glance client fails with v2 API / Failed validating 'Type' + Glance client fails with v2 API / Failed validating 'Type' in + schema[u'properties'][u'ramdisk_id'] |
description: | updated |
Changed in python-glanceclient: | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
description: | updated |
Changed in python-glanceclient: | |
importance: | Undecided → High |
Changed in python-glanceclient (Ubuntu): | |
status: | Confirmed → Fix Released |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Hi Jorge,
Thanks for your bug report.
I haven't been able to reproduce this (I suspect I'm missing a step).
I'm running the latest server code and using a 0.15.0 client version.
$ ./tools/ with_venv. sh glance image-create --disk-format raw --container-format bare --name thisisnull < /etc/fstab ------- ------+ ------- ------- ------- ------- ------- ---+ ------- ------+ ------- ------- ------- ------- ------- ---+ 6f1d67e753bb24d ae | 22T17:17: 03.000000 | 6c0c-4fcb- bbf9-33b5a3bcab 92 | 2a3ebf136b13e04 d1 | 22T17:17: 03.000000 | ------- -----+- ------- ------- ------- ------- ------- --+
+-----
| Property | Value |
+-----
| checksum | 398759a311bf25c
| container_format | bare |
| created_at | 2015-04-
| deleted | False |
| deleted_at | None |
| disk_format | raw |
| id | f4326763-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | thisisnull |
| owner | f1cd0225bd464bc
| protected | False |
| size | 106 |
| status | active |
| updated_at | 2015-04-
| virtual_size | None |
+------
$ ./tools/ with_venv. sh glance --os-image- api-version 2 image-list
+----- ------- ------- ------- ------- -----+- ------- ------- ------- ------- ----+ ------- ------- ------- ------- -----+- ------- ------- ------- ------- ----+ 6c0c-4fcb- bbf9-33b5a3bcab 92 | thisisnull | 9c8c-4221- a91f-996bc1be74 a1 | thisisnull | 7501-4aec- 811e-7cf1aec3af 27 | cirros- 0.3.2-x86_ 64-uec | c19e-438f- ba28-96c3d479f6 63 | cirros- 0.3.2-x86_ 64-uec- ramdisk | 2c15-410a- a7e3-febf3e96e9 2c | cirros- 0.3.2-x86_ 64-uec- kernel | ------- ------- ------- ------- -----+- ------- ------- ------- ------- ----+
| ID | Name |
+-----
| f4326763-
| 45dd2ab7-
| 3a798bd6-
| eae31938-
| 80878678-
+-----
Is this related to upgrade in some way? Eg was the server initially running juno when the image was created?
Thanks.