Bug 1536966 - Can't import template from data domain
Summary: Can't import template from data domain
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.2.1.1
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ovirt-4.2.1
: ---
Assignee: Benny Zlotnik
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On:
Blocks: 1525353
TreeView+ depends on / blocked
 
Reported: 2018-01-22 07:23 UTC by Michael Burman
Modified: 2018-02-12 11:56 UTC (History)
6 users (show)

Fixed In Version: ovirt-engine-4.2.1.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-12 11:56:30 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+


Attachments (Terms of Use)
engine log (714.19 KB, application/x-gzip)
2018-01-22 07:25 UTC, Michael Burman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 86625 0 master MERGED core: Fix role mapping for vm and template registration 2020-02-03 17:31:55 UTC

Description Michael Burman 2018-01-22 07:23:45 UTC
Description of problem:
Can't import template from data domain

We have a new regression on latest d/s and import template is failing with:

'Error while executing action: 

New_template:
General command validation failure.'

2018-01-22 09:21:01,573+02 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmTemplateFromConfigurationCommand] (default task-11) [5e139c74-1940-4bef-b074-7dec95b57363] Error during ValidateFailure.: java.lang.
NullPointerException
        at org.ovirt.engine.core.bll.exportimport.ImportVmTemplateFromConfigurationCommand.validate(ImportVmTemplateFromConfigurationCommand.java:135) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.internalValidate(CommandBase.java:779) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.validateOnly(CommandBase.java:368) [bll.jar:]


Version-Release number of selected component (if applicable):
4.2.1.2-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Create a VM and create template from it
2. Detach data domain
3. Re-attach data domain
4. Try to import the template 
5. Try to import the VM

Actual results:
4. Failed - 'Error while executing action: 

New_template:
General command validation failure.'

5. Failed - 'Error while executing action: 

golden_env_mixed_virtio_3:
Cannot import VM. The relevant Template doesn't exist.'

Expected results:
Must work

Comment 1 Michael Burman 2018-01-22 07:25:41 UTC
Created attachment 1384229 [details]
engine log

Comment 2 Allon Mureinik 2018-01-22 13:23:19 UTC
Benny/Maor - the patch is merged. Are we waiting for anything else, or should this BZ be MODIFIED?

Comment 3 Kevin Alon Goldblatt 2018-01-28 19:23:56 UTC
Verified with the following code:
---------------------------------------
ovirt-engine-4.2.1.3-0.1.el7.noarch
vdsm-4.20.17-11.gite2d6775.el7.centos.x86_64


Verified with the following code:
---------------------------------------
Steps to Reproduce:
1. Create a VM and create template from it
2. Detach data domain
3. Re-attach data domain
4. Try to import the template  >>>>> Works fine
5. Try to import the VM >>>>> Works fine


Moving to VERIFIED

Comment 4 Sandro Bonazzola 2018-02-12 11:56:30 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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