查看某个 tenant下的云主机信息
source keystonerc_QA
nova list
+--------------------------------------+----------------------------------------+--------+------------+-------------+-----------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------------------------------------+--------+------------+-------------+-----------------------------+
| 8e60fe41-90a8-4d54-a506-bdc37f97f3bb | xindatabase-agiqm.xxx.com | ACTIVE | - | Running | QA_NET=10.197.11.13 |
| 1075b361-5ca3-4e23-837f-0edbbb780e68 | xindatabase-gsyi5.xxx.com | ACTIVE | - | Running | QA_NET=10.197.11.12 |
查看所有tenant下的云主机信息
source keystonerc_admin
nova list --all-tenants
nova image-list
+--------------------------------------+-------------------------------------------------+--------+--------------------------------------+
| ID | Name | Status | Server |
+--------------------------------------+-------------------------------------------------+--------+--------------------------------------+
| 04135fe1-14d8-4480-a638-189ed93ea620 | Centos5.8 | ACTIVE | |
| f87f65e3-24ff-44c0-8858-9662334679e4 | Centos6.3 | ACTIVE | |
| 764b2022-0ecf-4013-b68a-898e9c31fb46 | Centos6.6 | ACTIVE | |
| 3043d3e7-c565-44c1-ad5d-8efcb5e3bfe1 | Centos6.5 | ACTIVE | |
查看网络
neutron net-list
+--------------------------------------+------------+------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+------------+------------------------------------------------------+
| 0007150e-b600-4ea6-841d-79261bf10af8 | QA_NET | ecc5f5a4-1fd7-4428-9351-6809ada3ad08 10.197.160.0/19 | 查看用zone
nova aggregate-list
+----+---------------+--------------------+
| Id | Name | Availability Zone |
+----+---------------+--------------------+
| 1 | qa-zone | qa-zone |
查看zone下的物理主机
nova aggregate-details qa-zone
+----+---------------+--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+---------------+--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------+
| 5 | nghai-temp | nghai-temp-zone | 'compute-127106.xx.com', 'compute-127107.xx.com', 'compute-127108.xx.com', 'compute-127109.xx.com', 'compute-127110.xx.com', 'compute-127111.xx.com', 'compute-127112.xx.com', 'compute-127113.xx.com' | 'availability_zone=qa-zone' |
+----+---------------+--------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
查看镜像列表
nova image-list
+--------------------------------------+-------------------------------------------------+--------+--------------------------------------+
| ID | Name | Status | Server |
+--------------------------------------+-------------------------------------------------+--------+--------------------------------------+
| 0c47db9c-5f74-4544-8ada-0894c1d2c20c | Win7 | ACTIVE | |