OpenStack CLI

Install and configure the OpenStack CLI to manage Private Cloud Director services.

Overview

PCD Compute, Block Storage, Network, and Identity services expose OpenStack APIs. You can use the OpenStack CLIarrow-up-right to perform a wider set of operations than the Private Cloud Director UI supports.

This article covers how to install and configure the OpenStack CLI.

Alternatively, you can use pcdctl, which provides a convenient wrapper for all OpenStack CLI commands exposed by Private Cloud Directorservices. For more information, see PCD CLI (pcdctl).

Install the OpenStack CLI

Run the following command to install the OpenStack CLI on your local machine.

apt install python3-openstackclient -y

Authenticate the OpenStack CLI

The Private Cloud Director UI provides a pcdctl RC file configured for your Private Cloud Director environment.

You can use the same RC file with the OpenStack CLI.

  1. In the Private Cloud Director UI, navigate to Settings and select API Access.

  2. Locate the pcdctl RC file listed on the page.

  3. Copy the contents to a new file named openstackrc and update OS_PASSWORD with your Private Cloud Director account password.

  4. Run the following command to set the environment variables.

source openstackrc

Run the OpenStack CLI

To verify your setup, run the following command to list all virtual machines in your current tenant.

Last updated

Was this helpful?