Bug 1336405

Summary: Failed to import template from export domain with 'General command validation failure.'
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.VirtAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: high Docs Contact:
Priority: high    
Version: 4.0.0CC: ahadas, bugs, gklein, mgoldboi, michal.skrivanek, sbonazzo, slitmano
Target Milestone: ovirt-4.0.0-betaKeywords: Regression
Target Release: 4.0.0Flags: rule-engine: ovirt-4.0.0+
rule-engine: blocker+
rule-engine: planning_ack+
michal.skrivanek: devel_ack+
mavital: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:38:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine log none

Description Michael Burman 2016-05-16 11:56:07 UTC
Created attachment 1157863 [details]
engine log

Description of problem:
Failed to import template from export domian with 'General command validation failure.'

Not possible to import template from export domian --> 

2016-05-16 14:48:03,803 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand] (default task-3) [d90a2bf] Error during ValidateFailure.: java.lang.NullPointerException
        at org.ovirt.engine.core.bll.validator.ImportValidator.getMacPool(ImportValidator.java:185) [bll.jar:]
        at org.ovirt.engine.core.bll.validator.ImportValidator.validateMacAddress(ImportValidator.java:107) [bll.jar:]
        at org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand.validate(ImportVmTemplateCommand.java:213) [bll.jar:]


Version-Release number of selected component (if applicable):
4.0.0-0.0.master.20160515171411.git6759e3f.el7.centos

How reproducible:
100

Steps to Reproduce:
1. Create template and export to export domain
2. Try to import the template

Actual results:
Failed with NPE

Expected results:
Should work as expected

Additional info:
Maybe this is the patch that caused this regression - 
https://gerrit.ovirt.org/#/c/56487

Comment 1 sefi litmanovich 2016-06-23 14:23:33 UTC
Verified with rhevm-4.0.0.6-0.1.el7ev.noarch according to steps in description.
Import from export domain is working fine.

Comment 2 Sandro Bonazzola 2016-07-05 07:38:26 UTC
oVirt 4.0.0 has been released, closing current release.