Step 5: An overview of the most important OpenStackClient commands
Now that you have installed the OpenStack client in Step 4, you will learn some important commands.
To get more information about a specific subcommand, append the
--help flag to it.
To list all commands, you can use the
With the command
openstack server you can create, administrate, or delete a VM.
Here is a list of some common commands:
openstack server addAdds parameters (Fixed IP, Floating IP, Security group, Volume) to a VM
openstack server createCreates a VM
openstack server deleteDeletes a VM
openstack server listShows a list of all VMs
openstack server removeRemoves parameters (Fixed IP, Floating IP, Security group, Volume) from a VM
openstack server showShows all important information about the specified VM
With the command
openstack stack you are able to administrate complete stacks, like
openstack server for instances.
Here is a list for some common commands:
openstack stack createCreates a new stack
openstack stack listShows a list of all stacks
openstack stack showShows all important information about the specified stack
openstack stack deleteDeletes the specified stack
Security Groups are used to allow or deny incoming and outgoing network traffic based on IP adresses and ports for VMs.
You can also manage security groups in the OpenStackClient.
Here are some common commands:
openstack security group createCreates a new security group.
openstack security group deleteDeletes a security group
openstack security group listShows a list of all security groups
openstack security group showShows all important information about a security group
openstack security group rule createAdds a rule for a security group
openstack security group rule deleteDeletes a rule in a security group
To create VMs, a network is required. Here are some common network commands:
openstack network createCreates a new network
openstack network listShows a list of all networks
openstack network showShows all important information about a network
openstack network deleteDeletes a network
For the VMs on your network to reach the internet, you need a router. Here are some common router commands.
openstack router createCreates a new router
openstack router deleteDeletes a router
openstack router add portAdds a port to a router
openstack router add subnetAdds a subnet to a router
To use a virtual router correctly, you need a subnet that can be administrated with
openstack subnet. Here are some common commands:
openstack subnet createCreates a new subnet
openstack subnet deleteDeletes a subnet
openstack subnet showShows all infomation about a subnet
Ports connect your VMs to your network. Here are some common commands:
openstack port createCreate a new port
openstack port deleteDeletes a port
openstack port showShows all infomation about a port
Volumes are storage locations that persist across the existence of individual instances. Here are some common commands:
openstack volume createCreates a new Volume
openstack volume deleteDeletes a volume
openstack volume showShows all infomation about a volume
Now you know some common OpenStack commands, and have a better overview of the system.
These commands are required in the next steps and form the basis for the rest of the guided tour.
In Step 6, you will create and use your own SSH key pairs.