這篇文章給大家分享的是有關(guān)kolla-ansible如何執(zhí)行openstack對(duì)接ceph的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。
網(wǎng)站的建設(shè)成都創(chuàng)新互聯(lián)公司專注網(wǎng)站定制,經(jīng)驗(yàn)豐富,不做模板,主營(yíng)網(wǎng)站定制開(kāi)發(fā).小程序定制開(kāi)發(fā),H5頁(yè)面制作!給你煥然一新的設(shè)計(jì)體驗(yàn)!已為成都PVC花箱等企業(yè)提供專業(yè)服務(wù)。
1、先決條件:
已經(jīng)部署完成的openstack和ceph集群
已經(jīng)創(chuàng)建完存儲(chǔ)池
準(zhǔn)備好ceph.conf,(Glance, Cinder, Nova)keyring:如下圖

2、設(shè)置ceph客戶端認(rèn)證,在其中一個(gè)ceph節(jié)點(diǎn)執(zhí)行以下命令:
ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rwx pool=vms, allow rwx pool=images'
ceph auth get-or-create client.glance mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=images'
ceph auth get-or-create client.cinder-backup mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=backups'
3、對(duì)接glance服務(wù),執(zhí)行以下操作:
ceph auth get-or-create client.glance
將輸出結(jié)果存入/etc/kolla/config/glance/ceph.client.glance.keyring
對(duì)接cinder服務(wù),執(zhí)行以下操作:
ceph auth get-or-create client.cinder
將輸出結(jié)果存入/etc/kolla/config/cinder/cinder-backup/ceph.client.cinder.keyring
/etc/kolla/config/cinder/cinder-volume/ceph.client.cinder.keyring
ceph auth get-or-create client.cinder-backup
將輸出結(jié)果存入/etc/kolla/config/cinder/cinder-backup/ceph.client.cinder-backup.keyring
ceph auth get-or-create client.nova
將輸出結(jié)果存入/etc/kolla/config/nova/ceph.client.cinder.keyring
4、將ceph.conf配置文件放置到/etc/kolla/config/cinder/,glance/,nova/,當(dāng)中
5、編輯/etc/kolla/config/glance/glance-api.conf,添加如下內(nèi)容
[DEFAULT]
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
6、編輯/etc/kolla/config/cinder/cinder-volume.conf,添加如下內(nèi)容
[DEFAULT]
enabled_backends=rbd-1
[rbd-1]
rbd_ceph_conf=/etc/ceph/ceph.conf
rbd_user=cinder
backend_host=rbd:volumes
rbd_pool=volumes
volume_backend_name=rbd-1
volume_driver=cinder.volume.drivers.rbd.RBDDriver
rbd_secret_uuid = {{ cinder_rbd_secret_uuid }}
備注:cinder_rbd_secret_uuid 必須能夠在/etc/kolla/passwords.yml 文件找到
7、編輯/etc/kolla/config/cinder/cinder-backup.conf,添加如下內(nèi)容
[DEFAULT]
backup_ceph_conf=/etc/ceph/ceph.conf
backup_ceph_user=cinder
backup_ceph_chunk_size = 134217728
backup_ceph_pool=backups
backup_driver = cinder.backup.drivers.ceph
backup_ceph_stripe_unit = 0
backup_ceph_stripe_count = 0
restore_discard_excess_bytes = true
8、編輯/etc/kolla/config/nova/nova-compute.conf,添加如下內(nèi)容
[libvirt]
virt_type=qemu
images_rbd_pool=vms
images_type=rbd
images_rbd_ceph_conf=/etc/ceph/ceph.conf
rbd_user=nova
備注:rbd_user可能因您的環(huán)境而異。
9、執(zhí)行kolla-ansible -i multinode reconfigure
10、重啟容器
感謝各位的閱讀!關(guān)于“kolla-ansible如何執(zhí)行openstack對(duì)接ceph”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!
網(wǎng)站標(biāo)題:kolla-ansible如何執(zhí)行openstack對(duì)接ceph
網(wǎng)站鏈接:http://chinadenli.net/article28/ggpdjp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁(yè)設(shè)計(jì)公司、域名注冊(cè)、網(wǎng)站內(nèi)鏈、網(wǎng)站導(dǎo)航、服務(wù)器托管、網(wǎng)站排名
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)