Appendix A. OpenStack command-line interface cheat sheet
The following tables give a quick reference of the most used command-line commands.
Table A.1. Identity (keystone)
| Description | Command |
|---|---|
| List all users |
|
| List Identity service catalog |
|
| List all services in service catalog |
|
| Create new user |
|
| Create new tenant |
|
Table A.2. Image Service (glance)
| Description | Command |
|---|---|
| List images you can access |
|
| Delete specified image |
|
| Describe a specific image |
|
| Update image |
|
| Manage images | |
| Kernel image |
|
| RAM image |
|
| Three-part image |
|
| Register raw image |
|
Table A.3. Compute (nova)
| Description | Command |
|---|---|
| List instances, notice status of instance |
|
| List images |
|
| List flavors |
|
| Boot an instance using flavor and image names (if names are unique) |
|
| Login to instance |
Note, in CirrOS the password for user |
| Show details of instance |
|
| View console log of instance |
|
| Set metadata on an instance |
|
| Create an instance snapshot |
|
| Pause, suspend, stop, rescue, resize, rebuild, reboot an instance | |
| Pause |
|
| Unpause |
|
| Suspend |
|
| Unsuspend |
|
| Stop |
|
| Start |
|
| Rescue |
|
| Resize |
|
| Rebuild |
|
| Reboot |
|
| Inject user data and files into an instance |
To validate that the file is there, ssh into the instance, and look in |
| Inject a keypair into an instance and access the instance with that keypair | |
| Create keypair |
|
| Boot |
|
| Use ssh to connect to the instance |
|
| Manage security groups | |
| Add rules to default security group allowing ping and SSH between instances in the default security group |
|
Table A.4. Networking (neutron)
| Description | Command |
|---|---|
| Create network |
|
| Create a subnet |
|
| List network and subnet |
|
| Examine details of network and subnet |
|
Table A.5. Block Storage (cinder)
| Description | Command |
|---|---|
| Manage volumes and volume snapshots | |
| Create a new volume |
|
| Boot an instance and attach to volume |
|
| List volumes, notice status of volume |
|
| Attach volume to instance after instance is active, and volume is available |
|
| Manage volumes after login into the instance | |
| List storage devices |
|
| Make filesystem on volume |
|
| Create a mountpoint |
|
| Mount the volume at the mountpoint |
|
| Create a file on the volume |
|
| Unmount the volume |
|
Table A.6. Object Storage (swift)
| Description | Command |
|---|---|
| Display information for the account, container, or object |
|
| List containers |
|
| Create a container |
|
| Upload file to a container |
|
| List objects in container |
|
| Download object from container |
|
| Upload with chunks, for large file |
|