Bug 1140584
| Summary: | [engine-webadmin] Failure to import a template from an imported domain is reported wrongly in the events tab | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Elad <ebenahar> | ||||
| Component: | ovirt-engine-webadmin-portal | Assignee: | Maor <mlipchuk> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Elad <ebenahar> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.5.0 | CC: | amureini, ecohen, gklein, iheim, lsurette, rbalakri, Rhev-m-bugs, scohen, yeylon | ||||
| Target Milestone: | --- | Flags: | amureini:
Triaged+
|
||||
| Target Release: | 3.5.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | storage | ||||||
| Fixed In Version: | org.ovirt.engine-root-3.5.0-13 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | Bug | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1156162 | ||||||
| Attachments: |
|
||||||
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. RHEV-M 3.5.0 has been released, closing this bug. |
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: