zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    MySQL 中 where id in (1,2,3,4,...) 的效率问题讨论
    创建,增加,删除mysql表分区
    mysql分区及实例演示
    MySQL的表分区详解
    MySQL 存储过程传参之in, out, inout 参数用法
    MySQL里面的子查询实例
    超详细mysql left join,right join,inner join用法分析
    MySQL force Index 强制索引概述
    MyISAM和InnoDB的索引在实现上的不同
    java中的守护线程
  • 原文地址:https://www.cnblogs.com/CLTANG/p/4332547.html
Copyright © 2011-2022 走看看