Openstack Cheat-Sheet

ADVERTISEMENT

OpenStack Cheat-Sheet
Common
Router
Volumes
show help for command
list routers
list all volumes
nova help [command]
neutron router­list
nova volume­list
show router details
show volume details
neutron help [command]
etc.
neutron router­show [subnetID]
nova volume­show [volumeID]
create a neutron router
create a new volume
Instances
neutron router­create [router­name]
nova volume­create [size_inGB]
list instances
delete a neutron router
delete a volume
nova list
neutron router­delete [routerID]
nova volume­delete [volumeID]
show instance details
update router's information
attach a volume to an instance
nova show [instanceID]
neutron router­update [routerID]
nova volume­attach [instanceID][volumeID][device]
create instance
detach a volume from an instance
User
nova boot ­­image [imageID] ­­flavor [flavorID]
nova volume­detach [instanceID][attachmentID]
create instance snapshot
list all user
update volume attachment
nova image­create [instance­ID] [snapshotID] 
keystone user­list
nova volume­update [instanceID][attachmentID][volumeID]
delete instance
show user details
list all snapshots
nova delete [instanceID]
keystone user­get [username]
nova volume­snapshot­list
control an instance
create new user
show details about a snapshot
keystone user­create [­­name[username]][­­tenant­
nova pause [instanceID]
nova volume­snapshot­show [snapshotID]
id[tenantID]][­­pass[pass]]  [­­email[email]][­­
add a new volume
nova unpause [instanceID]
enabled[boolean]]
nova suspend [instanceID]
nova volume­snapshot­create [volumeID]
delete use
delete a snapshot
nova resume [instanceID]
nova start [instanceID]
keystone user­delete [username]
nova volume­snapshot­delete [snapshotID]
update user's information
nova stop [instanceID]
Flavors
keystone user­update[­­name[username]] [–email[email]][­­
nova rescue [instanceID]
enabled[boolean]][user]
list flavors
nova resize [instanceID][flavorID]
nova resize­confirm [instanceID]
nova flavor­list
Tenants
show flavor details
nova reboot [instanceID]
list all tenants
nova reset­state [instanceID]
nova flavor­show [flavorID]
keystone tenant­list
Security-Groups
FloatingIP
show tenant details
list security groups
list floatingIP for this tenant
keystone tenant­get [tenantID]
neutron security-group-list
create new tenant
nova floating­ip­list
show security group details
keystone tenant­create [­­name[tenant­name]][­­description 
list all floatingIP pools
[tenant­description]][­­enabled [boolean]]
neutron security­group­show [securitygroupID]
nova floating­ip­pool­list
create a security group
delete a tenant
allocating a new floatingIP
neutron security­group­create [securitygroupname]
keystone tenant­delete [tenantID]
nova floating­ip­create [floatingIP­pool]
create a security group rule
update tenant's information
deallocate a floatingIP
neutron security­group­rule­create [SecuritygroupID]
nova floating­ip­delete [IP]
keystone tenant­update [­­name [tenantname][­­description 
delete a security group
associate a floating IP with an instance
[tenant­description]][­­enabled [boolean]] [tenant]
neutron security­group­delete [securitygroupID]
nova floating­ip­associate [instanceID][[IP]
Images
delete a security group rule
disassociate a floatingIP from an instance
list glance images
neutron security­group­rule­delete [securitygroup­ruleID]
nova floating­ip­disassociate [instanceID][IP]
update a security group
glance image­list
show image details
neutron security­group­update [securitygroupID]
glance image­show [imageID]
Network
create glance image
glance image­create [­­name [image­name]][­­is­public 
list networks and subnets
[boolean]][­­container­format [[container­format]][­­disk­
neutron net­list
format [disk­format]][­­copy­from [URI]]
neutron subnet­list
show network and subnet details
delete an image
neutron net­show [networkID]
glance image­delete [imageID]
update an image
neutron subnet­show [subnetID]
create a network
glance image­update [imageID]
download an image
neutron net­create [network­name]
Version 0.1
neutron subnet­create [subnet­name][CIDR]
glance image­download [imageID]
delete a network
21.10.14
neutron net­delete [networkID]
neutron subnet­delete[subnetID]
update information of network
neutron net­update [subnetID]

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go