Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1073035

Summary: [engine] Attempting to import a template that is a subversion of another template when the base does not exist fails with unclear error message
Product: Red Hat Enterprise Virtualization Manager Reporter: Gadi Ickowicz <gickowic>
Component: ovirt-engineAssignee: Omer Frenkel <ofrenkel>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Beňas <pbenas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, amureini, gklein, iheim, lpeer, mavital, michal.skrivanek, nlevinki, ofrenkel, pbenas, pstehlik, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: av6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 14:04:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1090946    
Attachments:
Description Flags
engine logs none

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