Bug 1294651

Summary: Cannot change name of imported VM from VMware
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: BLL.VirtAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.2CC: bugs, mavital, michal.skrivanek, sbonazzo
Target Milestone: ovirt-3.6.3Flags: rule-engine: ovirt-3.6.z+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 3.6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:05:37 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:
Bug Depends On:    
Bug Blocks: 1294501    

Description Arik 2015-12-29 12:44:20 UTC
Description of problem:
If we want to import VM that is called X in VMware and for the imported VM to be called Y in oVirt, the import-VM dialog allows us to modify the name of the VM, however this conversion will most probably fail and in the worse case, if there is a VM with that name in vSphere, we will import the wrong VM.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Load VMs from VMware
2. Change the name of a VM that is going to be imported in the import dialog to a name that doesn't match the name of any VM in VMware.
3.

Actual results:
Conversion fail, a VM with the new name does not exist in VMware

Expected results:
The conversion should succeed, the VM in oVirt should be with the modified name

Additional info:
We need to differentiate the name that the VM is going to have and the original name of the VM and to use the original one in the conversion.

Comment 1 meital avital 2016-02-08 16:27:10 UTC
Verified on :
rhevm-3.6.3-0.1.el6
libvirt-client-1.2.17-13.el7_2.2.x86_64
qemu-kvm-rhev-2.3.0-31.el7_2.4.x86_64
vdsm-4.17.19-0.el7ev.noarch

Steps:
1)Import VM with new name.
2)Import VM and change the name to a name that match other VM name in VMware. and verified that the VM imported is the one that was selected and not the one with the same name.