Bug 1155706 - Host deployment falils on java.lang.NullPointerException
Summary: Host deployment falils on java.lang.NullPointerException
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-host-deploy
Classification: oVirt
Component: Bindings.Java
Version: master
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Alon Bar-Lev
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-22 16:35 UTC by Lukas Svaty
Modified: 2015-09-20 20:23 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-22 17:52:44 UTC
oVirt Team: ---
Embargoed:
lsvaty: devel_ack?


Attachments (Terms of Use)

Description Lukas Svaty 2014-10-22 16:35:19 UTC
Description of problem:
Host deployment to engine failing due to NPE.

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

How reproducible:
100%

Steps to Reproduce:
1. add host to engine

Additional info:
engine.log
2014-10-22 18:30:04,652 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation 10.34.62.204: Stage: Initializing
2014-10-22 18:30:04,678 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID: 54cef66d, Call Stack: null, Custom Event ID: -1, Message: Installing Host blue. Stage: Initializing.
2014-10-22 18:30:04,690 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation 10.34.62.204: Stage: Environment setup
2014-10-22 18:30:04,701 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID: 54cef66d, Call Stack: null, Custom Event ID: -1, Message: Installing Host blue. Stage: Environment setup.
2014-10-22 18:30:04,701 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation 10.34.62.204: Stage: Environment packages setup
2014-10-22 18:30:04,711 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID: 54cef66d, Call Stack: null, Custom Event ID: -1, Message: Installing Host blue. Stage: Environment packages setup.
2014-10-22 18:30:10,203 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation 10.34.62.204: Stage: Programs detection
2014-10-22 18:30:10,211 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID: 54cef66d, Call Stack: null, Custom Event ID: -1, Message: Installing Host blue. Stage: Programs detection.
2014-10-22 18:30:10,211 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation 10.34.62.204: Stage: Environment customization
2014-10-22 18:30:10,219 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID: 54cef66d, Call Stack: null, Custom Event ID: -1, Message: Installing Host blue. Stage: Environment customization.
2014-10-22 18:30:10,243 INFO  [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation 10.34.62.204: Logs at host located at: '/tmp/ovirt-host-deploy-20141022183002-e6m050.log'
2014-10-22 18:30:10,250 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) Correlation ID: 54cef66d, Call Stack: null, Custom Event ID: -1, Message: Installing Host blue. Logs at host located at: '/tmp/ovirt-host-deploy-20141022183002-e6m050.log'.
2014-10-22 18:30:10,297 INFO  [org.ovirt.engine.core.bll.VdsDeploy] (VdsDeploy) Host 10.34.62.204 reports unique id 4C4C4544-0034-5310-8052-B1C04F4A354A
2014-10-22 18:30:10,335 INFO  [org.ovirt.engine.core.bll.VdsDeploy] (VdsDeploy) Assigning unique id 4C4C4544-0034-5310-8052-B1C04F4A354A to Host 10.34.62.204
2014-10-22 18:30:10,410 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (VdsDeploy) Error during deploy dialog: java.lang.NullPointerException
	at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:580) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:579) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:668) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:873) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy.access$2000(VdsDeploy.java:83) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$51.run(VdsDeploy.java:969) [bll.jar:]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

2014-10-22 18:30:10,416 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (org.ovirt.thread.pool-7-thread-17) [54cef66d] Error during host 10.34.62.204 install: java.lang.NullPointerException
	at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:580) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:579) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:668) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:873) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy.access$2000(VdsDeploy.java:83) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$51.run(VdsDeploy.java:969) [bll.jar:]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

2014-10-22 18:30:10,418 ERROR [org.ovirt.engine.core.bll.InstallerMessages] (org.ovirt.thread.pool-7-thread-17) [54cef66d] Installation 10.34.62.204: null
2014-10-22 18:30:10,424 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-7-thread-17) [54cef66d] Correlation ID: 54cef66d, Call Stack: null, Custom Event ID: -1, Message: Failed to install Host blue. <UNKNOWN>.
2014-10-22 18:30:10,425 ERROR [org.ovirt.engine.core.bll.VdsDeploy] (org.ovirt.thread.pool-7-thread-17) [54cef66d] Error during host 10.34.62.204 install, prefering first exception: java.lang.NullPointerException
	at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:580) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:579) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:668) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:873) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy.access$2000(VdsDeploy.java:83) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$51.run(VdsDeploy.java:969) [bll.jar:]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

2014-10-22 18:30:10,425 ERROR [org.ovirt.engine.core.bll.InstallVdsInternalCommand] (org.ovirt.thread.pool-7-thread-17) [54cef66d] Host installation failed for host 41dfeb41-3382-4f82-a244-881f2e1b9f2a, blue.: java.lang.NullPointerException
	at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:580) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$37.call(VdsDeploy.java:579) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._nextCustomizationEntry(VdsDeploy.java:668) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy._threadMain(VdsDeploy.java:873) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy.access$2000(VdsDeploy.java:83) [bll.jar:]
	at org.ovirt.engine.core.bll.VdsDeploy$51.run(VdsDeploy.java:969) [bll.jar:]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

2014-10-22 18:30:10,431 INFO  [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (org.ovirt.thread.pool-7-thread-17) [54cef66d] START, SetVdsStatusVDSCommand(HostName = blue, HostId = 41dfeb41-3382-4f82-a244-881f2e1b9f2a, status=InstallFailed, nonOperationalReason=NONE, stopSpmFailureLogged=false), log id: 293a2be6
2014-10-22 18:30:10,437 INFO  [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (org.ovirt.thread.pool-7-thread-17) [54cef66d] FINISH, SetVdsStatusVDSCommand, log id: 293a2be6
2014-10-22 18:30:10,449 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-7-thread-17) [54cef66d] Correlation ID: 54cef66d, Job ID: d0885559-7ae4-4b09-85b2-305e44fc14d6, Call Stack: null, Custom Event ID: -1, Message: Host blue installation failed. Please refer to /var/log/ovirt-engine/engine.log and log logs under /var/log/ovirt-engine/ovirt-engine/host-deploy/ for further details..
2014-10-22 18:30:10,455 INFO  [org.ovirt.engine.core.bll.InstallVdsInternalCommand] (org.ovirt.thread.pool-7-thread-17) [54cef66d] Lock freed to object EngineLock [exclusiveLocks= key: 41dfeb41-3382-4f82-a244-881f2e1b9f2a value: VDS
, sharedLocks= ]

Comment 1 Alon Bar-Lev 2014-10-22 17:10:23 UTC
Is it devenv or built from rpms?
Version of otopi, ovirt-host-deploy, ovirt-engine?

Comment 2 Lukas Svaty 2014-10-22 17:22:24 UTC
engine installed from packages with vt5
updated packages from vt7 build + rhevm-setup

Comment 3 Alon Bar-Lev 2014-10-22 17:27:23 UTC
> Version of otopi, ovirt-host-deploy, ovirt-engine?

rpm -q otopi
rpm -q ovirt-host-deploy
rpm -q rhevm

Comment 4 Lukas Svaty 2014-10-22 17:32:49 UTC
otopi-1.3.0-1.el6ev.noarch
ovirt-host-deploy-1.3.0-1.el6ev.noarch
rhevm-3.5.0-0.17.beta.el6ev.noarch

Comment 5 Lukas Svaty 2014-10-22 17:52:44 UTC
CLOSING bug as this was done by remote script which removed logs from /var/log/ovirt-engine/host-deploy/*


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