Use Ceph-RBD

This topic describes how to configure Ceph-RBD as the block storage backend provider for the Storage Controller (SC).

Prerequisites
To configure Ceph-RBD block storage for the zone, run the following commands on the CLC
  1. Configure the SC to use Ceph-RBD for EBS.
    euctl ZONE.storage.blockstoragemanager=ceph-rbd
    The output of the command should be similar to:
    one.storage.blockstoragemanager=ceph-rbd
  2. Verify that the property value is now ceph-rbd:
    euctl ZONE.storage.blockstoragemanager
  3. Check the SC to be sure that it has transitioned out of the BROKEN state and is in the NOTREADY, DISABLED or ENABLED state before configuring the rest of the properties for the SC.
  4. The ceph-rbd provider will assume defaults for the following properties for the SC:
    euctl ZONE.storage.ceph
     
    PROPERTY        one.storage.cephconfigfile  /etc/ceph/ceph.conf
    DESCRIPTION     one.storage.cephconfigfile  Absolute path to Ceph configuration (ceph.conf) file. Default value is '/etc/ceph/ceph.conf'
     
    PROPERTY        one.storage.cephkeyringfile /etc/ceph/ceph.client.eucalyptus.keyring
    DESCRIPTION     one.storage.cephkeyringfile Absolute path to Ceph keyring (ceph.client.eucalyptus.keyring) file. Default value is '/etc/ceph/ceph.client.eucalyptus.keyring'
     
    PROPERTY        one.storage.cephsnapshotpools       rbd
    DESCRIPTION     one.storage.cephsnapshotpools       Ceph storage pool(s) made available to Eucalyptus for EBS snapshots. Use a comma separated list for configuring multiple pools. Default value is 'rbd'
     
    PROPERTY        one.storage.cephuser        eucalyptus
    DESCRIPTION     one.storage.cephuser        Ceph username employed by Eucalyptus operations. Default value is 'eucalyptus'
     
    PROPERTY        one.storage.cephvolumepools rbd
    DESCRIPTION     one.storage.cephvolumepools Ceph storage pool(s) made available to Eucalyptus for EBS volumes. Use a comma separated list for configuring multiple pools. Default value is 'rbd'
  5. The following steps are optional if the default values do not work for your cloud:
    1. To set the Ceph username (the default value for Eucalyptus is 'eucalyptus'):
      euctl ZONE.storage.cephuser=myuser
    2. To set the absolute path to keyring file containing the key for the 'eucalyptus' user (the default value is '/etc/ceph/ceph.client.eucalyptus.keyring'):
      euctl ZONE.storage.cephkeyringfile='/etc/ceph/ceph.client.myuser.keyring'
      Note: If cephuser was modified, ensure that cephkeyringfile is also updated with the location to the keyring for the specific cephuser:
    3. To set the absolute path to ceph.conf file (default value is '/etc/ceph/ceph.conf'):
      euctl ZONE.storage.cephconfigfile=/path/to/ceph.conf
    4. To change the comma-delimited list of Ceph pools assigned to Eucalyptus for managing EBS volumes (default value is 'rbd') :
      euctl ZONE.storage.cephvolumepools=rbd,myvolumes
    5. To change the comma-delimited list of Ceph pools assigned to Eucalyptus for managing EBS snapshots (default value is 'rbd') :
      euctl ZONE.storage.cephsnapshotpools=mysnapshots
  6. If you want to enable snapshot deltas for your Ceph backend:
    Note: Snapshot deltas are supported only on Ceph-RBD.
    Note: EBS snapshot delta support is a Technical Preview feature. For information about Technical Preview features in Eucalyptus, see Special Status Release Features.
    1. Verify that snapshots are enabled:
      euctl ZONE.storage.shouldtransfersnapshots=true
    2. Set the maximum number of deltas to be created before creating a new full snapshot:
      euctl ZONE.storage.maxsnapshotdeltas=NON_ZERO_INTEGER
      Note: This variable applies to all Ceph volumes.
      Tip: If you need to create a non-Ceph volume from a Ceph snapshot, this value would need to be set to zero (at least temporarily).
  7. Every NC will assume the following defaults:
    CEPH_USER_NAME="eucalyptus"
    CEPH_KEYRING_PATH="/etc/ceph/ceph.client.eucalyptus.keyring"
    CEPH_CONFIG_PATH="/etc/ceph/ceph.conf"
    1. To override the above defaults, add/edit the following properties in the /etc/eucalyptus/eucalyptus.conf on the specific NC file:
      CEPH_USER_NAME="ceph-username-for-use-by-this-NC"
      CEPH_KEYRING_PATH="path-to-keyring-file-for-ceph-username"
      CEPH_CONFIG_PATH="path-to-ceph.conf-file"
    2. Repeat this step for every NC in the specific Eucalyptus zone.
Your Ceph backend is now ready to use with Eucalyptus.
x