[Bug 1447193] Re: Glance client fails with v2 API / Failed validating 'Type' in schema[u'properties'][u'ramdisk_id']

Stuart McLaren 1447193 at bugs.launchpad.net
Fri Apr 24 13:43:35 UTC 2015


Jorge,

Thanks for the extra info -- very helpful:

$ ./tools/with_venv.sh glance --os-image-api-version 2 image-list
venv develop-inst-nodeps: /mnt/sam/git/python-glanceclient
venv runtests: PYTHONHASHSEED='0'
venv runtests: commands[0] | 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


This seems to work ok with a newer client:

 $ glance --version
 0.17.1

 $ glance --os-image-api-version 2 image-list
 +--------------------------------------+---------------------------------+
 | ID                                   | Name                            |
 +--------------------------------------+---------------------------------+
 | 125730a9-4b34-40da-9f42-af7cf80ba9a2 | cirros-0.3.2-x86_64-uec         |
 | e9f7e691-1c19-453e-a85e-76471c058193 | cirros-0.3.2-x86_64-uec-kernel  |
 | 39beaaf0-daf4-4c89-9029-370206d7d763 | cirros-0.3.2-x86_64-uec-ramdisk |
 | 55c8e633-6dd2-4477-9a81-3ce0756f362e | debian                          |
 | e7d74ffe-63c0-46ea-9943-8ddf01fcf369 | debian-snap1                    |
 | 7577dad5-b623-42c5-98e2-357c46c8723f | snap1                           | 
 +--------------------------------------+---------------------------------+


I'm going to close based on it being a client issue that has been fixed.


** Changed in: python-glanceclient
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, 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']

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-glanceclient/+bug/1447193/+subscriptions



More information about the Ubuntu-server-bugs mailing list