Bug 1083488

Summary: Unable to import template as clone, when this template does not exists in system.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ondra Machacek <omachace>
Component: ovirt-engineAssignee: Omer Frenkel <ofrenkel>
Status: CLOSED DUPLICATE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, cmestreg, gklein, iheim, lpeer, michal.skrivanek, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-03 07:47:42 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:

Description Ondra Machacek 2014-04-02 10:44:53 UTC
Description of problem:


Version-Release number of selected component (if applicable):
av4.1

How reproducible:
always

Steps to Reproduce:
1. Create export storage and export some template there.
2. Remove this template from engine and leave it on export domain only.
3. Import this template to engine with clone checkbox checked.

Actual results:
CanDoAction:
Error while executing action:

templateXYZ:

    Cannot copy Template. The relevant Template doesn't exist.

Expected results:
template is imported 

Additional info:

engine.log:

2014-04-02 12:41:53,416 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp-/127.0.0.1:8702-7) [5c47bb9a] START, GetVmsInfoVDSCommand( storagePoolId = a6fb0cbb-d79f-465e-a01f-d5431c764b18, ignoreFailoverLimit = false, storageDomainId = faa7c262-aa15-4936-9594-31db07a45df3, vmIdList = null), log id: 219f88b3
2014-04-02 12:41:53,451 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp-/127.0.0.1:8702-7) [5c47bb9a] FINISH, GetVmsInfoVDSCommand, log id: 219f88b3
2014-04-02 12:41:55,044 WARN  [org.ovirt.engine.core.bll.ImportVmTemplateCommand] (ajp-/127.0.0.1:8702-7) [5c47bb9a] 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

Comment 2 Carlos Mestre González 2014-04-02 11:52:24 UTC
I've also encountered this issue in av4.1. I've tried in av5 but seems to work though.

Comment 3 Michal Skrivanek 2014-04-03 07:47:42 UTC
fixed by template versions fixes in bug 1073019. Please give it a try on av5+

*** This bug has been marked as a duplicate of bug 1073019 ***