在OpenStack上集成Ceph块存储之前,需要在控制节点上修改Glance配置文件,从而配置Glance集成Ceph。
vi /etc/glance/glance-api.conf
[DEFAULT] ... # enable COW cloning of images show_image_direct_url = True ... [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 # stores = file,http # default_store = file # filesystem_store_datadir = /var/lib/glance/images/
需注释掉或者删除[glance_store]中原stores、default_store及filesystem_store_datadir配置项。
systemctl restart openstack-glance-api.service