openstack 的glance组件使用cinder作为后端存储?求配置案例

openstack镜像文件默认是保存在本地,现在想实现将镜像文件保存在cinder中,如何实现?

参与5

2同行回答

AWCloud海云捷迅AWCloud海云捷迅产品总监北京海云捷迅科技有限公司
正如1楼所说,目前没有glance使用cinder作为后端存储这种方式,感觉楼主理解有误。cinder作为一个存储服务自身没有存储能力,其只能通过不同的drive对接各类软/硬件存储系统然后向北提供API,让用户能够操作其API实现对存储系统管理与使用。glance作为镜像服务可对OpenStack环境...显示全部

正如1楼所说,目前没有glance使用cinder作为后端存储这种方式,感觉楼主理解有误。

cinder作为一个存储服务自身没有存储能力,其只能通过不同的drive对接各类软/硬件存储系统然后向北提供API,让用户能够操作其API实现对存储系统管理与使用。

glance作为镜像服务可对OpenStack环境下镜像资源进行管理,但是其需要一个存储空间存储其管理的镜像,目前使用最广泛的有:swift、ceph以及本地文件系统。

所以楼主应该是对cinder理解有误。建议参考glance+ceph或glance+swift

收起
软件开发 · 2017-04-06
浏览8732
haichuan0227haichuan0227项目经理新浪云计算
cinder和glance的角色一样,都是存储服务,前者focuse volume,后者focuse image。但两者都不负责具体的数据存储。glance / cinder 都支持多种后端存储方案,比如ceph。所以,我理解你的问题应该是“求glance使用ceph等分布式存储方案作为后端存储的配置案例”。/etc/glance/glanc...显示全部

cinder和glance的角色一样,都是存储服务,前者focuse volume,后者focuse image。

但两者都不负责具体的数据存储。

glance / cinder 都支持多种后端存储方案,比如ceph。

所以,我理解你的问题应该是“求glance使用ceph等分布式存储方案作为后端存储的配置案例”。

/etc/glance/glance-api.conf配置案例如下,供参考:

[code class=\"lang-Command\" lang=\"Command\"][DEFAULT]
debug = False
show_image_direct_url = True
image_cache_dir = /***/openstack/glance/image-cache
log_dir = /var/log/glance
bind_host = ***.com
bind_port = 9292
registry_host = ***.com
registry_port = 9191
workers = 24
rpc_backend = rabbit
show_multiple_locations = True
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://***:***@mysqlserver:3306/glance
max_pool_size = 50
max_overflow = 100
[glance_store]  # 注意:在这里指定使用ceph作为glance后端存储方案
stores = rbd,file
default_store = rbd
rbd_store_user = glance
rbd_store_pool = images
rbd_store_chunk_size = 8
rbd_store_ceph_conf = /etc/ceph/ceph.conf
[image_format]
[keystone_authtoken]
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = ***
auth_uri = http://***.com:5000/v3
auth_url = http://***.com:35357/v3
[matchmaker_redis]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
driver = messagingv2
[oslo_messaging_rabbit]
rabbit_hosts = rabbitmq-a:5672, rabbitmq-b:5672
rabbit_userid = rabbitmq
rabbit_password = ***
rabbit_ha_queues = True
[oslo_policy]
[paste_deploy]
flavor = keystone
[/code]收起
互联网服务 · 2017-04-01
浏览9911

提问者

linsirr12
软件开发工程师IT

问题来自

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2016-08-16
  • 关注会员:3 人
  • 问题浏览:14995
  • 最近回答:2017-04-06
  • X社区推广