1.2.7 Swift配置Glance后端存储
使用OpenStack私有云平台,使用Swift对象存储服务,修改相应的配置文件,使对象存储Swift作为glance镜像服务的后端存储,使默认上传的镜像会在swift中创建swift_glance容器,修改完成后上传cirros-0.3.4-x86_64-disk.img,命名为cirros-swift。
在controller节点将cat /etc/glance/glance-api.conf |grep -Ev ^'($|#|\[)' && source /root/admin-openrc && swift list命令和返回结果提交到答题框。
答案
stores = swift
default_store = swift
swift_store_container= swift _glance
swift_store_create_container_on_put= true
swift_store_multi_tenant = true
swift_store_admin_tenants= service
swift_store_user= glance
swift_store_key=000000
返回:
[root@controller ~]# cat /etc/glance/glance-api.conf |grep -Ev ^'($|#|\[)' && source /root/admin-openrc && swift list
connection = mysql+pymysql://glance:000000@controller/glance
stores = swift
default_store = swift
swift_store_container= swift _glance
swift_store_create_container_on_put= true
swift_store_multi_tenant = true
swift_store_admin_tenants= service
swift_store_user= glance
swift_store_key=000000
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = demo
user_domain_name = demo
project_name = service
username = glance
password = 000000
flavor = keystone
container
container_segments
swift _glance_db7b3973-6c75-40f4-8529-1db628109dea
- 点赞
- 收藏
- 关注作者
评论(0)