Openstack的的nova list命令

CL.TANG發表於2016-10-18

nova list用於在shell互動模式下檢視當前使用者存在的例項數目,但是這裡仍然要注意的地方:

沒有引數的nova list

[root@node-5 newstest-master]# nova list
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------------------------------+
| ID                                   | Name  | Status | Task State | Power State | Networks                                                        |
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------------------------------+
| b3738b0a-8a27-4720-8364-503543fbb13c | test2 | ACTIVE | None       | Running     | network_20=10.10.0.3; test_pool=10.20.0.3; novanetwork=10.0.0.2 |
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------------------------------+
[root@node-5 newstest-master]# nova list

有引數nova list --all-tenants 1

[root@node-5 newstest-master]# nova list --all-tenants 1
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------------------------------+
| ID                                   | Name  | Status | Task State | Power State | Networks                                                        |
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------------------------------+
| 957b3fd5-0526-4e23-a4f6-bbeb5a9cd734 | 1     | ACTIVE | None       | Running     | network_20=10.10.0.4; test_pool=10.20.0.4; novanetwork=10.0.0.4 |
| b3738b0a-8a27-4720-8364-503543fbb13c | test2 | ACTIVE | None       | Running     | network_20=10.10.0.3; test_pool=10.20.0.3; novanetwork=10.0.0.2 |
+--------------------------------------+-------+--------+------------+-------------+-----------------------------------------------------------------+

從這裡我們可以看到,如果不指定引數要求獲取全部的例項列表,那麼當前獲得例項列表將使當前的專案的list.

相關文章