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

Not able to update the 'description' of the tenant with empty string. #1094

Closed
ashahi1 opened this issue Mar 27, 2017 · 3 comments
Closed

Not able to update the 'description' of the tenant with empty string. #1094

ashahi1 opened this issue Mar 27, 2017 · 3 comments
Milestone

Comments

@ashahi1
Copy link
Contributor

ashahi1 commented Mar 27, 2017

Steps:

  1. Create a tenant.
  2. Update the description of the tenant.
  3. Again try updating the description of the tenant with empty string - operation fails even though esx console shows message "modify succeeded"

Steps and their output are as follows:

  1. Create a tenant - tenant1.
[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group create --name=tenant1
vm-group create succeeded
[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid                                  Name      Description  Default_datastore  VM_list
------------------------------------  --------  -----------  -----------------  -------
11111111-1111-1111-1111-111111111111  _DEFAULT  ok
4938212a-d109-4e73-af66-943ee548c481  tenant1

[root@sc-rdops-vm02-dhcp-34-69:~]

  1. Update the description of tenant1
[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group update --name=tenant1 --description="Hello"
vm-group modify succeeded
[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid                                  Name      Description  Default_datastore  VM_list
------------------------------------  --------  -----------  -----------------  -------
11111111-1111-1111-1111-111111111111  _DEFAULT  ok
4938212a-d109-4e73-af66-943ee548c481  tenant1   Hello

[root@sc-rdops-vm02-dhcp-34-69:~]

  1. Again try updating the description of the tenant with empty string - ""
[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group update --name=tenant1 --description=""
vm-group modify succeeded
[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid                                  Name      Description  Default_datastore  VM_list
------------------------------------  --------  -----------  -----------------  -------
11111111-1111-1111-1111-111111111111  _DEFAULT  ok
4938212a-d109-4e73-af66-943ee548c481  tenant1   Hello

[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group update --name=tenant1 --description=
vm-group modify succeeded
[root@sc-rdops-vm02-dhcp-34-69:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid                                  Name      Description  Default_datastore  VM_list
------------------------------------  --------  -----------  -----------------  -------
11111111-1111-1111-1111-111111111111  _DEFAULT  ok
4938212a-d109-4e73-af66-943ee548c481  tenant1   Hello

[root@sc-rdops-vm02-dhcp-34-69:~]

Logs:
vmdk_ops.txt

@pdhamdhere
Copy link
Contributor

@ashahi1 Can you confirm changing description to non-empty string works? Assuming it works, I would defer this to next release.

@pdhamdhere pdhamdhere modified the milestones: v1 GA, 0.13 Mar 27, 2017
@ashahi1
Copy link
Contributor Author

ashahi1 commented Mar 27, 2017

@pdhamdhere Yes, changing description to non-empty string works.

[root@sc-rdops-vm16-dhcp-235-141:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group update --name=tenant1 --description="Hello..."
vm-group modify succeeded
[root@sc-rdops-vm16-dhcp-235-141:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid                                  Name      Description                 Default_datastore  VM_list
------------------------------------  --------  --------------------------  -----------------  ------------
11111111-1111-1111-1111-111111111111  _DEFAULT  This is a default vm-group
cf5e2cde-4a81-437e-8a89-b3152b1aefd2  tenant2                               vsanDatastore      ubuntu-VM0.1
60a4657b-a69c-452a-a014-a63da744bea3  tenant1   Hello...                    vsanDatastore      ubuntu-VM1.1

[root@sc-rdops-vm16-dhcp-235-141:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group update --name=tenant1 --description="Hello World"
vm-group modify succeeded
[root@sc-rdops-vm16-dhcp-235-141:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid                                  Name      Description                 Default_datastore  VM_list
------------------------------------  --------  --------------------------  -----------------  ------------
11111111-1111-1111-1111-111111111111  _DEFAULT  This is a default vm-group
cf5e2cde-4a81-437e-8a89-b3152b1aefd2  tenant2                               vsanDatastore      ubuntu-VM0.1
60a4657b-a69c-452a-a014-a63da744bea3  tenant1   Hello World                 vsanDatastore      ubuntu-VM1.1

[root@sc-rdops-vm16-dhcp-235-141:~]

@tusharnt
Copy link
Contributor

Nothing else to be done here since changing tenant description works as long as the user provides a non-empty description.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants