Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Update error message for _DEFAULT vmgroup #1442

Closed
govint opened this issue Jun 20, 2017 · 1 comment
Closed

Update error message for _DEFAULT vmgroup #1442

govint opened this issue Jun 20, 2017 · 1 comment

Comments

@govint
Copy link
Contributor

govint commented Jun 20, 2017

The _DEFAULT vmgroup can be removed and recreated and given that VMs are part of the default vmgroup without the need to add VMs to it, the user message can be improved depending on which vmgroup is created.

/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup create --name
_DEFAULT --default-datastore _VM_DS
vmgroup '_DEFAULT' is created. Do not forget to run 'vmgroup vm add' to add vm to vmgroup.

For _DEFAULT there's no need to add VMs to the group, message doesn't need to mention about adding VMs to the group.

@ashahi1
Copy link
Contributor

ashahi1 commented Aug 10, 2017

This issue has already been fixed by Govindan as part of PR #1670

Closing this issue after verifying that original issue is no longer seen.


[root@sc2-rdops-vm06-dhcp-222-118:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup ls
Uuid                                  Name      Description                Default_datastore  VM_list
------------------------------------  --------  -------------------------  -----------------  -------
11111111-1111-1111-1111-111111111111  _DEFAULT  This is a default vmgroup  _VM_DS

[root@sc2-rdops-vm06-dhcp-222-118:~]
[root@sc2-rdops-vm06-dhcp-222-118:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup rm --name _DEFAULT
vmgroup rm succeeded
[root@sc2-rdops-vm06-dhcp-222-118:~]
[root@sc2-rdops-vm06-dhcp-222-118:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup ls
Uuid  Name  Description  Default_datastore  VM_list
----  ----  -----------  -----------------  -------

[root@sc2-rdops-vm06-dhcp-222-118:~]
[root@sc2-rdops-vm06-dhcp-222-118:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup create --name _DEFAULT --default-datastore _VM_DS
vmgroup '_DEFAULT' is created.
[root@sc2-rdops-vm06-dhcp-222-118:~]
[root@sc2-rdops-vm06-dhcp-222-118:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup ls
Uuid                                  Name      Description  Default_datastore  VM_list
------------------------------------  --------  -----------  -----------------  -------
11111111-1111-1111-1111-111111111111  _DEFAULT               _VM_DS

[root@sc2-rdops-vm06-dhcp-222-118:~]

@ashahi1 ashahi1 closed this as completed Aug 10, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

4 participants