cmd - nova-manage

最後更新: 20141029

nova-manage - Cloud controller fabric

nova-manage <category> <action> [<args>]

nova-manage version

2014.1.2-1.el6

 

# Status of nova services

nova-manage service list

Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth openstack.local                      internal         enabled    :-)   2014-10-29 09:19:23
nova-scheduler   openstack.local                      internal         enabled    :-)   2014-10-29 09:19:23
nova-conductor   openstack.local                      internal         enabled    :-)   2014-10-29 09:19:23
nova-network     openstack.local                      internal         enabled    :-)   2014-10-29 09:19:24
nova-compute     openstack.local                      nova             enabled    :-)   2014-10-29 09:19:23
nova-cert        openstack.local                      internal         enabled    :-)   2014-10-29 09:19:23

# Physical nodes

nova-manage host list

host                            zone
openstack.local                 internal

 

<Nova Logs>

nova-manage logs errors
nova-manage logs syslog <number>

<Nova Floating IPs>

nova-manage floating list

7af17721fd3645d2a9510812dff57806        192.168.88.221  15db524e-2560-43e5-b7d5-7a9d30d851c3    nova    eth0
7af17721fd3645d2a9510812dff57806        192.168.88.222  cfa48f4b-e139-49ff-8bc4-bb7d9fa0e4ac    nova    eth0
None    192.168.88.223  None    nova    eth0
None    192.168.88.224  None    nova    eth0

nova-manage floating create  <ip_range>  [--pool  <pool>]  [--interface <interface>]
nova-manage floating delete <ip_range>

<Nova Flavor>

nova-manage flavor list [--all]

m1.small: Memory: 512MB, VCPUS: 1, Root: 20GB, Ephemeral: 0Gb, FlavorID: 23c194a8-0464-4348-ad48-191bbb1cd0e0, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}
m1.tiny: Memory: 512MB, VCPUS: 1, Root: 10GB, Ephemeral: 0Gb, FlavorID: 1a9dba6d-5287-487e-91c5-c1e19cd9b266, Swap: 0MB, RXTX Factor: 1.0, public, ExtraSpecs {}

nova-manage  flavor create <name> <memory> <vCPU> <local_storage> <flavorID> <(optional) swap> <(optional) RXTX Quota> <(optional) RXTX Cap>

# This marks the flavor as inactive and cannot be launched.
nova-manage flavor delete <name>

 

<Nova Images>

# Registers an image with the image service.
nova-manage image image_register <path> <owner>

<Nova VM>

# Show a list of all instances.
nova-manage vm list [host]

instance   node            type       state      launched                   image     kernel    ramdisk    project    user       zone       index
test21     openstack.local m1.tiny    active     2014-10-28 02:31:29        34b53e41-4ef7-4d79-b421-ae9aeba00b88                     7af17721fd3645d2a9510812dff57806 dc20fb556d7943d68dbc05afceec72c0 nova       0

# Live  migrate  instance  from  current host to destination host.
nova-manage live-migration <ec2_id> <destination host name>

<Nova DB>

# 233
nova-manage db version

# Sync the database up to the most recent version.
nova-manage db sync
 

Creative Commons license icon Creative Commons license icon