Openstack的的nova list命令
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.