Bug 1254965 - [engine-backend] NullPointerException during failure to refresh VDS packages
Summary: [engine-backend] NullPointerException during failure to refresh VDS packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: distribution
Version: 3.6.0
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Yaniv Kaul
QA Contact: Petr Kubica
URL:
Whiteboard:
: 1258803 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-19 10:53 UTC by Elad
Modified: 2016-03-27 06:50 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-27 06:50:42 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Elad 2015-08-19 10:53:13 UTC
Description of problem:
NullPointerException while engine reports that it cannot refresh VDS packages:

2015-08-19 12:17:35,182 ERROR [org.ovirt.engine.core.bll.host.HostUpgradeManager] (DefaultQuartzScheduler_Worker-100) [7db73460] Failed to refresh host 'camel-vdsb.qa.lab.tlv.redhat.com' packages 'vdsm-cli, vdsm' availability.
2015-08-19 12:17:35,182 ERROR [org.ovirt.engine.core.bll.host.HostUpgradeManager] (DefaultQuartzScheduler_Worker-100) [7db73460] Exception: java.lang.NullPointerException
        at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase$6.call(VdsDeployBase.java:110) [bll.jar:]
        at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase$6.call(VdsDeployBase.java:109) [bll.jar:]

 
The host is in status Up

Version-Release number of selected component (if applicable):
rhevm-3.6.0-0.11.master.el6.noarch

How reproducible:
Unknown, as it happened in a specific environment for a specific host

Steps to Reproduce:
1. Add a host to RHEVM
No further steps, as it seems to occur randomly.


Actual results:
Apart from the Exception, no special issues found.


Additional info:
sosreport from engine: http://file.tlv.redhat.com/ebenahar/sosreport-dbotzer-remote2.scl.lab.tlv.redhat.com-20150819123340.tar.xz

sosreport from host: http://file.tlv.redhat.com/ebenahar/sosreport-camel-vdsb.qa.lab.tlv.redhat.com-20150819123633.tar.xz

Comment 1 Moti Asayag 2015-09-01 14:15:09 UTC
It seems that the ovirt-host-deploy rpm on the engine is outdated (ovirt-host-deploy-1.4.0-0.0.4.master.el6ev.noarch)

Comment 2 Moti Asayag 2015-09-01 14:20:19 UTC
(In reply to Moti Asayag from comment #1)
> It seems that the ovirt-host-deploy rpm on the engine is outdated
> (ovirt-host-deploy-1.4.0-0.0.4.master.el6ev.noarch)

More information:

The error in the log indicates the inability of the engine to retrieve an environment variable named "ODEPLOY/installIncomplete".

The variable should appear under:
/usr/share/ovirt-host-deploy/plugins/ovirt-host-common/core/misc.py

as part of commit 5aea3469d05eaa65ed0df7dfe9968e362a32f67a (common: initialize the incomplete variables)

The change doesn't exist on the engine, as part of ovirt-host-deploy-1.4.0-0.0.4.master.el6ev.noarch

Comment 3 Alon Bar-Lev 2015-09-01 14:55:17 UTC
ovirt-host-deploy brew build was out of date.

These are ready now:

ovirt-host-deploy-1.4.0-0.0.5.master.el6ev
ovirt-host-deploy-1.4.0-0.0.5.master.el7ev

Comment 4 Moti Asayag 2015-09-02 09:48:14 UTC
*** Bug 1258803 has been marked as a duplicate of this bug. ***

Comment 6 Petr Kubica 2016-02-11 09:50:31 UTC
Hi, cloud you please provide the steps how to test it ? Or it's only about outdated package (to check that newer version is installed) ? 
Thank you.

Comment 7 Yaniv Kaul 2016-02-11 10:00:11 UTC
Indeed, and use them (deploy a host).

Comment 8 Petr Kubica 2016-02-11 10:22:33 UTC
Verified in rhevm-3.6.3-0.1
- ovirt-host-deploy-1.4.1-1.el6ev.noarch
successfully deployed host without exceptions


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