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--127.0.0.1-8702-9) 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> <async>false</async> <grace_period> <expiry>10</expiry> </grace_period> <storage_domain> <name>ExportDomainRest</name> </storage_domain> <exclusive>true</exclusive> </action> Version-Release number of selected component (if applicable): This problem exists for some time. We see it now on released: ovirt-engine-3.4.0-0.11.beta3.el6.noarch, 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: http://jenkins.qa.lab.tlv.redhat.com:8080/view/Compute/view/3.4-git/view/Virt/job/3.4-git-compute-virt-reg_vms-rest-nfs/36/ vms test run on CI for rhevm 3.4: http://jenkins-ci.eng.lab.tlv.redhat.com/job/rhevm_3.4_automation_coretools_two_hosts_restapi_vms_nfs_rest_factory/
Created attachment 866928 [details] logs
moving to whiteboard storage - the CDA at ExportVmTemplate checks if that disk exist and isn't relating to forceOverride at all flow: ExportVmTemplate.canDo ExportVmTemplate:138 super.canDoAction MoveOrCopyTemplateCommand:132 checkIfDisksExist(getTemplateDisks()) MoveOrCopyTemplateCommand:257 -> if (imagesOnStorageDomain.contains(disk.getId())) { addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_CONTAINS_DISK); return false; }
This BZ should be fixed in oVirt 3.4.0 RC
Verified on av2. Same jenkins job it was found on: http://jenkins.qa.lab.tlv.redhat.com:8080/view/Compute/view/3.4-git/view/All/job/3.4-git-compute-virt-reg_vms-rest-nfs/45/testReport/Templates/245-Export%20template%20-%20override%20previous%20export%20of%20this%20template/Export_template___override_previous_export_of_this_template/?
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released
*** Bug 1057764 has been marked as a duplicate of this bug. ***