[JIRA] (JENKINS-38104) Configure proxy for connexion to Kubernetes

10 views
Skip to first unread message

cyril.dussert@orange.com (JIRA)

unread,
Sep 9, 2016, 10:23:01 AM9/9/16
to jenkinsc...@googlegroups.com
Cyril Dussert created an issue
 
Jenkins / Bug JENKINS-38104
Configure proxy for connexion to Kubernetes
Issue Type: Bug Bug
Assignee: Carlos Sanchez
Attachments: curl from pod.PNG
Components: kubernetes-plugin
Created: 2016/Sep/09 2:22 PM
Environment: Jenkins 1.651.2
Priority: Major Major
Reporter: Cyril Dussert

I'm trying to configure Jenkins connection to Kubernetes using the kubernetes plugin.
The fact is that the connection test fails with the following error :

??javax.servlet.ServletException: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:57)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:418)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:58)
at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$DescriptorImpl.doTestConnection(KubernetesCloud.java:590)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:320)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:163)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
... 48 more
Caused by: java.net.SocketTimeoutException: timeout
at okio.Okio$3.newTimeoutException(Okio.java:207)
at okio.AsyncTimeout.exit(AsyncTimeout.java:261)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:215)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:306)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:300)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196)
at com.squareup.okhttp.internal.http.Http1xStream.readResponse(Http1xStream.java:186)
at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127)
at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737)
at com.squareup.okhttp.internal.http.HttpEngine.access$200(HttpEngine.java:87)
at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:722)
at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:576)
at com.squareup.okhttp.Call.getResponse(Call.java:287)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
at io.fabric8.kubernetes.client.utils.HttpClientUtils$3.intercept(HttpClientUtils.java:93)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:232)
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
at com.squareup.okhttp.Call.execute(Call.java:80)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:230)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:416)
... 60 more
Caused by: java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at okio.Okio$2.read(Okio.java:139)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
... 77 more??

I tried to do a curl request from my Jenkins pod to Kubernetes and it worked only if I tell to curl don't use the proxy (see below) :

Pods can communicate between us inside my OpenShift cluster
So, is there a way to tell the kubernetes plus to NOT use the proxy like I did with cURL ?

Thank you,
Regards

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

cyril.dussert@orange.com (JIRA)

unread,
Sep 9, 2016, 10:24:01 AM9/9/16
to jenkinsc...@googlegroups.com
Cyril Dussert updated an issue
Change By: Cyril Dussert
I'm trying to configure Jenkins connection to Kubernetes using the kubernetes plugin.
The fact is that the connection test fails with the following error :

?? {{ javax.servlet.ServletException: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
?? }}
!curl from pod.PNG|thumbnail!

Pods can communicate between us inside my OpenShift cluster
So, is there a way to tell the kubernetes plus to NOT use the proxy like I did with cURL ?

Thank you,
Regards

cyril.dussert@orange.com (JIRA)

unread,
Sep 9, 2016, 10:25:06 AM9/9/16
to jenkinsc...@googlegroups.com
Cyril Dussert updated an issue
I'm trying to configure Jenkins connection to Kubernetes using the kubernetes plugin.
The fact is that the connection test fails with the following error :


{{javax.servlet.ServletException: io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.

at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.
http .HttpServlet.service(HttpServlet.java : 848)
at org
//pastebin . eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at com .squareup.okhttp.internal.http.Http1xStream.readResponse(Http1xStream.java:186) /zZTQQtd9
at com.squareup.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127)
at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:737)
at com.squareup.okhttp.internal.http.HttpEngine.access$200(HttpEngine.java:87)
at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:722)
at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:576)
at com.squareup.okhttp.Call.getResponse(Call.java:287)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
at io.fabric8.kubernetes.client.utils.HttpClientUtils$3.intercept(HttpClientUtils.java:93)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:232)
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
at com.squareup.okhttp.Call.execute(Call.java:80)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:230)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:416)
... 60 more
Caused by: java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at okio.Okio$2.read(Okio.java:139)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
... 77 more}}

I tried to do a curl request from my Jenkins pod to Kubernetes and it worked only if I tell to curl don't use the proxy (see below) :
!curl from pod.PNG|thumbnail!

Pods can communicate between us inside my OpenShift cluster
So, is there a way to tell the kubernetes plus to NOT use the proxy like I did with cURL ?

Thank you,
Regards

cyril.dussert@orange.com (JIRA)

unread,
Sep 9, 2016, 10:32:01 AM9/9/16
to jenkinsc...@googlegroups.com
Cyril Dussert updated an issue
Change By: Cyril Dussert
Environment: Jenkins 1.651.2 , OpenShift 3.2
Attachment: connect from Jenkins.PNG
I'm trying to configure Jenkins connection to Kubernetes using the kubernetes plugin.
The fact is that the connection test fails with the following error : http://pastebin.com/zZTQQtd9

Here are the params :  !connect from Jenkins.PNG|thumbnail!

I tried to do a curl request from my Jenkins pod to Kubernetes and it worked only if I tell to curl don't use the proxy (see below) :
!curl from pod.PNG|thumbnail!

Pods can communicate between us inside my OpenShift cluster
So, is there a way to tell the kubernetes plus to NOT use the proxy like I did with cURL ?

Thank you,
Regards

cyril.dussert@orange.com (JIRA)

unread,
Sep 9, 2016, 11:11:01 AM9/9/16
to jenkinsc...@googlegroups.com
Cyril Dussert updated an issue
I'm trying to configure Jenkins connection to Kubernetes using the kubernetes plugin.
The fact is that the connection test fails with the following error : http://pastebin.com/zZTQQtd9

Here are the params :  !connect from Jenkins.PNG|thumbnail!

I tried to do a curl request from my Jenkins pod to Kubernetes and it worked only if I tell to curl don't use the proxy (see below) :
!curl from pod.PNG|thumbnail!

Pods can communicate between us inside my OpenShift cluster
So, is there a way to tell the kubernetes plus plugin to NOT use the proxy like I did with cURL ?

Thank you,
Regards

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Nov 23, 2016, 2:00:01 PM11/23/16
to jenkinsc...@googlegroups.com
Carlos Sanchez commented on Bug JENKINS-38104
 
Re: Configure proxy for connexion to Kubernetes

You could try with the noproxy option as described here https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy

Not sure if it would fix it, but worth a shot

dtgames@kinggeek.org (JIRA)

unread,
May 9, 2019, 4:42:04 PM5/9/19
to jenkinsc...@googlegroups.com

I can confirm this does not fix it. See: JENKINS-55123

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages