Created attachment 672357[details]
engine.log
Description of problem:
Import of VM that was created in RHEV 2.2 environment fails in case the VM is equipped with more than one disk and more snapshots.
Version-Release number of selected component (if applicable):
3.1.1 (GA)
How reproducible:
100 %
Steps to Reproduce:
1. Create a VM in 2.2 RHEV with 4 disks and 2 snapshots
2. Export the VM (DO NOT USE collapse snapshots and force override settings)
3. Try to import the VM to 3.1 RHEV-M (USE collapse snapshots settings)
Actual results:
Import fails - with following exception being thrown to engine.log:
2012-12-18 09:53:09,899 ERROR [org.ovirt.engine.core.bll.ImportVmCommand] (pool-4-thread-49) [6d563c0e] Command org.ovirt.engine.core.bll.ImportVmCommand throw exception: org.springframework.dao.DuplicateKeyException: CallableStatementCallback; SQL [{call insertbasedisk(?, ?, ?, ?, ?, ?, ?, ?)}]; ERROR: duplicate key value violates unique constraint "pk_disks"
Expected results:
Should work ok
Additional info:
Attaching full engine.log
Created attachment 672357 [details] engine.log Description of problem: Import of VM that was created in RHEV 2.2 environment fails in case the VM is equipped with more than one disk and more snapshots. Version-Release number of selected component (if applicable): 3.1.1 (GA) How reproducible: 100 % Steps to Reproduce: 1. Create a VM in 2.2 RHEV with 4 disks and 2 snapshots 2. Export the VM (DO NOT USE collapse snapshots and force override settings) 3. Try to import the VM to 3.1 RHEV-M (USE collapse snapshots settings) Actual results: Import fails - with following exception being thrown to engine.log: 2012-12-18 09:53:09,899 ERROR [org.ovirt.engine.core.bll.ImportVmCommand] (pool-4-thread-49) [6d563c0e] Command org.ovirt.engine.core.bll.ImportVmCommand throw exception: org.springframework.dao.DuplicateKeyException: CallableStatementCallback; SQL [{call insertbasedisk(?, ?, ?, ?, ?, ?, ?, ?)}]; ERROR: duplicate key value violates unique constraint "pk_disks" Expected results: Should work ok Additional info: Attaching full engine.log