Bug 1507434

Summary: When importing VM, "Finished importing VM" pop-up event appears although import just started.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: Frontend.WebAdminAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: ahadas, bugs, mavital, nsimsolo, tjelinek
Target Milestone: ovirt-4.2.3Flags: rule-engine: ovirt-4.2+
rule-engine: ovirt-4.3+
Target Release: 4.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-10 06:29:10 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
Webadmin screenshot none

Description Nisim Simsolo 2017-10-30 09:19:03 UTC
Description of problem:
When importing VM/OVA from external provider an incorrect event is popped up notifying that importing VM is finished, although import progress just started.

Please see screenshot attached.

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20171029154613.git19686f3.el7.centos
vdsm-4.20.4-12.git11d6d3d.el7.centos.x86_64
libvirt-client-3.2.0-14.el7_4.3.x86_64
qemu-kvm-common-ev-2.9.0-16.el7_4.8.1.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Browse webadmin -> Compute -> Virtual machines -> vertical dots icon -> import 
2. Enter external provider details and start import.
3.

Actual results:
When import started, an event popped up saying that "Finished importing VM VM_name to cluster cluster_name", although import progress just started.

Expected results:
This event should appear when import is actually completed.

Additional info:
Screenshot attached

Comment 1 Nisim Simsolo 2017-10-30 09:19:36 UTC
Created attachment 1345351 [details]
Webadmin screenshot

Comment 2 Tomas Jelinek 2017-11-03 12:43:35 UTC
The reason is that the import VM first creates all the structures in the DB and creates the empty disks. Once this is done (which is fast), the command ends successfully (it is the message "Finished Importing VM"). Only than the convert command is called which does the long task.

Only changing the label to "Finished Initializing the import of VM somevm to Cluster somecluster" should do.

Comment 3 Tomas Jelinek 2017-12-14 12:11:58 UTC
Just changing the label does not look like a future proof solution anymore to me. Postponing to 4.3 in a hope we will come up with a better approach.

Comment 4 Arik 2018-04-11 16:50:37 UTC
Oops, patches are not merged to 4.2 branch yet

Comment 5 Nisim Simsolo 2018-05-02 15:29:25 UTC
Verified:
rhvm-4.2.3.3-0.1.el7
virt-v2v-1.36.10-6.8.rhvpreview.el7ev.x86_64
vdsm-4.20.27-1.el7ev.x86_64
libvirt-client-3.9.0-14.el7_5.2.x86_64
sanlock-3.6.0-1.el7.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.2.x86_64

Verification scenarios:
1. virt-v2v, VMware testing cycle, see Polarion test run: 
https://polarion.engineering.redhat.com/polarion/#/project/RHEVM3/testrun?id=4_2_3_3_virt_v2v
2. Import VMs from Xen environment.
3. Import VMs from KVM environment.
3. Import VMware OVA testing.
4. Export and Import RHV OVA testing.

Comment 6 Sandro Bonazzola 2018-05-10 06:29:10 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.3 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.