一1.2.7 Swift配置Glance后端存储
#答案
[root@controller~]# vim /etc/glance/glance-api.conf
#在[glance_store]下修改
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
#重启glan组件生效
[root@controller~]# openstack-service restart glance
#上传测试
[root@controller~]# openstack image create --container-format bare --disk-format qcow2 --public --file cirros-0.3.4-x86_64-disk.img cirros
返回
[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)