Bug 1976742 - Import template from export domain fails with NullPointerException
Summary: Import template from export domain fails with NullPointerException
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.4.7.4
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.4.7
: 4.4.7.6
Assignee: Benny Zlotnik
QA Contact: sshmulev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-28 06:47 UTC by Michael Burman
Modified: 2021-07-06 07:28 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.4.7.6
Clone Of:
Environment:
Last Closed: 2021-07-06 07:28:11 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.4+
pm-rhel: blocker?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 115448 0 master MERGED core: fix importing template from export domain 2021-06-28 15:28:50 UTC

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.


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