Created attachment 936473 [details] screenshot and engine.log Description of problem: A failure to import a template from an imported domain is reported as positive event (green V) Version-Release number of selected component (if applicable): rhev3.5 vt2.2 rhevm-3.5.0-0.10.master.el6ev.noarch How reproducible: Always Steps to Reproduce: 1. Have 2 working rhevm setups with 2 storage domains on one of them (setup1) and 1 domain on the second (setup2) 2. Create a VM with disks on both domains on setup1. Create a template out of it and wait for the OVF to be uploaded to the OVF_STORE disk. 3. Detach one of the domains from setup1 and attach it to setup2. 4. Import the template Actual results: Template import fails with PSQLException: 2014-09-11 11:29:50,178 ERROR [org.ovirt.engine.core.bll.ImportVmTemplateFromConfigurationCommand] (org.ovirt.thread.pool-6-thread-17) [28caa7dc] Command org.ovirt.engine.core.bll.ImportVmTemplateFromConfigurationCommand throw exception: org.springframework.dao.DataIntegrityViolationException: CallableStatementCallback; SQL [{call insertimage_storage_domain_map(?, ?, ?, ?)}]; ERROR: insert or update on table "image_storage_domain_map" violates foreign key constraint "fk_image_storage_domain_map_storage_domain_static" Detail: Key (storage_domain_id)=(2b7d1f3b-1409-4537-8ffd-f20e15f3868d) is not present in table "storage_domain_static". Where: SQL statement "INSERT INTO image_storage_domain_map(image_id, storage_domain_id, quota_id, disk_profile_id) VALUES( $1 , $2 , $3 , $4 )" PL/pgSQL function "insertimage_storage_domain_map" line 2 at SQL statement; nested exception is org.postgresql.util.PSQLException: ERROR: insert or update on table "image_storage_domain_map" violates foreign key constraint "fk_image_storage_domain_map_storage_domain_static" Detail: Key (storage_domain_id)=(2b7d1f3b-1409-4537-8ffd-f20e15f3868d) is not present in table "storage_domain_static". The event is reported as positive in the event logs. Expected results: screenshot and engine.log Additional info:
this bug was moved to MODIFIED before vt4 build date thus moving to ON_QA. if you belive this bug isn't in vt4, please report to rhev-integ
Trying to import a template which has disks from another setup's domain is blocked on CDA: 2014-09-30 14:28:26,547 WARN [org.ovirt.engine.core.bll.ImportVmTemplateFromConfigurationCommand] (ajp-/127.0.0.1:8702-8) [45c55e35] CanDoAction of action ImportVmTemplateFromConfiguration failed. Reasons:VAR__ACTION__COPY,VAR__TYPE__VM_TEMPLATE,ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST Verified using 2 rhev3.5 vt4 setups
RHEV-M 3.5.0 has been released, closing this bug.