Chapter 4. Testing the configured back end
After you deploy the back ends to the overcloud, test that you can successfully create volumes on them.
Procedure
Run the following command as the
stackuser to load the environment variables defined inhome/stack/overcloudrec:$ source /home/stack/overcloudrc
For more information, see Accessing the overcloud in the Director Installation and Usage guide.
Create a volume type for each back end. Log in to the Controller node of the overcloud as the
stackuser and run the following command:$ cinder type-create backend1 $ cinder type-create backend2
These commands create the volume types
backend1andbackend2, one for each back end that is defined with thecinder::config::cinder_configclass of the environment file that you created.Map each volume type to the
volume_backend_nameof a back end that is enabled with thecinder_user_enabled_backendsclass of the environment file that you created The following commands map the volume typebackend1tonetapp1andbackend2tonetapp2:$ cinder type-key backend1 set volume_backend_name=netapp1 $ cinder type-key backend2 set volume_backend_name=netapp2
Run the following command to test that it is possible to create a back end on
netapp1by invoking thebackend1volume type:$ cinder create --volume-type backend1 --display_name netappvolume_1 1
Create a similar volume on the
netapp2back end by invoking thebackend2volume type:$ cinder create --volume-type backend2 --display_name netappvolume_2 1