官术网_书友最值得收藏!

  • 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:

  1. 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
  2. Restart the OpenStack nova services:
    # service openstack-nova-compute restart
    
  3. 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
    
  4. Attach the volume to the instance:
    # nova volume-attach 1cadffc0-58b0-43fd-acc4-33764a02a0a6 1337c866-6ff7-4a56-bfe5-b0b80abcb281
    # cinder list
    
  5. You can now use this volume as a regular block disk from your OpenStack instance.
主站蜘蛛池模板: 大丰市| 万载县| 麦盖提县| 北海市| 霍林郭勒市| 吴忠市| 阿拉善盟| 周口市| 综艺| 延庆县| 乌拉特后旗| 商南县| 聊城市| 泌阳县| 高雄县| 桂林市| 贵南县| 新乡市| 津市市| 中江县| 嘉义县| 开远市| 香河县| 黎城县| 敦煌市| 潞西市| 乐都县| 文昌市| 泰州市| 龙胜| 神农架林区| 益阳市| 鲜城| 云浮市| 手游| 临漳县| 岳阳市| 保山市| 海兴县| 肇州县| 利辛县|