Bug 839264 - [ovirt-engine-backed] NPE when restarting ovirt-engine service
Summary: [ovirt-engine-backed] NPE when restarting ovirt-engine service
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Yair Zaslavsky
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-11 12:07 UTC by Kiril Nesenko
Modified: 2016-02-10 19:02 UTC (History)
12 users (show)

Fixed In Version: si11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (3.78 KB, application/x-gzip)
2012-07-11 12:07 UTC, Kiril Nesenko
no flags Details

Description Kiril Nesenko 2012-07-11 12:07:16 UTC
Created attachment 597544 [details]
logs

Description of problem:
NPE when restarting ovirt-engine service

2012-07-11 15:02:41,981 INFO  [org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean] (pool-4-thread-1) MacPoolManager finished: 7/11/12 3:02 PM
2012-07-11 15:02:42,083 ERROR [org.ovirt.engine.core.bll.adbroker.GSSAPIDirContextAuthenticationStrategy] (QuartzScheduler_Worker-1) Error from Kerberos: java.lang.NullPo
interException
        at org.ovirt.engine.core.bll.adbroker.GSSAPICallbackHandler.handle(GSSAPICallbackHandler.java:47)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:969)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:966)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:965)
        at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:870)
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:715)
        at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:580)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:594)
        at org.ovirt.engine.core.bll.adbroker.GSSAPIDirContextAuthenticationStrategy.authenticateToKDC(GSSAPIDirContextAuthenticationStrategy.java:129)
:



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

How reproducible:
Always

Steps to Reproduce:
1. Restart ovirt-engine service
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Yair Zaslavsky 2012-07-11 14:15:12 UTC
Please provide more data - seems like the password is null.
Why?
What user did you use? Can you also provide information on the relevant entries in vdc_options?

Type - 
Select * from vdc_options where option_name in ('AdUserName','AdUserPassword');

Comment 3 Yair Zaslavsky 2012-07-12 15:35:47 UTC
This is a result of introducing --admin-pass-file and a bug in the usage.

Comment 4 Yair Zaslavsky 2012-07-12 16:09:09 UTC
Suggested patch - http://gerrit.ovirt.org/#/c/6191/

Comment 8 Roy Golan 2012-07-19 11:10:44 UTC
*** Bug 840421 has been marked as a duplicate of this bug. ***


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