[ovirt-users] Adding foreman provider: Could not generate DH keypair (Failed with error PROVIDER_SSL_FAILURE and code 5052)

ybronhei ybronhei at redhat.com
Sun Oct 26 12:26:08 UTC 2014


On 10/26/2014 08:52 AM, Oved Ourfali wrote:
> Hi
>
> What jdk version are you using?
> According to http://stackoverflow.com/questions/10687200/java-7-and-could-not-generate-dh-keypair it might be related.
>
funny, thought only I encountered that issue and fought with it a day 
due my out-of-date machine..

sorry I didn't share (learned for next time) :/ all you need is to 
upgrade your jdk, read more about it in the stackoverflow page.

Thanks for raising the issue.

> Thanks,
> Oved
>
> ----- Original Message -----
>> From: "Daniel Helgenberger" <daniel.helgenberger at m-box.de>
>> To: users at ovirt.org
>> Sent: Friday, October 24, 2014 1:16:51 AM
>> Subject: [ovirt-users] Adding foreman provider: Could not generate DH keypair (Failed with error PROVIDER_SSL_FAILURE
>> and code 5052)
>>
>> Hello,
>>
>> I tried to add foreman as external provider - without successes.
>>
>> Hosted Engine 3.5
>> CentOS6.5
>>
>> The foreman is a plain vanilla install; working so far (can log in, do stuff,
>> local smart proxy registered)
>>
>> foreman FQDN is resolvable via DNS
>>
>> In the engine UI I enter:
>> https://foreman.lab.mbox.loc
>> user
>> pw
>>
>> and press test.
>> The cert is shown and after clicking ok, the chain is imported. However, the
>> test fails with a SSL error. Please see engine log below:
>>
>> 2014-10-24 00:01:45,188 INFO
>> [org.ovirt.engine.core.bll.provider.ImportProviderCertificateChainCommand]
>> (ajp--127.0.0.1-8702-7) [710ac5c] Running command:
>> ImportProviderCertificateChainCommand internal: false. Entities affected :
>> ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group
>> CREATE_STORAGE_POOL with role type ADMIN
>> 2014-10-24 00:01:45,296 INFO
>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
>> (ajp--127.0.0.1-8702-7) [710ac5c] Correlation ID: 710ac5c, Call Stack: null,
>> Custom Event ID: -1, Message: Certificate chain for provider foreman was
>> imported. (User: daniel)
>> 2014-10-24 00:01:46,212 INFO
>> [org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand]
>> (ajp--127.0.0.1-8702-9) [6a77acf4] Running command:
>> TestProviderConnectivityCommand internal: false. Entities affected :  ID:
>> aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group
>> CREATE_STORAGE_POOL with role type ADMIN
>> 2014-10-24 00:01:46,662 ERROR
>> [org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand]
>> (ajp--127.0.0.1-8702-9) [6a77acf4] Command
>> org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand throw Vdc
>> Bll exception. With error message VdcBLLException:
>> java.lang.RuntimeException: Could not generate DH keypair (Failed with error
>> PROVIDER_SSL_FAILURE and code 5052)
>> 2014-10-24 00:02:01,222 INFO
>> [org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand]
>> (ajp--127.0.0.1-8702-10) [2713e6dc] Running command:
>> TestProviderConnectivityCommand internal: false. Entities affected :  ID:
>> aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group
>> CREATE_STORAGE_POOL with role type ADMIN
>> 2014-10-24 00:02:01,625 ERROR
>> [org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand]
>> (ajp--127.0.0.1-8702-10) [2713e6dc] Command
>> org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand throw Vdc
>> Bll exception. With error message VdcBLLException:
>> java.lang.RuntimeException: Could not generate DH keypair (Failed with error
>> PROVIDER_SSL_FAILURE and code 5052)
>> 2014-10-24 00:02:02,090 ERROR
>> [org.ovirt.engine.core.bll.GetProviderCertificateChainQuery]
>> (ajp--127.0.0.1-8702-11) Query GetProviderCertificateChainQuery failed.
>> Exception message is VdcBLLException: java.lang.RuntimeException: Could not
>> generate DH keypair (Failed with error PROVIDER_FAILURE and code 5050) :
>> org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException:
>> java.lang.RuntimeException: Could not generate DH keypair (Failed with error
>> PROVIDER_FAILURE and code 5050):
>> org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException:
>> java.lang.RuntimeException: Could not generate DH keypair (Failed with error
>> PROVIDER_FAILURE and code 5050)
>>          at
>>          org.ovirt.engine.core.bll.provider.BaseProviderProxy.handleException(BaseProviderProxy.java:70)
>>          [bll.jar:]
>>          at
>>          org.ovirt.engine.core.bll.provider.BaseProviderProxy.getCertificateChain(BaseProviderProxy.java:60)
>>          [bll.jar:]
>>          at
>>          org.ovirt.engine.core.bll.GetProviderCertificateChainQuery.executeQueryCommand(GetProviderCertificateChainQuery.java:24)
>>          [bll.jar:]
>>          at
>>          org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:73)
>>          [bll.jar:]
>>          at
>>          org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:31)
>>          [dal.jar:]
>>          at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:492)
>>          [bll.jar:]
>>          at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:466)
>>          [bll.jar:]
>>          at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
>>          [:1.7.0_65]
>>          at
>>          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>          [rt.jar:1.7.0_65]
>>          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
>>          at
>>          org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:114)
>>          [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:125)
>>          [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135)
>>          [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.ovirt.engine.core.bll.interceptors.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal(ThreadLocalSessionCleanerInterceptor.java:13)
>>          [bll.jar:]
>>          at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
>>          [:1.7.0_65]
>>          at
>>          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>          [rt.jar:1.7.0_65]
>>          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
>>          at
>>          org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:123)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:82)
>>          [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
>>          [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:211)
>>          [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:363)
>>          [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:194)
>>          [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
>>          [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
>>          [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
>>          [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>          at
>>          org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
>>          [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>          at
>>          org.ovirt.engine.core.common.interfaces.BackendLocal$$$view7.runQuery(Unknown
>>          Source) [common.jar:]
>>          at
>>          org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.runQuery(GenericApiGWTServiceImpl.java:56)
>>          at
>>          org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.runMultipleQueries(GenericApiGWTServiceImpl.java:87)
>>          at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
>>          [:1.7.0_65]
>>          at
>>          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>          [rt.jar:1.7.0_65]
>>          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
>>          at
>>          com.google.gwt.rpc.server.RPC.invokeAndStreamResponse(RPC.java:196)
>>          at
>>          com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:172)
>>          at
>>          com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:233)
>>          at
>>          com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
>>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
>>          [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
>>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>          [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.utils.servlet.HeaderFilter.doFilter(HeaderFilter.java:94)
>>          [utils.jar:]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.ui.frontend.server.gwt.GwtCachingFilter.doFilter(GwtCachingFilter.java:132)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.branding.BrandingFilter.doFilter(BrandingFilter.java:72)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.utils.servlet.LocaleFilter.doFilter(LocaleFilter.java:64)
>>          [utils.jar:]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.aaa.filters.SessionMgmtFilter.doFilter(SessionMgmtFilter.java:31)
>>          [aaa.jar:]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.aaa.filters.LoginFilter.doFilter(LoginFilter.java:73)
>>          [aaa.jar:]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.aaa.filters.NegotiationFilter.doFilter(NegotiationFilter.java:112)
>>          [aaa.jar:]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.aaa.filters.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:75)
>>          [aaa.jar:]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
>>          at
>>          org.ovirt.engine.core.aaa.filters.SessionValidationFilter.doFilter(SessionValidationFilter.java:63)
>>          [aaa.jar:]
>>          at
>>          org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
>>          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.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.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.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
>>          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
>>
>> --
>>
>> Daniel Helgenberger
>> m box bewegtbild GmbH
>>
>> P: +49/30/2408781-22
>> F: +49/30/2408781-10
>>
>> ACKERSTR. 19
>> D-10115 BERLIN
>>
>>
>> www.m-box.de  www.monkeymen.tv
>>
>> Geschäftsführer: Martin Retschitzegger / Michaela Göllner
>> Handeslregister: Amtsgericht Charlottenburg / HRB 112767
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>


-- 
Yaniv Bronhaim.



More information about the Users mailing list