- Ceph Cookbook
- Karan Singh
- 189字
- 2021-07-16 13:01:20
Configuring Nova to attach Ceph RBD
In order to attach the Ceph RBD to OpenStack instances, we should configure the nova component of OpenStack by adding the rbd
user and uuid information that it needs to connect to the Ceph cluster. To do this, we need to edit /etc/nova/nova.conf
on the OpenStack node and perform the steps that are given in the following section.
How to do it…
The cinder service that we configured in the last recipe creates volumes on Ceph, however, to attach these volumes to OpenStack instances, we need to configure Nova:
- Navigate to the Options defined in nova.virt.libvirt.volume section and add the following lines of code (replace the secret
uuid
with your environments value):rbd_user=cinder rbd_secret_uuid= bb90381e-a4c5-4db7-b410-3154c4af486e
- Restart the OpenStack nova services:
# service openstack-nova-compute restart
- To test this configuration, we will attach the cinder volume to an OpenStack instance. List the instance and volumes to get the ID:
# nova list # cinder list
- Attach the volume to the instance:
# nova volume-attach 1cadffc0-58b0-43fd-acc4-33764a02a0a6 1337c866-6ff7-4a56-bfe5-b0b80abcb281 # cinder list
- You can now use this volume as a regular block disk from your OpenStack instance.
推薦閱讀
- Learning Java Functional Programming
- 微服務設計原理與架構
- Bulma必知必會
- Blender 3D Incredible Machines
- R的極客理想:工具篇
- PySide GUI Application Development(Second Edition)
- HTML5+CSS3網站設計基礎教程
- 小學生C++創意編程(視頻教學版)
- 利用Python進行數據分析(原書第3版)
- 深入理解Elasticsearch(原書第3版)
- C++面向對象程序設計習題解答與上機指導(第三版)
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- QGIS 2 Cookbook
- Deep Learning with R Cookbook
- Node.js實戰:分布式系統中的后端服務開發