Introduction
|
Cloud computing is very flexible and has many diverse uses.
Using the OpenStack dashboard is an easy way to perform many common cloud related tasks, however it doesn’t provide access to all the functionality of the cloud.
The OpenStack CLI can be used to run commands to obtain information and perform tasks similar to the OpenStack dashboard.
The OpenStack CLI can also provide information and perform tasks not available through the OpenStack dashboard.
|
Installing CLI
|
Install the OpenStack CLI using the Python package tool pip
It is recommended to install the OpenStack CLI into a Python virtual environment.
Use the openstack-rc.sh file to easily and consistently set the needed environment variables.
|
Creating a Keypair
|
OpenStack command can be used for one off commands by prefixing with openstack or a series of commands by first running openstack command without any sub commands giving an (openstack) prompt.
Virtual Machines usually use public/private keypairs to authenticate securely.
You can upload a public key to your OpenStack cloud that will be injected into a newly created virtual machine.
|
Creating a virtual machine
|
OpenStack CLI have commands to list flavors, images, and networks available to a project.
The openstack server create command can be used to create a virtual machine.
The openstack server list shows a list of virtual machines and various properties including their statuses.
|
Creating a volume image
|
|
Backups
|
|