This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
[Tenant] Improve error message thrown while trying to add same vm to another tenant #930
Labels
Milestone
Steps to repro:
Create a tenant and add vm to it:
/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant create --name=tenant1 --vm-list=TestVM-1
Create another tenant and try adding same vm to the new tenant:
/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant create --name=tenant2 --vm-list=TestVM-1
Error message returned: Internal Error(UNIQUE constraint failed: vms.vm_id)
=====
Error message should be such that its easier to understand for the user that adding same vm to two tenants is not allowed.
The text was updated successfully, but these errors were encountered: