Bug 1190144

Summary: Error msg: Name must be unique -> Name already used in the environment, create new unique name
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engineAssignee: Shmuel Melamud <smelamud>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: low Docs Contact:
Priority: low    
Version: 3.5.0CC: amureini, gklein, lsurette, michal.skrivanek, rbalakri, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:28:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Belka 2015-02-06 13:02:11 UTC
Description of problem:
When an user has only VmCreator role and he is logged into User Portal, he obviously can't see other VMs in the RHEVM environment. He can see only ones he created (as he gets UserVmManager)...

When this user creates new VM for example called 'test' and same VM already exists in the RHEVM environment but the user is not "owner" (neither UserRole nor UserVmManager) of the VM, thus he can't see it in the list, he gets an error msg on Name form 'Name must be unique'.

This msg is right but to be more friendly it would be better to explain that such name is already used even the user can't see it. Thus msg should be more informative.

Version-Release number of selected component (if applicable):
rhevm-userportal-3.5.0-0.31.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. create VM 'test' as admin@internal
2. be logged into User Portal with VmCreator role (nothing else)
3. create new VM called 'test'

Actual results:
'Name must be unique' but there's no VM visible in the VM list

Expected results:
more informative msg, for example 'Name already used in the environment, create new unique name'

Additional info:

Comment 1 Jiri Belka 2015-02-06 13:03:09 UTC
maybe name should not be unique at all ;)

Comment 2 Michal Skrivanek 2015-02-10 11:54:49 UTC
let's just fix the text. comment #1 is a much bigger scope we're not gonna address as part of this bug;-)

Comment 3 Jiri Belka 2015-09-08 09:33:25 UTC
ok, text is now more clear.

rhevm-userportal-3.6.0-0.13.master.el6.noarch