当前位置:首页 > Windows程序 > 正文

jessie 安装glance 使用api v2 bug

2021-03-27 Windows程序

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 ?h=stable/kilo          -o /glance/schema-image.json


温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/68463.html