• 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.

  • 相关阅读:
    一些C++11语言新特性
    项目管理计划应该包括哪些内容
    真相令人震惊!为什么越有钱的人,欠的钱越多?
    80后小伙返乡创业种植中药材,带领乡亲们脱贫致富
    Tableau
    知识点汇总
    决策树分析、EMV(期望货币值)
    信息系统项目管理师60天冲刺复习计划,2019下半年高项冲刺计划
    【系统分析师之路】系统分析师备考计划
    有一种规律:“劣币驱逐良币”,“坏人淘汰好人”(深度)
  • 原文地址:https://www.cnblogs.com/CLTANG/p/4332547.html
Copyright © 2020-2023  润新知