Bug 1507434 - When importing VM, "Finished importing VM" pop-up event appears although import just started.
Summary: When importing VM, "Finished importing VM" pop-up event appears although impo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.3
: 4.2.3
Assignee: Arik
QA Contact: Nisim Simsolo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-30 09:19 UTC by Nisim Simsolo
Modified: 2018-05-10 06:29 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.2.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-10 06:29:10 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: ovirt-4.3+


Attachments (Terms of Use)
Webadmin screenshot (146.09 KB, image/png)
2017-10-30 09:19 UTC, Nisim Simsolo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 86559 0 master MERGED core: use coco for importing ova/external vm 2018-02-07 09:04:12 UTC
oVirt gerrit 86622 0 None None None 2018-03-20 17:00:47 UTC
oVirt gerrit 86690 0 None None None 2018-03-25 09:28:54 UTC
oVirt gerrit 89407 0 ovirt-engine-4.2 POST core: use coco for importing ova/external vm 2018-04-10 08:57:09 UTC
oVirt gerrit 89408 0 ovirt-engine-4.2 POST core: fix execution steps of import ova/external vm 2018-03-25 09:35:09 UTC
oVirt gerrit 89409 0 ovirt-engine-4.2 POST core: fix execution steps of export ova 2018-03-25 09:35:36 UTC
oVirt gerrit 89450 0 master MERGED core: fix remove disks on failure to import external vm 2018-03-28 10:53:43 UTC
oVirt gerrit 89724 0 master MERGED core: fix error handling in import ova 2018-04-03 09:45:10 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.