Bug 1399603

Summary: Import template from glance and export it to export domain will cause that it is impossible to import it
Product: [oVirt] ovirt-engine Reporter: Raz Tamir <ratamir>
Component: BLL.StorageAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: amureini, bugs, tnisan
Target Milestone: ovirt-4.1.1Flags: rule-engine: ovirt-4.1+
rule-engine: exception+
rule-engine: planning_ack+
rule-engine: devel_ack+
ratamir: testing_ack+
Target Release: 4.1.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-21 09:35:49 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 and vdsm logs none

Description Raz Tamir 2016-11-29 11:45:18 UTC
Created attachment 1225791 [details]
engine and vdsm logs

Description of problem:
After importing a template from glance repository and export that template to export domain, in case trying to import that template again to the system, the operation fails with:
"Error while executing action: 

glance_tmp_Copy:
Cannot import Template. The snapshot configuration is corrupted (snapshot ID is empty). Please contact the system administrator."

From engine log:
2016-11-29 13:41:14,417+02 WARN  [org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand] (default task-20) [647d6d9f-4e9b-4418-b750-a2a2bc840d3b] Validation of action 'ImportVmTemplate' failed for user admin@internal-authz. Reasons: VAR__ACTION__IMPORT,VAR__TYPE__VM_TEMPLATE,ACTION_TYPE_FAILED_CORRUPTED_VM_SNAPSHOT_ID




Version-Release number of selected component (if applicable):
ovirt-engine-4.1.0-0.0.master.20161126211319.gitae69c34.el7.centos.noarch

How reproducible:
100%

Steps to Reproduce:
1. Import image from Glance as template
2. Export the template to export domain
3. Try to import the template (clone) with new name

Actual results:
"Error while executing action: 

glance_tmp_Copy:
Cannot import Template. The snapshot configuration is corrupted (snapshot ID is empty). Please contact the system administrator."

Expected results:
Operation should succeed 

Additional info:

Comment 1 Tal Nisan 2017-01-30 11:00:18 UTC
Patch was not backported to 4.1 to make it to the beta

Comment 2 Raz Tamir 2017-02-12 13:01:30 UTC
Failed QA - ran the steps to reproduce and got the same issue:

Error while executing action: 

golden_mixed_virtio_template_Copy:
Cannot import Template. The snapshot configuration is corrupted (snapshot ID is empty). Please contact the system administrator.

Comment 3 Red Hat Bugzilla Rules Engine 2017-02-12 13:01:38 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 4 Raz Tamir 2017-02-19 16:38:30 UTC
Verified on rhevm-4.1.1.2-0.1.el7