CLI basics
HAGISTACK installs the openstack command (python-openstackclient) on the controller.
The command syntax in this guide was checked against the --help of the version the nodes get: python-openstackclient 9.0.1 (openstacksdk 4.10.0).
Load the credentials
Section titled “Load the credentials”sudo -i. /etc/hagistack/admin-openrc/etc/hagistack/admin-openrcholds the admin user’s credentials (readable by root only).- It sets the Keystone URL (
http://MGMT_IP:5000/v3), the useradmin, the projectadminand so on. - Check:
openstack token issue -c expires -c project_idopenstack catalog listcatalog list shows the identity, image, placement, network and compute services.
Help and output formats
Section titled “Help and output formats”openstack help server create # help for a subcommandopenstack server list -f json # JSON outputopenstack server list -f value -c ID -c Name # values only, chosen columns| Option | Meaning |
|---|---|
-f table |
table (default) |
-f json / -f yaml |
machine-readable |
-f value |
values only (for scripts) |
-c COLUMN |
columns to show (repeatable) |
Example output
Section titled “Example output”Example output on these pages shows the format only and is marked as an example; it is not captured from a real host. IDs, times and host names differ on every installation.
Destructive operations
Section titled “Destructive operations”delete, remove, set --disable and the like delete or change resources, mostly irreversibly.
Check the name and ID with list / show first.
CLI and Horizon
Section titled “CLI and Horizon”| CLI | Horizon |
|---|---|
openstack user list |
Identity → Users |
openstack project list |
Identity → Projects |
openstack image list |
Project → Compute → Images |
openstack flavor list |
Admin → Compute → Flavors |
openstack server list |
Project → Compute → Instances |
openstack keypair list |
Project → Compute → Key Pairs |
openstack network list |
Project → Network → Networks |
openstack router list |
Project → Network → Routers |
openstack floating ip list |
Project → Network → Floating IPs |
openstack security group list |
Project → Network → Security Groups |
openstack hypervisor list |
Admin → Compute → Hypervisors |
openstack compute service list |
Admin → System → System Information |