Bug 1399603 - Import template from glance and export it to export domain will cause that it is impossible to import it
Summary: Import template from glance and export it to export domain will cause that it...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.1
: 4.1.1.2
Assignee: Benny Zlotnik
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-29 11:45 UTC by Raz Tamir
Modified: 2017-04-21 09:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:35:49 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: exception+
rule-engine: planning_ack+
rule-engine: devel_ack+
ratamir: testing_ack+


Attachments (Terms of Use)
engine and vdsm logs (361.88 KB, application/x-gzip)
2016-11-29 11:45 UTC, Raz Tamir
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 70626 0 master MERGED core: add VM snapshot ID to templates imported from a repository 2020-04-30 11:55:43 UTC
oVirt gerrit 71369 0 ovirt-engine-4.1 MERGED core: add VM snapshot ID to templates imported from a repository 2020-04-30 11:55:43 UTC
oVirt gerrit 72186 0 master ABANDONED core: add VM snapshot ID to older glance template disks 2020-04-30 11:55:43 UTC
oVirt gerrit 72190 0 master MERGED core: add VM snapshot ID to older glance template disks 2020-04-30 11:55:44 UTC
oVirt gerrit 72266 0 ovirt-engine-4.1 MERGED core: add VM snapshot ID to older glance template disks 2020-04-30 11:55:43 UTC

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


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