Objective
You can manage Public Cloud services using commands sent from the system console, once you have downloaded and installed OpenStack tools.
With the OpenStack API, you can automate your management by generating scripts. The OpenStack Nova client can be used to manage instances and disk space. With the OpenStack Glance client, you can manage images and backups, while the Swift client can be used to manage object storage space.
Find out how to install these OpenStack tools.
Requirements
- root access to the environment you want to configure
Instructions
On Debian 10
Open the terminal, and connect to the environment you want to prepare via SSH.
Update the packet cache using the apt update
command:
$ sudo apt update
Use the command below to install the OpenStack and Nova clients (compute application):
$ sudo apt install python3-pip python3-openstackclient python3-novaclient -y
Add the path to the Python installations to the environmental variables using the following command:
$ export PATH=/home/user/.local/bin:$PATH
Confirm the variable was added to the path as follows:
$ echo $PATH
After you have completed this step, we recommend creating a special user without root access.
To access the help tools, run the following command:
$ openstack --help
$ nova help
On CentOS 8
Open the terminal and connect to the environment you want to prepare via SSH.
Update the packet cache using the following command:
$ sudo dnf update -y
Install the Python packages with the following command:
$ sudo dnf install python3-devel python3-pip
Next, upgrade Python using the following command:
$ sudo pip3 install --upgrade pip
And finally, the OpenStack client:
$ sudo pip3 install python-openstackclient python-novaclient
After you have completed this step, we recommend creating a special user without root access.
To access the help tools, run the following command:
$ openstack --help
$ nova help
On Windows
Download and install the latest Python 3 release.