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:
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: