Bug 1529607 - NPE when exporting disk with no description to OVA
Summary: NPE when exporting disk with no description to OVA
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.1
: ---
Assignee: Arik
QA Contact: Nisim Simsolo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-28 23:14 UTC by Arik
Modified: 2018-02-12 11:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Incorrect handling of disks with no description during the generation of an OVA. Consequence: VMs that include disks with no description could not be exported to OVA. Fix: The description of a disk is written to the OVF within an OVA only if it is set. Result: VMs that include disks with no description can be exported to OVA.
Clone Of:
Environment:
Last Closed: 2018-02-12 11:53:58 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 85849 0 master MERGED core: prevent NPE on export as OVA 2020-09-25 22:56:58 UTC

Description Arik 2017-12-28 23:14:50 UTC
Description of problem:
When we export a VM to an OVA file and the VM contains a disk with no description, the generation of the OVF fails with NPE.

Version-Release number of selected component (if applicable):
4.2.0

How reproducible:
100%

Steps to Reproduce:
1. Export a VM with disk that has no description.

Actual results:
Export fails. CreateOvaCommand fails with NPE.

Expected results:
OVA should be created.

Comment 1 Nisim Simsolo 2018-01-07 13:35:49 UTC
Verification builds:
rhvm-4.2.1-0.2.el7
qemu-kvm-rhev-2.9.0-16.el7_4.13.x86_64
vdsm-4.20.11-1.el7ev.x86_64
sanlock-3.5.0-1.el7.x86_64
libvirt-client-3.2.0-14.el7_4.7.x86_64

Verification scenario:
Export VM with no disk description to an OVA
Verify VM exported successfully.

Comment 2 Sandro Bonazzola 2018-02-12 11:53:58 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.