[Engine-devel] engine build AD/LDAP error

Yair Zaslavsky yzaslavs at redhat.com
Tue Sep 25 05:51:27 UTC 2012


Sorry for late response on this,
Patch for soling this issue is available on gerrit -
http://gerrit.ovirt.org/#/c/8178/

Yair


On 09/25/2012 07:07 AM, Dead Horse wrote:
> Many thanks Itamar, I had not noticed that bug.
> The -addPermissions flag indeed did the trick.
>
> - DHC
>
> On Mon, Sep 24, 2012 at 4:58 PM, Itamar Heim <iheim at redhat.com
> <mailto:iheim at redhat.com>> wrote:
>
>     On 09/24/2012 11:31 PM, Dead Horse wrote:
>
>         I have built ovirt-engine from the latest GIT master over the
>         past few
>         nights and am running into a MS AD/LDAP error.  This same MS AD
>         setup
>         works fine with Released 3.1.
>
>         Current nightly builds from jenkins are not building all the GWT
>         permutations (Internet Explorer for example) so I have been
>         attempting
>         to re-build the engine so I can test using Internet Explorer.
>         It would be nice if the nightly jenkins builds could be changed
>         to do
>         the build with all GWT permutations enabled.
>
>         I am building in an FC17 environment with updates applied and
>         current as
>         of today. Accordingly maven3 and all build dependencies are
>         installed
>         from the FC17 repositories.
>         I tried the latest nightly from Jenkins and it does not exhibit the
>         below error. I am guessing I must not have the build recipe/env
>         correct.
>
>
>     Bug 858769 - manage-domains: once the domain is added admin at internal
>     can't search in that domain
>
>     I assume you are not using -addPermissions during the manage domains
>     command - it should workaround it.
>     I know yair is working on analyzing this.
>
>
>         The AD error I am running into looks like:
>
>         2012-09-24 16:15:44,037 ERROR
>         [org.ovirt.engine.core.bll.__adbroker.DirectorySearcher]
>         (ajp--127.0.0.1-8702-4) Failed ldap search server
>         LDAP://someserver.foo.com:389 <http://someserver.foo.com:389>
>         <http://someserver.foo.com:389__> due to
>
>         Kerberos error. Please check log for further details.. We should
>         not try
>         the next server
>         2012-09-24 16:15:44,039 ERROR
>         [org.ovirt.engine.core.bll.__adbroker.__GSSAPIDirContextAuthentication__Strategy]
>         (ajp--127.0.0.1-8702-2) Error from Kerberos:
>         java.lang.NullPointerException
>               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.__GSSAPIDirContextAuthentication__Strategy.authenticateToKDC(__GSSAPIDirContextAuthentication__Strategy.java:127)
>               at
>         org.ovirt.engine.core.bll.__adbroker.__GSSAPIDirContextAuthentication__Strategy.explicitAuth(__GSSAPIDirContextAuthentication__Strategy.java:119)
>               at
>         org.ovirt.engine.core.bll.__adbroker.__GSSAPIDirContextAuthentication__Strategy.authenticate(__GSSAPIDirContextAuthentication__Strategy.java:111)
>               at
>         org.ovirt.engine.core.bll.__adbroker.__GSSAPILdapTemplateWrapper.__useAuthenticationStrategy(__GSSAPILdapTemplateWrapper.__java:86)
>               at
>         org.ovirt.engine.core.bll.__adbroker.__PrepareLdapConnectionTask.__call(__PrepareLdapConnectionTask.__java:56)
>               at
>         org.ovirt.engine.core.bll.__adbroker.DirectorySearcher.__find(DirectorySearcher.java:__103)
>               at
>         org.ovirt.engine.core.bll.__adbroker.DirectorySearcher.__FindAll(DirectorySearcher.__java:48)
>               at
>         org.ovirt.engine.core.bll.__adbroker.__LdapSearchGroupsByQueryCommand__.executeQuery(__LdapSearchGroupsByQueryCommand__.java:22)
>               at
>         org.ovirt.engine.core.bll.__adbroker.__LdapBrokerCommandBase.execute(__LdapBrokerCommandBase.java:69)
>               at
>         org.ovirt.engine.core.bll.__adbroker.LdapBrokerBase.__RunAdAction(LdapBrokerBase.__java:18)
>               at
>         org.ovirt.engine.core.bll.__SearchQuery.adSearch(__SearchQuery.java:194)
>               at
>         org.ovirt.engine.core.bll.__SearchQuery.searchAdGroups(__SearchQuery.java:172)
>               at
>         org.ovirt.engine.core.bll.__SearchQuery.__executeQueryCommand(__SearchQuery.java:79)
>               at
>         org.ovirt.engine.core.bll.__QueriesCommandBase.__ExecuteCommand(__QueriesCommandBase.java:71)
>               at
>         org.ovirt.engine.core.dal.__VdcCommandBase.Execute(__VdcCommandBase.java:41)
>               at
>         org.ovirt.engine.core.bll.__Backend.runQueryImpl(Backend.__java:384)
>               at
>         org.ovirt.engine.core.bll.__Backend.RunQuery(Backend.java:__367)
>               at
>         sun.reflect.__GeneratedMethodAccessor12.__invoke(Unknown Source)
>               at
>         sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>               at java.lang.reflect.Method.__invoke(Method.java:601)
>               at
>         org.jboss.as.ee.component.__ManagedReferenceMethodIntercep__torFactory$__ManagedReferenceMethodIntercep__tor.processInvocation(__ManagedReferenceMethodIntercep__torFactory.java:72)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.invocation.__InterceptorContext$Invocation.__proceed(InterceptorContext.__java:374)
>               at
>         org.ovirt.engine.core.utils.__ThreadLocalSessionCleanerInter__ceptor.__injectWebContextToThreadLocal(__ThreadLocalSessionCleanerInter__ceptor.java:11)
>               at sun.reflect.__GeneratedMethodAccessor7.__invoke(Unknown
>         Source)
>               at
>         sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>               at java.lang.reflect.Method.__invoke(Method.java:601)
>               at
>         org.jboss.as.ee.component.__ManagedReferenceLifecycleMetho__dInterceptorFactory$__ManagedReferenceLifecycleMetho__dInterceptor.__processInvocation(__ManagedReferenceLifecycleMetho__dInterceptorFactory.java:123)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.invocation.__WeavedInterceptor.__processInvocation(__WeavedInterceptor.java:53)
>               at
>         org.jboss.as.ee.component.__interceptors.__UserInterceptorFactory$1.__processInvocation(__UserInterceptorFactory.java:__36)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.invocation.__InitialInterceptor.__processInvocation(__InitialInterceptor.java:21)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.invocation.__ChainedInterceptor.__processInvocation(__ChainedInterceptor.java:61)
>               at
>         org.jboss.as.ee.component.__interceptors.__ComponentDispatcherInterceptor__.processInvocation(__ComponentDispatcherInterceptor__.java:53)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.as.ejb3.component.__singleton.__SingletonComponentInstanceAsso__ciationInterceptor.__processInvocation(__SingletonComponentInstanceAsso__ciationInterceptor.java:53)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.as.ejb3.tx.__CMTTxInterceptor.invokeInNoTx(__CMTTxInterceptor.java:211)
>               at
>         org.jboss.as.ejb3.tx.__CMTTxInterceptor.supports(__CMTTxInterceptor.java:363)
>               at
>         org.jboss.as.ejb3.tx.__CMTTxInterceptor.__processInvocation(__CMTTxInterceptor.java:194)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.as.ejb3.component.__interceptors.__CurrentInvocationContextInterc__eptor.processInvocation(__CurrentInvocationContextInterc__eptor.java:41)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.as.ejb3.component.__interceptors.__LoggingInterceptor.__processInvocation(__LoggingInterceptor.java:59)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.as.ee.component.__NamespaceContextInterceptor.__processInvocation(__NamespaceContextInterceptor.__java:50)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.as.ee.component.__TCCLInterceptor.__processInvocation(__TCCLInterceptor.java:45)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.invocation.__ChainedInterceptor.__processInvocation(__ChainedInterceptor.java:61)
>               at
>         org.jboss.as.ee.component.__ViewService$View.invoke(__ViewService.java:165)
>               at
>         org.jboss.as.ee.component.__ViewDescription$1.__processInvocation(__ViewDescription.java:173)
>               at
>         org.jboss.invocation.__InterceptorContext.proceed(__InterceptorContext.java:288)
>               at
>         org.jboss.invocation.__ChainedInterceptor.__processInvocation(__ChainedInterceptor.java:61)
>               at
>         org.jboss.as.ee.component.__ProxyInvocationHandler.invoke(__ProxyInvocationHandler.java:__72)
>               at
>         org.ovirt.engine.core.common.__interfaces.BackendLocal$$$__view9.RunQuery(Unknown
>         Source)
>               at
>         org.ovirt.engine.ui.frontend.__server.gwt.__GenericApiGWTServiceImpl.__RunQuery(__GenericApiGWTServiceImpl.java:__51)
>               at
>         sun.reflect.__GeneratedMethodAccessor15.__invoke(Unknown Source)
>               at
>         sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>               at java.lang.reflect.Method.__invoke(Method.java:601)
>               at
>         com.google.gwt.rpc.server.RPC.__invokeAndStreamResponse(RPC.__java:196)
>               at
>         com.google.gwt.rpc.server.__RpcServlet.processCall(__RpcServlet.java:161)
>               at
>         com.google.gwt.rpc.server.__RpcServlet.processPost(__RpcServlet.java:222)
>               at
>         com.google.gwt.user.server.__rpc.__AbstractRemoteServiceServlet.__doPost(__AbstractRemoteServiceServlet.__java:62)
>               at
>         javax.servlet.http.__HttpServlet.service(__HttpServlet.java:754)
>               at
>         javax.servlet.http.__HttpServlet.service(__HttpServlet.java:847)
>               at
>         org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__329)
>               at
>         org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__248)
>               at
>         org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:275)
>               at
>         org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:161)
>               at
>         org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:489)
>               at
>         org.jboss.as.web.security.__SecurityContextAssociationValv__e.invoke(__SecurityContextAssociationValv__e.java:153)
>               at
>         org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:155)
>               at
>         org.apache.catalina.valves.__ErrorReportValve.invoke(__ErrorReportValve.java:102)
>               at
>         org.jboss.web.rewrite.__RewriteValve.invoke(__RewriteValve.java:466)
>               at
>         org.apache.catalina.core.__StandardEngineValve.invoke(__StandardEngineValve.java:109)
>               at
>         org.apache.catalina.connector.__CoyoteAdapter.service(__CoyoteAdapter.java:368)
>               at
>         org.apache.coyote.ajp.__AjpProcessor.process(__AjpProcessor.java:505)
>               at
>         org.apache.coyote.ajp.__AjpProtocol$__AjpConnectionHandler.process(__AjpProtocol.java:445)
>               at
>         org.apache.tomcat.util.net
>         <http://org.apache.tomcat.util.net>.__JIoEndpoint$Worker.run(__JIoEndpoint.java:930)
>               at java.lang.Thread.run(Thread.__java:722)
>
>         - DHC
>
>
>         _________________________________________________
>         Engine-devel mailing list
>         Engine-devel at ovirt.org <mailto:Engine-devel at ovirt.org>
>         http://lists.ovirt.org/__mailman/listinfo/engine-devel
>         <http://lists.ovirt.org/mailman/listinfo/engine-devel>
>
>
>
>



More information about the Engine-devel mailing list