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
Created attachment 1345351 [details] Webadmin screenshot
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.
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.
Oops, patches are not merged to 4.2 branch yet
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.
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.