cloudmesh / client

Deprecated: Version 3 of cloudmesh is a light weight cloud client to manage virtual clusters
http://cloudmesh.github.io/client
Other
3 stars 12 forks source link

comet: add capability to return allocations for cluster #269

Closed tcooper closed 7 years ago

tcooper commented 7 years ago
ISSUE TYPE
CM VERSION
+------------------+---------+
| name             | version |
+------------------+---------+
| python           | 2.7.10  |
| pip              | 8.1.2   |
| cloudmesh_client | 4.5.2   |
| git hash         |         |
+------------------+---------+
You are running a supported version of python: 2.7.10
You are running a supported version of pip: 8.1.2
CM INFO
+-------------+-----------------+
| Attribute   | Value           |
+-------------+-----------------+
| cloud       | kilo            |
| key         | TBD             |
| user        | TBD             |
| vm          |                 |
| group       | default         |
| secgroup    | default         |
| counter     | 1               |
| image       | Ubuntu-14.04-64 |
| flavor      | m1.small        |
| refresh     | None            |
| debug       | True            |
| interactive | None            |
| purge       | None            |
+-------------+-----------------+
ERROR: Please replace the TBD values
See Also:

    cm register profile
    cm default user=YOURUSERNAME
OS / ENVIRONMENT
SUMMARY

Add capability to report allocations for cluster.

STEPS TO REPRODUCE
cm comet ll <cluster_name>
EXPECTED RESULTS
cm> comet ll sysvc1
+--------+---------+-------+-------------------+---------------+------------+-----------+---------------+-------------+
| Name   | Project | Count | Nodes             | Frontend (Fe) | State (Fe) | Type (Fe) | Allocation(s) | Description |
+--------+---------+-------+-------------------+---------------+------------+-----------+---------------+-------------+
| sysvc1 | sys200  | 18    | vm-sysvc1-[00-17] | sysvc1        | active     | VM        | sys200,sds161 |             |
+--------+---------+-------+-------------------+---------------+------------+-----------+---------------+-------------+
ACTUAL RESULTS

cm> comet ll sysvc1
+--------+---------+-------+-------------------+---------------+------------+-----------+-------------+
| Name   | Project | Count | Nodes             | Frontend (Fe) | State (Fe) | Type (Fe) | Description |
+--------+---------+-------+-------------------+---------------+------------+-----------+-------------+
| sysvc1 | sys200  | 18    | vm-sysvc1-[00-17] | sysvc1        | active     | VM        |             |
+--------+---------+-------+-------------------+---------------+------------+-----------+-------------+```
fugangwang commented 7 years ago

The latest release already had this.