Bug 1432089 - Download an image while it's storage domain is in maintenance causes NPE in engine's log
Summary: Download an image while it's storage domain is in maintenance causes NPE in e...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.1.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.1.2
: 4.1.2
Assignee: Daniel Erez
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On: 1447023
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-14 13:53 UTC by Natalie Gavrielov
Modified: 2017-05-23 08:14 UTC (History)
5 users (show)

Fixed In Version:
Clone Of: 1432079
Environment:
Last Closed: 2017-05-23 08:14:06 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)
logs: engine, imageio-proxy, imageio-daemon, vdsm, sanlock (4.30 MB, application/x-gzip)
2017-03-14 13:53 UTC, Natalie Gavrielov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 74347 0 master MERGED core: download image - validate domain status 2017-03-22 07:16:27 UTC
oVirt gerrit 74472 0 ovirt-engine-4.1 MERGED core: download image - validate domain status 2017-03-22 12:04:55 UTC

Description Natalie Gavrielov 2017-03-14 13:53:43 UTC
Created attachment 1262974 [details]
logs: engine, imageio-proxy, imageio-daemon, vdsm, sanlock

+++ This bug was initially created as a clone of Bug #1432079 +++

Description of problem:

Trying to download an image when it's storage domain is in maintenance - result in an NPE in engine's log.

Version-Release number of selected component (if applicable):
rhevm-4.1.1.4-0.1.el7.noarch
vdsm-4.19.7-1.el7ev.x86_64
ovirt-imageio-common-1.0.0-0.el7ev.noarch
ovirt-imageio-proxy-1.0.0-0.el7ev.noarch
ovirt-imageio-daemon-1.0.0-0.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Put storage domain to maintenance
2. When storage domain is in maintenance, try to download an image (using python sdk).

Actual results:
2017-03-14 14:24:16,124+02 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand] (default task-13) [338d345d-25c5-4eab-94c7-b5fc7600d46d] START, PrepareImageVDSCommand(HostName = host_mixed_1, PrepareImageVDSCommandParameters:{runAsync='true', hostId='9e8a3147-850c-45fd-84fd-c1bd549881e7'}), log id: 4bd9257e
2017-03-14 14:24:17,368+02 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand] (default task-13) [338d345d-25c5-4eab-94c7-b5fc7600d46d] Failed in 'PrepareImageVDS' method, for vds: 'host_mixed_1'; host: 'storage-ge9-vdsm1.qa.lab.tlv.redhat.com': null
2017-03-14 14:24:17,368+02 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand] (default task-13) [338d345d-25c5-4eab-94c7-b5fc7600d46d] Command 'PrepareImageVDSCommand(HostName = host_mixed_1, PrepareImageVDSCommandParameters:{runAsync='true', hostId='9e8a3147-850c-45fd-84fd-c1bd549881e7'})' execution failed: null
2017-03-14 14:24:17,368+02 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageVDSCommand] (default task-13) [338d345d-25c5-4eab-94c7-b5fc7600d46d] FINISH, PrepareImageVDSCommand, log id: 4bd9257e
2017-03-14 14:24:17,369+02 ERROR [org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand] (default task-13) [338d345d-25c5-4eab-94c7-b5fc7600d46d] Failed to prepare image for transfer session: {}: org.ovirt.engine.core.common.errors.EngineException: EngineException: java.lang.NullPointerException (Failed with error ENGINE and code 5001)

Expected results:
For the download to just fail gracefully - with no NPE.

Comment 1 Natalie Gavrielov 2017-05-14 16:01:54 UTC
Verified using builds:
rhevm-4.1.2.2-0.1.el7.noarch
vdsm-4.19.14-1.el7ev.x86_64
ovirt-imageio-common-1.0.0-0.el7ev.noarch
ovirt-imageio-proxy-1.0.0-0.el7ev.noarch
ovirt-imageio-daemon-1.0.0-0.el7ev.noarch


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