Bug 1368796

Summary: No error for duplicate name of imported vm
Product: [oVirt] ovirt-engine Reporter: Kevin Alon Goldblatt <kgoldbla>
Component: Backend.CoreAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED DUPLICATE QA Contact: Raz Tamir <ratamir>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.0.2.4CC: bugs, fanjiajie, tnisan
Target Milestone: ovirt-4.1.0-betaFlags: tnisan: ovirt-4.1?
kgoldbla: planning_ack?
kgoldbla: devel_ack?
kgoldbla: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 14:58:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen shot none

Description Kevin Alon Goldblatt 2016-08-21 13:14:41 UTC
Tested with the following code:
----------------------------------------
rhevm-4.0.2.4-0.1.el7ev.noarch
vdsm-4.18.10-1.el7ev.x86_64

Tested with the following scenario:


Steps to Reproduce:
1. Create vm with 3 disks
2. Export vm to export domain on dc1
3. Detach export domain from dc1 and attach to dc2
4. Destroy dc1
5. Web Admin - Storage - VM Import - import vm successfully
6. Web Admin - VM - Import >>>>> The export domain is displayed in the Source Field but an Error is displayed "Not available when no export domain is active" and No relevant vm's in the list are displayed for Loading
7. Select a different source and then select the previously displayed export domain >>>>> Now the relevant vm's in the list are displayed for Loading and can be loaded
8. Select to import a vm still present in the setup for loading and press load >>>>> nothing happens and NO ERROR is displayed
9. Change the name to one different than that of the existing one and press load >>>>> Now the vm is successfully loaded

Actual results:
When selecting a vm to import when the original vm still exists in the system nothing happens when pressing load - no error is displayed indicating that the name of the imported vm needs to be changed


Expected results:
If selecting to import a domain which still exists in the system, indicate to the user that the name exists and should be unique.


Additional info:
See screen shot

Comment 1 Kevin Alon Goldblatt 2016-08-21 13:20:40 UTC
Created attachment 1192582 [details]
screen shot

Added screen shot

Comment 2 fjj6600418 2016-10-10 09:18:03 UTC
(In reply to Kevin Alon Goldblatt from comment #1)
> Created attachment 1192582 [details]
> screen shot
> 
> Added screen shot

Comment 3 Tal Nisan 2016-12-14 14:58:34 UTC

*** This bug has been marked as a duplicate of bug 1403578 ***