cloudmesh / cloudmesh1

http://cloudmesh.org
Apache License 2.0
14 stars 12 forks source link

``group`` and ``cluster`` command do not work with a project id? #185

Open lee212 opened 9 years ago

lee212 commented 9 years ago

I created a mongodb_cluster on my fgxxx project. So I expect to see the following:

cm> group list
+-------+-----------------+
| index | groups          |
+-------+-----------------+
| 1     | mongodb_cluster |
+-------+-----------------+
cm> group show mongodb_cluster
+-------+---------+
| index | VM      |
+-------+---------+
| 1     | albert_3 |
| 2     | albert_2 |
| 3     | albert_1 |
+-------+---------+

However, if I switch my project to fgxxx2, I don't have these VMs or cluster on the fgxxx2 project but still seeing that name on my account.

cm> vm list
(NOTHING)
cm> project default fgxxx2
fgxxx2 project is a default project now
cm> cluster list
+-----------------+--------------+---------------------+
| cluster         | num of nodes | num of active nodes |
+-----------------+--------------+---------------------+
| mongodb_cluster | 0            | 0                   |
+-----------------+--------------+---------------------+
cm> group show mongodb_cluster
+-------+---------+
| index | VM      |
+-------+---------+
| 1     | albert_3 |
| 2     | albert_2 |
| 3     | albert_1 |
+-------+---------+

When I issue group or cluster command, I expect to see the information on that account. This is only for the user who has more than one project.

markxiao commented 9 years ago

Please try "cluster show" instead of "group show"

I designed group command to be user based. And its items doesn't need to be exist, this might be a design flaw, please let me know what do you think, for example should items in a group have to exist? Thanks