Bug 1364164
| Summary: | Import KVM guest image: cannot import VM as clone | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Nisim Simsolo <nsimsolo> | ||||||
| Component: | BLL.Virt | Assignee: | Shahar Havivi <shavivi> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Nisim Simsolo <nsimsolo> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 4.0.2.2 | CC: | bugs, gklein, lbopf, mgoldboi, nsimsolo, tjelinek | ||||||
| Target Milestone: | ovirt-4.0.4 | Flags: | rule-engine:
ovirt-4.0.z+
mgoldboi: planning_ack+ tjelinek: devel_ack+ mavital: testing_ack+ |
||||||
| Target Release: | 4.0.4 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2016-09-26 12:35:42 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: |
|
||||||||
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 |
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.