我要评分
获取效率
正确性
完整性
易理解

Configuring Nova to Integrate with Ceph

Modify the Nova configuration file on OpenStack to integrate Nova with Ceph.

  1. On the OpenStack compute node (Nova compute node), modify the /etc/nova/nova.conf file.
    1. Open the file.
      vi /etc/nova/nova.conf
    2. Press i to enter the insert mode and modify the file as follows:
      [DEFAULT] 
      ... 
      live_migration_flag = "VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST,VIR_MIGRATE_TUNNELLED" 
       
      [libvirt] 
      ... 
      virt_type = kvm 
      images_type = rbd 
      images_rbd_pool = vms 
      images_rbd_ceph_conf = /etc/ceph/ceph.conf 
      disk_cachemodes="network=writeback" 
      rbd_user = cinder 
      rbd_secret_uuid = b3d5fee6-839c-482e-b244-668bad7128a9

      Change the value of rbd_secret_uuid to the UUID generated when a key is added to libvirt.

    1. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  2. On the OpenStack compute node (Nova compute node), restart the nova-compute service.
    systemctl restart openstack-nova-compute.service