Jenkins slave image not respecting NO_PROXY variable
Issue
Jenkins - based on FROM openshift/jenkins:2 and slave based on registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7 does not work in proxy Environment.
We have set openshift proxy Settings - and those are available in Jenkins master env and slave env - as below.
no_proxy=.svc,.default,.local,localhost,.example.com,10.250.0.0/16,10.251.0.0/16,10.183.195.106,10.183.195.107,10.183.195.108,10.183.195.109,10.183.195.11,10.183.195.111,10.183.195.112,10.183.195.1
13,10.183.195.13,10.250.127.4
HTTP_PROXY=http://xxx:yyyyyzzzze@example.com:80 HTTPS_PROXY=http://xxx:yyyyyzzzze@example.com:80
However Jenkins slave Fails upon callback - and does NOT honor them - we also tried to set these in manage Jenkins / plugins / advanced - and they work - but are NOT passed to the slave
Apr 28, 2018 7:11:40 AM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: http://jenkins.test.svc:80/tcpSlaveAgentListener/ is invalid: 407 Proxy Authentication Required
java.io.IOException: http://jenkins.test.svc:80/tcpSlaveAgentListener/ is invalid: 407 Proxy Authentication Required
at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:165)
at hudson.remoting.Engine.innerRun(Engine.java:335)
at hudson.remoting.Engine.run(Engine.java:287)
To me it looks like no_proxy is not used / not honored
Environment
- Red Hat OpenShift Container Platform
- 3.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.