我已经安装了ussuri
的版本,openstack
一切似乎都很好,但一目了然有一个奇怪的问题。当我使用glance image-create
命令时,一切都很好并且可以正常工作,但是,当我使用openstack image create
命令时,如下所述:
openstack image create --public --protected --disk-format raw --file ubuntu.raw ubuntu
它抛出这个异常:
BadRequestException:400:url 的客户端错误:http://controller:9292/v2/images,提供的对象与架构“图像”不匹配:“真”不是“布尔”类型:在架构中验证“类型”失败 [ 'properties']['protected']:: {'description': '如果为真,图像将不可删除。',: 400 Bad Request: 'True': 'type': 'boolean'}: On instance['保护']:
我正在使用CEPH
后端Glance
,但 Openstack 已将图像存储在/var/lib/glance/images
!这是我的glance-api
配置文件:
[DEFAULT]
[cinder]
[cors]
[database]
connection = mysql+pymysql://glance:password@controller/glance
[file]
[glance.store.http.store]
[glance.store.rbd.store]
[glance.store.s3.store]
[glance.store.swift.store]
[glance.store.vmware_datastore.store]
[glance_store]
stores = rbd
default_store = rbd
rbd_store_pool = images
rbd_store_user = glance
rbd_store_ceph_conf = /etc/ceph/ceph.conf
rbd_store_chunk_size = 8
[image_format]
disk_formats = ami,ari,aki,vhd,vhdx,vmdk,raw,qcow2,vdi,iso,ploop.root-tar
[keystone_authtoken]
password = password
username = glance
project_name = service
user_domain_name = Default
project_domain_name = Default
auth_type = password
memcached_servers = controller:11211
auth_url = http://controller:5000
www_authenticate_uri = http://controller:5000
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_middleware]
[oslo_policy]
[paste_deploy]
flavor = keystone
[profiler]
[store_type_location_strategy]
[task]
[taskflow_executor]