Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 5. Testing the configured back ends

download PDF

After you deploy the back ends to the overcloud, test that you can successfully create volumes on them.

Procedure

  1. Run the following command as the stack user to load the environment variables defined in home/stack/overcloudrec:

    $ source /home/stack/overcloudrc
    Note

    For more information, see Accessing the overcloud in the Installing and managing Red Hat OpenStack Platform with director guide.

  2. Create a volume type for each back end. Log in to the Controller node of the overcloud as the stack user and run the following command:

    $ cinder type-create backend1
    $ cinder type-create backend2

    These commands create the volume types backend1 and backend2, one for each back end that is defined with the cinder::config::cinder_config class of the environment file that you created.

  3. Map each volume type to the volume_backend_name of a back end that is enabled with the cinder_user_enabled_backends class of the environment file that you created The following commands map the volume type backend1 to netapp1 and backend2 to netapp2:

    $ cinder type-key backend1 set volume_backend_name=netapp1
    $ cinder type-key backend2 set volume_backend_name=netapp2
  4. Run the following command to test that it is possible to create a back end on netapp1 by invoking the backend1 volume type:

    $ cinder create --volume-type backend1 --display_name netappvolume_1 1
  5. Create a similar volume on the netapp2 back end by invoking the backend2 volume type:

    $ cinder create --volume-type backend2 --display_name netappvolume_2 1
Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.