[Bug 1447193] Re: Glance client fails with v2 API / Failed validating 'Type' in schema[u'properties'][u'ramdisk_id']
Kevin Fox
kevin at efox.cc
Thu Jul 16 00:10:18 UTC 2015
Tried the fix from:
https://review.openstack.org/#/c/176379/3
It made it farther but still fails:
File "/etc/ansible/hosts/openstack_inventory.py", line 69, in do_tenant
for i in gt.images.list():
File "/usr/lib/python2.6/site-packages/glanceclient/v2/images.py", line 75, in list
yield self.model(**image)
File "/usr/lib/python2.6/site-packages/warlock/core.py", line 32, in __init__
base_class.__init__(self, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/warlock/model.py", line 34, in __init__
raise ValueError(str(exc))
ValueError: None is not of type u'string'
Failed validating u'type' in schema[u'additionalProperties']:
{u'type': u'string'}
On instance[u'description']:
None
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-glanceclient in Ubuntu.
https://bugs.launchpad.net/bugs/1447193
Title:
Glance client fails with v2 API / Failed validating 'Type' in
schema[u'properties'][u'ramdisk_id']
Status in python-glanceclient:
Fix Released
Status in python-glanceclient package in Ubuntu:
Confirmed
Bug description:
[Environment]
- OpenStack Kilo
- Ubuntu Trusty 14.04
ii python-glanceclient 1:0.15.0-0ubuntu1~cloud0 all Client library for Openstack glance server.
[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-bug-instance
- After enabling glance v2 api ( enable_v2_api = True on glance-
api.conf) and create endpoints i tried to list images
$ glance --os-image-api-version 2 image-list
None is not of type u'string'
Failed validating u'type' in schema[u'properties'][u'ramdisk_id']:
{u'description': u'ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.',
u'is_base': False,
u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$',
u'type': u'string'}
On instance[u'ramdisk_id']:
None
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-glanceclient/+bug/1447193/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list