OpenStack Cheat-Sheet
Common
Router
Volumes
show help for command
list routers
list all volumes
nova help [command]
neutron routerlist
nova volumelist
show router details
show volume details
neutron help [command]
etc.
neutron routershow [subnetID]
nova volumeshow [volumeID]
create a neutron router
create a new volume
Instances
neutron routercreate [routername]
nova volumecreate [size_inGB]
list instances
delete a neutron router
delete a volume
nova list
neutron routerdelete [routerID]
nova volumedelete [volumeID]
show instance details
update router's information
attach a volume to an instance
nova show [instanceID]
neutron routerupdate [routerID]
nova volumeattach [instanceID][volumeID][device]
create instance
detach a volume from an instance
User
nova boot image [imageID] flavor [flavorID]
nova volumedetach [instanceID][attachmentID]
create instance snapshot
list all user
update volume attachment
nova imagecreate [instanceID] [snapshotID]
keystone userlist
nova volumeupdate [instanceID][attachmentID][volumeID]
delete instance
show user details
list all snapshots
nova delete [instanceID]
keystone userget [username]
nova volumesnapshotlist
control an instance
create new user
show details about a snapshot
keystone usercreate [name[username]][tenant
nova pause [instanceID]
nova volumesnapshotshow [snapshotID]
id[tenantID]][pass[pass]] [email[email]][
add a new volume
nova unpause [instanceID]
enabled[boolean]]
nova suspend [instanceID]
nova volumesnapshotcreate [volumeID]
delete use
delete a snapshot
nova resume [instanceID]
nova start [instanceID]
keystone userdelete [username]
nova volumesnapshotdelete [snapshotID]
update user's information
nova stop [instanceID]
Flavors
keystone userupdate[name[username]] [–email[email]][
nova rescue [instanceID]
enabled[boolean]][user]
list flavors
nova resize [instanceID][flavorID]
nova resizeconfirm [instanceID]
nova flavorlist
Tenants
show flavor details
nova reboot [instanceID]
list all tenants
nova resetstate [instanceID]
nova flavorshow [flavorID]
keystone tenantlist
Security-Groups
FloatingIP
show tenant details
list security groups
list floatingIP for this tenant
keystone tenantget [tenantID]
neutron security-group-list
create new tenant
nova floatingiplist
show security group details
keystone tenantcreate [name[tenantname]][description
list all floatingIP pools
[tenantdescription]][enabled [boolean]]
neutron securitygroupshow [securitygroupID]
nova floatingippoollist
create a security group
delete a tenant
allocating a new floatingIP
neutron securitygroupcreate [securitygroupname]
keystone tenantdelete [tenantID]
nova floatingipcreate [floatingIPpool]
create a security group rule
update tenant's information
deallocate a floatingIP
neutron securitygrouprulecreate [SecuritygroupID]
nova floatingipdelete [IP]
keystone tenantupdate [name [tenantname][description
delete a security group
associate a floating IP with an instance
[tenantdescription]][enabled [boolean]] [tenant]
neutron securitygroupdelete [securitygroupID]
nova floatingipassociate [instanceID][[IP]
Images
delete a security group rule
disassociate a floatingIP from an instance
list glance images
neutron securitygroupruledelete [securitygroupruleID]
nova floatingipdisassociate [instanceID][IP]
update a security group
glance imagelist
show image details
neutron securitygroupupdate [securitygroupID]
glance imageshow [imageID]
Network
create glance image
glance imagecreate [name [imagename]][ispublic
list networks and subnets
[boolean]][containerformat [[containerformat]][disk
neutron netlist
format [diskformat]][copyfrom [URI]]
neutron subnetlist
show network and subnet details
delete an image
neutron netshow [networkID]
glance imagedelete [imageID]
update an image
neutron subnetshow [subnetID]
create a network
glance imageupdate [imageID]
download an image
neutron netcreate [networkname]
Version 0.1
neutron subnetcreate [subnetname][CIDR]
glance imagedownload [imageID]
delete a network
21.10.14
neutron netdelete [networkID]
neutron subnetdelete[subnetID]
update information of network
neutron netupdate [subnetID]