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

[Tenant] need make sure _DEFAULT tenant create with constant UUID after delete and recreate #986

Closed
lipingxue opened this issue Mar 2, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@lipingxue
Copy link
Contributor

No description provided.

@lipingxue lipingxue added the P0 label Mar 2, 2017
@lipingxue lipingxue added this to the 0.13 milestone Mar 2, 2017
@lipingxue
Copy link
Contributor Author

lipingxue commented Mar 3, 2017

Run the following test manually.
step 1: In AdminCLI, run "tenant ls" to list the tenant

[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant ls
Uuid                                  Name      Description               Default_datastore  VM_list  
------------------------------------  --------  ------------------------  -----------------  -------  
11111111-1111-1111-1111-111111111111  _DEFAULT  This is a default tenant                              


step2: In AdminCLI, run "tenant rm" to remove _DEFAULT tenant

[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant rm --name=_DEFAULT
tenant rm succeeded
[root@localhost:~] 
[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant ls
Uuid  Name  Description  Default_datastore  VM_list  
----  ----  -----------  -----------------  -------  

step3: In AdminCLI, run "tenant create" to re-create _DEFAULT tenant, check to make sure _DEFAULT is created with constant UUID

[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant create --name=_DEFAULT
tenant create succeeded
[root@localhost:~] 
[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant ls
Uuid                                  Name      Description  Default_datastore  VM_list  
------------------------------------  --------  -----------  -----------------  -------  
11111111-1111-1111-1111-111111111111  _DEFAULT                                           

@lipingxue
Copy link
Contributor Author

Fixed by this PR #988

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant