Bug 1057764

Summary: Export Template with Force Override activate fails
Product: [Retired] oVirt Reporter: Carlos Mestre González <cmestreg>
Component: ovirt-engine-coreAssignee: Tal Nisan <tnisan>
Status: CLOSED DUPLICATE QA Contact: bugs <bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, amureini, cmestreg, gklein, iheim, mlipchuk, oourfali, s.kieske, yeylon
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-27 08:25:57 UTC 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:
Attachments:
Description Flags
engine log
none
vdsm log
none
works in rhevm 3.3
none
vdsm.log rhevm 3.3 works none

Description Carlos Mestre González 2014-01-24 18:47:31 UTC
Created attachment 855153 [details]
engine log

Description of problem:
Trying to export a template with already a template with the same name in the export domain fails even activating Force Override.

Version-Release number of selected component (if applicable):
ovirt-engine-3.4.0-0.2.master.20140112020439.

How reproducible:
100%

Steps to Reproduce:
1. Create a environment with an export domain
2. Create a VM/Create a template from that VM
3. Export that template to the Export Domain
4. Try to export the same domain with Force Override


Actual results:
Error while executing action:
template_vm01:
    Cannot export Template. The Storage Domain already contains the target disk(s).

Expected results:
Template is exported and overwrites the old template.

Additional info:

Comment 1 Carlos Mestre González 2014-01-24 18:48:14 UTC
Created attachment 855154 [details]
vdsm log

Comment 2 Carlos Mestre González 2014-01-24 18:49:36 UTC
Actual error:
2014-01-24 19:43:08,642 WARN  [org.ovirt.engine.core.bll.ExportVmTemplateCommand] (ajp--127.0.0.1-8702-6) [75bf74bf] CanDoAction of action ExportVmTemplate failed. Reasons:VAR__ACTION__EXPORT,VAR__TYPE__VM_TEMPLATE,ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_CONTAINS_DISK

Comment 3 Itamar Heim 2014-01-26 08:10:58 UTC
Setting target release to current version for consideration and review. please
do not push non-RFE bugs to an undefined target release to make sure bugs are
reviewed for relevancy, fix, closure, etc.

Comment 4 Sven Kieske 2014-01-30 10:05:09 UTC
Does this bug also affect versions < 3.4 ?

Comment 5 Carlos Mestre González 2014-01-30 20:06:51 UTC
No, we have several jobs that run that can of test, 3.2 and 3.3 and this doesn't happen there. I manually run it in 3.3. just in case. I will add the logs too.

Comment 6 Carlos Mestre González 2014-01-30 20:07:28 UTC
Created attachment 857629 [details]
works in rhevm 3.3

Comment 7 Carlos Mestre González 2014-01-30 20:08:09 UTC
Created attachment 857630 [details]
vdsm.log rhevm 3.3 works

Comment 8 Sandro Bonazzola 2014-03-04 09:27:09 UTC
This is an automated message.
Re-targeting all non-blocker bugs still open on 3.4.0 to 3.4.1.

Comment 9 Allon Mureinik 2014-04-25 19:23:27 UTC
Maor, didn't you recently handle a similar issue?

Comment 10 Maor 2014-04-27 08:25:57 UTC
Tal already fixed that at commit 6760f756047b59f12b9706698a4edd0baff7ef27

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