Launch OpenStack CLI
The process of launching OpenStack CLI depends on how you configured OpenStack API authentication:
- if you configured authentication via the operating system – launch OpenStack CLI in the OS;
- if you configured authentication in a Docker container – launch OpenStack CLI in a Docker container.
Launch OpenStack CLI in the OS
Linux/macOS
Windows
-
Open the CLI.
-
Apply environment variables from the RC file:
source <rcfile_name>Specify
<rcfile_name>— the name of the RC file you downloaded to configure OpenStack CLI. The default isrc.sh. -
Enter your OpenStack password — the password of the service user for which you downloaded the RC file.
-
Make sure OpenStack CLI is working. To do this, open the list of cloud servers:
openstack server listIf cloud servers have been created in the pool and project specified in the variables, they will appear in the output. If no servers have been created yet, the output will be an empty string.
Launch OpenStack CLI in a Docker container
-
Open the CLI.
-
Launch the Docker container:
docker run -ti --rm -v $(pwd):/workspace osc:dalmatian -
Apply environment variables from the RC file:
source <rcfile_name>Specify
<rcfile_name>— the name of the RC file you downloaded to configure OpenStack CLI. The default isrc.sh. -
Enter your OpenStack password — the password of the service user for which you downloaded the RC file.
-
Make sure OpenStack CLI is working. To do this, open the list of cloud servers:
openstack server listIf cloud servers have been created in the pool and project specified in the variables, they will appear in the output. If no servers have been created yet, the output will be an empty string.
-
After working with OpenStack CLI, exit the Docker container:
exit