Bug 1073035 - [engine] Attempting to import a template that is a subversion of another template when the base does not exist fails with unclear error message
Summary: [engine] Attempting to import a template that is a subversion of another temp...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.4.0
Assignee: Omer Frenkel
QA Contact: Petr Beňas
URL:
Whiteboard: virt
Depends On:
Blocks: rhev3.4snapshot2
TreeView+ depends on / blocked
 
Reported: 2014-03-05 16:12 UTC by Gadi Ickowicz
Modified: 2015-10-27 23:57 UTC (History)
14 users (show)

Fixed In Version: av6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-12 14:04:27 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine logs (355.58 KB, application/gzip)
2014-03-05 16:12 UTC, Gadi Ickowicz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 25999 0 None None None Never
oVirt gerrit 26000 0 None None None Never

Description Gadi Ickowicz 2014-03-05 16:12:22 UTC
Created attachment 871051 [details]
engine logs

Description of problem:
When attempting to import a template that is a subversion of another template, but this base template does not exist in the system (was deleted) the import fails with the following message in the UI:
"
Error while executing action: 

<template_name>:
Cannot copy Template. The relevant Template doesn't exist.
"

engine logs show this fails with the following CanDoAction:
"2014-03-05 18:08:34,389 WARN  [org.ovirt.engine.core.bll.ImportVmTemplateCommand] (ajp-/127.0.0.1:8702-4) [5310967e] CanDoAction of action ImportVmTemplate failed. Reasons:VAR__ACTION__COPY,VAR__TYPE__VM_TEMPLATE,ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST,VAR__ACTION__IMPORT,VAR__TYPE__VM_TEMPLATE
"

Version-Release number of selected component (if applicable):
rhevm-3.4.0-0.3.master.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create template (T1)
2. Create another template as subversion of T1 (T1-S)
3. Export T1-S
4. Delete T1-S and T1 from data domain
5. Import T1-s back to data domain

Actual results:
Import fails

Expected results:
Import should succeed, or if not, should fail with an appropriate error message, i.e "Unable to import template T1-S because base template (T1) was not found"

Additional info:

Comment 2 Petr Beňas 2014-04-10 12:19:00 UTC
Verified in av6. There's warning when exporting the template and propper error on import attempt.

Comment 3 Itamar Heim 2014-06-12 14:04:27 UTC
Closing as part of 3.4.0


Note You need to log in before you can comment on or make changes to this bug.