Bug 1536966

Summary: Can't import template from data domain
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.StorageAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.2.1.1CC: amureini, bugs, bzlotnik, danken, lveyde, mlipchuk
Target Milestone: ovirt-4.2.1Keywords: Regression
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.1.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-12 11:56:30 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:
Bug Depends On:    
Bug Blocks: 1525353    
Attachments:
Description Flags
engine log none

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.