Description of problem: Tring to import VM as clone failed with the next engine.log error: 2016-08-04 18:02:14,499 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand] (org.ovirt.thread.pool-6-thread-21) [366e749d] Command 'org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand' failed: CallableStatementCallback; SQL [{call insertvmdevice(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}]; ERROR: insert or update on table "vm_device" violates foreign key constraint "fk_vm_device_vm_static" Detail: Key (vm_id)=(9af6f0e4-c1fd-487c-b4ca-f031e6d16495) is not present in table "vm_static". Version-Release number of selected component (if applicable): ovirt-engine-4.0.2.2-0.1.el7ev vdsm-4.18.9-1.el7ev.x86_64 qemu-kvm-rhev-2.3.0-31.el7_2.20.x86_64 libvirt-client-1.2.17-13.el7_2.5.x86_64 sanlock-3.2.4-3.el7_2.x86_64 How reproducible: Consistently Steps to Reproduce: 1. Import VM as a clone from KVM environment. 2. 3. Actual results: Import failed. Expected results: Import should succeed. Additional info: engine and vdsm log attached.
Created attachment 1187563 [details] engine.log.gz issue occured at: 2016-08-04 18:02:14,499
Created attachment 1187564 [details] vdsm.log.gz
Verified: ovirt-engine-4.0.4-0.1.el7ev 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 sanlock-3.2.4-3.el7_2.x86_64