Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1364171

Summary: import dialog: Incorrect dialog behavior when trying to import VM with name duplication in RHEVM.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: BLL.VirtAssignee: Sharon Gratch <sgratch>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.2.2CC: bugs, nsimsolo, tjelinek
Target Milestone: ovirt-4.0.4Flags: tjelinek: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 4.0.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-26 12:39:56 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:
Attachments:
Description Flags
Video capture of this issue none

Description Nisim Simsolo 2016-08-04 15:39:56 UTC
Description of problem:
When trying to import VM with a name which already exist in RHEVM, an error message pop up appears, and when clicking "close" button, the dialog gets closed. 
instead of it, the import dialog should appear again in its last state (with the selected VMs and VMs parameters) so the user can change the VM name before the import, otherwise, the webadmin user should go through the whole import dialog again.


Version-Release number of selected component (if applicable):
ovirt-engine-4.0.2.2-0.1.el7ev

How reproducible:
Consistently

Steps to Reproduce:
1. Browse webadmin -> Virtual machines tab -> import dialog
2. Try to import VM with a name that already exist in RHEVM.


Actual results:
- an error while executing action pop up appears:
Import VM failed - VM Name already exist in the system. Please rename the VM in the system first
- When clicking "close", the dialog is closed.

Expected results:
After clicking "close" on the warning message, the import dialog should get back to the last state it was.


Additional info:
Screen video capture attached.

Comment 1 Nisim Simsolo 2016-08-04 15:40:51 UTC
Created attachment 1187571 [details]
Video capture of this issue

Comment 2 meital avital 2016-09-01 14:49:16 UTC
Verified on:
ovirt-engine-4.0.4-0.1.el7ev.noarch
qemu-kvm-rhev-2.3.0-31.el7_2.21.x86_64
vdsm-4.18.12-1.el7ev.x86_64
libvirt-client-1.2.17-13.el7_2.5.x86_64