6.7. Validate the Block Storage Service Installation

This procedure lists steps for validating that the block storage installation is complete and ready for use.

Procedure 6.12. Validating the Block Storage Service installation

  1. Testing Locally

    The steps outlined in this section of the procedure must be performed while logged in to the server hosting the block storage API service as the root user or a user with access to a keystonerc_admin file containing the credentials of the OpenStack administrator. Transfer the keystonerc_admin file to the system before proceeding.
    1. Run the source command on the keystonerc_admin file to populate the environment variables used for identifying and authenticating the user.
      # source ~/keystonerc_admin
    2. Run the cinder list command and verify that no errors are returned.
      # cinder list
    3. Run the cinder create command to create a volume.
      # cinder create SIZE
      Replace SIZE with the size of the volume to create in Gigabytes (GB).
    4. Run the cinder delete command to remove the volume.
      # cinder delete ID
      Replace ID with the identifier returned when the volume was created.
  2. Testing Remotely

    The steps outlined in this section of the procedure must be performed while logged in to a system other than the server hosting the block storage API service. Transfer the keystonerc_admin file to the system before proceeding.
    1. Install the python-cinderclient package using the yum command. You will need to authenticate as the root user for this step.
      # yum install -y python-cinderclient
    2. Run the source command on the keystonerc_admin file to populate the environment variables used for identifying and authenticating the user.
      $ source ~/keystonerc_admin
    3. Run the cinder list command and verify that no errors are returned.
      $ cinder list
    4. Run the cinder create command to create a volume.
      $ cinder create SIZE
      Replace SIZE with the size of the volume to create in Gigabytes (GB).
    5. Run the cinder delete command to remove the volume.
      $ cinder delete ID
      Replace ID with the identifier returned when the volume was created.