Skip to main content

Openstack CLI

Installation

First install the OpenStack-CLI clients with:

pip3 install python-openstackclient python-barbicanclient python-cinderclient python-designateclient python-glanceclient python-heatclient python-neutronclient python-novaclient python-octaviaclient python-magnumclient python-heatclient gnocchiclient

Then

Load the Openstack Enviornment File

  • download the OpenStack-RC-filegeneric template for NWS-ID or
  • download the direct access template under 'Get Started' in your Openstack project in the HorizonCustomer dashboard.Interface
  • Click on the "OpenStack RC File" button in the drop down menu in the top-right corner to download the RC File.

    os-rc-file.png

Now you can source the RCenvironment File.file. After entering the password you can send requests to the OpenStack-API.CLI.

$ source 4894-nws-id-openstack-c89d2-openrc.rc.sh
Please enter your OpenStack Password for project 4894-openstack-c89d2 as user 4894-openstack-c89d2:
$...
$ openstack server list

Have a look at the Cheat-Sheet to find commonly used CLI commands.