Bug 1069151 - Override previous export of same template fail
Summary: Override previous export of same template fail
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.4.0
Assignee: Tal Nisan
QA Contact: Ilanit Stein
Whiteboard: storage
: 1057764 (view as bug list)
Depends On:
Blocks: 1024889
TreeView+ depends on / blocked
Reported: 2014-02-24 10:47 UTC by Ilanit Stein
Modified: 2016-02-10 17:56 UTC (History)
8 users (show)

Fixed In Version: ovirt-3.4.0-rc
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-03-31 12:23:55 UTC
oVirt Team: Storage

Attachments (Terms of Use)
logs (1.35 MB, application/x-bzip2)
2014-02-24 10:50 UTC, Ilanit Stein
no flags Details

System ID Private Priority Status Summary Last Updated
oVirt gerrit 25144 0 None MERGED core: Fix a bug in exporting template with force override Never
oVirt gerrit 25145 0 None MERGED core: Fix a bug in exporting template with force override Never

Description Ilanit Stein 2014-02-24 10:47:24 UTC
Description of problem:
This is a regression in VM test, since version: ovirt-engine-3.4.0-0.5.beta1.el6.noarch.
Override trial of a template in export domain, fail on (engine.log):
[org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-- Operation Failed: [Cannot export Template. The Storage Domain already contains the target disk(s).]

The REST Request, which include exclusive = 'true':
2014-02-23 15:55:27,861 - MainThread - templates - DEBUG - Action request content is --  url:/api/templates/aa89a256-0d02-43a4-bf5e-5a5953138044/export body:<action>

Version-Release number of selected component (if applicable):
This problem exists for some time. We see it now on released:
and it exists at least from ovirt-engine-3.4.0-0.5.beta1.el6.noarch.
It is also seen on rhevm-3.4.0-0.2.1959.cc71493.master.el6evart-1.0.4-6v34

How reproducible:
100% - At each VM test run on CI\QE.

Additional info:
vms test run on QE for Ovirt 3.4:
vms test run on CI for rhevm 3.4:

Comment 1 Ilanit Stein 2014-02-24 10:50:32 UTC
Created attachment 866928 [details]

Comment 2 Roy Golan 2014-02-25 15:24:22 UTC
moving to whiteboard storage - the CDA at ExportVmTemplate checks if that disk exist and isn't relating to forceOverride at all

ExportVmTemplate:138 super.canDoAction
MoveOrCopyTemplateCommand:132 checkIfDisksExist(getTemplateDisks())
MoveOrCopyTemplateCommand:257 ->

if (imagesOnStorageDomain.contains(disk.getId())) {
                return false;

Comment 3 Sandro Bonazzola 2014-03-03 14:40:23 UTC
This BZ should be fixed in oVirt 3.4.0 RC

Comment 5 Sandro Bonazzola 2014-03-31 12:23:55 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released

Comment 6 Maor 2014-04-27 08:25:57 UTC
*** Bug 1057764 has been marked as a duplicate of this bug. ***

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