Bug 1976742

Summary: Import template from export domain fails with NullPointerException
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.StorageAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: sshmulev
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.7.4CC: bugs, dfodor, eshenitz, sfishbai
Target Milestone: ovirt-4.4.7Keywords: Automation, Regression, TestBlocker
Target Release: 4.4.7.6Flags: pm-rhel: ovirt-4.4+
pm-rhel: blocker?
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.7.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-06 07:28:11 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:

Description Michael Burman 2021-06-28 06:47:20 UTC
Description of problem:
Import template from export domain fails with NullPointerException 

When trying to import template from an export domain we fail with null pointer exception:

2021-06-27 17:25:41,908+03 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-12) [templates_syncAction_e7883731-0fb9-4] EVENT_ID: 
IMPORTEXPORT_IMPORT_TEMPLATE_FAILED(1,159), Failed to import Template IE_TEMPLATE_63 to Data Center golden_env_mixed, Cluster golden_env_mixed_1
2021-06-27 17:25:41,911+03 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-12) [] Operation Failed: [Internal Engine Error]

2021-06-27 17:25:41,902+03 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand] (default task-12) [templates_syncAction_e7883731-0fb9-4] Command 'Prepa
reImageVDSCommand(HostName = host_mixed_2, PrepareImageVDSCommandParameters:{hostId='16935a6a-0eb3-49c2-863f-4e1b939a7409'})' execution failed: null

2021-06-27 17:25:41,903+03 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmTemplateCommand] (default task-12) [templates_syncAction_e7883731-0fb9-4] Command 'org.ovi
rt.engine.core.bll.exportimport.ImportVmTemplateCommand' failed: EngineException: java.lang.NullPointerException (Failed with error ENGINE and code 5001)

Version-Release number of selected component (if applicable):
rhvm-4.4.7.4-0.9.el8ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Try to import template from export domain

Actual results:
Fails with null pointer exception

Expected results:
Should work as expected

Additional info:
This bug was found in network tier2 suite and affecting several automated tests.

Comment 3 Eyal Shenitzky 2021-06-28 07:43:23 UTC
Lowering the severity since the export domain is deprecated.

Comment 7 sshmulev 2021-07-04 11:15:16 UTC
Verified.

Versions:
ovirt-engine-4.4.7.6-0.11.el8ev.noarch

The issue doesn't reproduce on the latest version and the import is done successfully from the export domain.

Comment 8 RHEL Program Management 2021-07-05 07:31:46 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 9 Sandro Bonazzola 2021-07-06 07:28:11 UTC
This bugzilla is included in oVirt 4.4.7 release, published on July 6th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.7 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.