Este contenido no está disponible en el idioma seleccionado.
Chapter 3. Creating the custom back end environment file
The environment file that you create to configure custom back ends contains the settings for each back end that you want to define. It also contains other settings that are relevant to the deployment of a custom back end. For more information about environment files, see Environment Files in the Customizing your Red Hat OpenStack Platform deployment guide.
The following sample environment file defines two NetApp back ends, netapp1 and netapp2:
/home/stack/templates/custom-env.yaml
- 1
- The following parameters are set to
false, which disables other back end types:-
CinderEnableIscsiBackend: other iSCSI back ends. -
CinderEnableRbdBackend: Red Hat Ceph. -
CinderEnableNfsBackend: NFS. -
NovaEnableRbdBackend: ephemeral Red Hat Ceph storage.
-
- 2
- The GlanceBackend parameter sets what the Image service uses to store images. The following values are supported:
-
file: store images on/var/lib/glance/imageson each Controller node. -
swift: use the Object Storage service for image storage. -
cinder: use the Block Storage service for image storage.
-
- 3
ControllerExtraConfigdefines custom settings that are applied to all Controller nodes. Thecinder::config::cinder_configclass means the settings must be applied to the Block Storage (cinder) service.- 4
- The
netapp1/volume_driverandnetapp2/volume_driversettings follow the section/setting syntax. With the Block Storage service, each back end is defined in its own section in/etc/cinder/cinder.conf. Each setting that uses thenetapp1prefix is defined in a new[netapp1]back end section. - 5
netapp2settings are defined in a separate[netapp2]section.- 6
- The
valueprefix configures the preceding setting. - 7
- The
cinder_user_enabled_backendsclass sets and enables custom back ends. Use this class only for user-enabled back ends, specifically, those defined in thecinder::config::cinder_configclass.Do not use
cinder_user_enabled_backendsto list back ends that you can enable natively with director. These include Red Hat Ceph, NFS, and single back ends for supported NetApp or Dell appliances. For example, if you enable a Red Hat Ceph back end, do not list it incinder_user_enabled_backends, enable it by settingCinderEnableRbdBackendtotrue.
For more information about defining a Red Hat Ceph back end for OpenStack Block Storage, see Deploying Red Hat Ceph Storage and Red Hat OpenStack Platform together with director.
To see the resulting /etc/cinder/cinder.conf settings from /home/stack/templates/custom-env.yaml, see Configuration from sample environment file.