jessie安装glance,为instance创建快照,glance --os-image-api-version 2 image-list,报错
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
这是一个bug,
https://bugs.launchpad.net/python-glanceclient/+bug/1447193
解决办法:
mv /etc/glance/schema-image.json /etc/glance/schema-image.json.orig curl http://git.openstack.org/cgit/openstack/glance/plain/etc/schema-image.json?h=stable/kilo -o /glance/schema-image.json
时间: 2024-10-09 19:59:53