[JIRA] [core] (JENKINS-32326) broken HTTP_PROXY handling on jenkins-slave (JNLP)

105 views
Skip to first unread message

valentin.maechler@gmail.com (JIRA)

unread,
Jan 7, 2016, 3:50:02 AM1/7/16
to jenkinsc...@googlegroups.com
Valentin Maechler created an issue
 
Jenkins / Bug JENKINS-32326
broken HTTP_PROXY handling on jenkins-slave (JNLP)
Issue Type: Bug Bug
Assignee: Unassigned
Components: core, remoting
Created: 07/Jan/16 8:49 AM
Priority: Minor Minor
Reporter: Valentin Maechler

broken HTTP_PROXY handling on jenkins-slave (JNLP)
The proxy exclusion list (http.nonProxyHosts, no_proxy) is not taken into account on the jenkins-slave side.
This has been observed in our jenkins master/slave environment which uses JNLP.

Support for HTTP_PROXY handling on jenkins-slave side has been added with jenkins version 1.606.
Unfortunately that does not take the proxy exclusion list into account (e.g. defined by no_proxy env variable on linux).
This forces the slave to always use the proxy. Even for destinations which would be excluded by no_proxy.

Jenkins uses org.jenkins-ci.main:remoting for handling http proxy functionality.
Jenkins includes version 2.53.2 of org.jenkins-ci.main:remoting which contains the error described above.

possible solution:
1.) create new release of org.jenkins-ci.main:remoting which *already *contains the fix in it's master branch.
2.) update jenkins' to use this new version of org.jenkins-ci.main:remoting

see also:

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

valentin.maechler@gmail.com (JIRA)

unread,
Jan 7, 2016, 3:58:02 AM1/7/16
to jenkinsc...@googlegroups.com
Valentin Maechler updated an issue
Change By: Valentin Maechler
*broken HTTP_PROXY handling on jenkins-slave (JNLP)*

The proxy exclusion list (http.nonProxyHosts, no_proxy) is not taken into account on the jenkins-slave side.
This has been observed in our jenkins master/slave environment which uses JNLP.

Support for HTTP_PROXY handling on jenkins-slave side has been added with jenkins version 1.606.
Unfortunately that does not take the proxy exclusion list into account (e.g. defined by no_proxy env variable on linux).
This forces the slave to always use the proxy. Even for destinations which would be excluded by no_proxy.

Jenkins uses [org.jenkins-ci.main:remoting|https://github.com/jenkinsci/remoting] for handling http proxy functionality. 
Jenkins includes version 2.53.2 of  [org.jenkins-ci.main:remoting|https://github.com/jenkinsci/remoting] which contains the error described above.

possible solution:
1.) create new release of  [org.jenkins-ci.main:remoting|https://github.com/jenkinsci/remoting] which *already *contains the fix in it's master branch.
2.) update jenkins' to use this new version of  [org.jenkins-ci.main:remoting|https://github.com/jenkinsci/remoting]

see also:
- commit of fix in master branch of org.jenkins-ci.main:remoting
    [https://github.com/jenkinsci/remoting/commit/56d30acb89f5626320d6b47585053674a5fdfb78]
    

dbeck@cloudbees.com (JIRA)

unread,
Jan 7, 2016, 4:29:01 AM1/7/16
to jenkinsc...@googlegroups.com

public@etiennebec.fr (JIRA)

unread,
May 25, 2016, 4:19:03 AM5/25/16
to jenkinsc...@googlegroups.com
Etienne Bec commented on Bug JENKINS-32326
 
Re: broken HTTP_PROXY handling on jenkins-slave (JNLP)

We're encountering the same issue (see comment section of

JENKINS-28289 for further details).

It should also be noted that the proxy configuration defined by the system properties does not have precedence over the one defined by the environment variables. Indeed if you set both, you would expect the slave to actually work because http.nonProxyHosts is automatically taken in account by the JVM. But no, looks like some part rely on http_proxy (and obviously don't use no_proxy). Unless you unset all your proxy env var, the slave won't work even if your system properties are correct.

It means that on a host where you

need to set those env var, there's no workaround to make the slave work.

public@etiennebec.fr (JIRA)

unread,
May 26, 2016, 8:20:02 AM5/26/16
to jenkinsc...@googlegroups.com
Etienne Bec started work on Bug JENKINS-32326
 
Change By: Etienne Bec
Status: Open In Progress

public@etiennebec.fr (JIRA)

unread,
May 26, 2016, 8:20:02 AM5/26/16
to jenkinsc...@googlegroups.com
Etienne Bec assigned an issue to Etienne Bec
 
Change By: Etienne Bec
Assignee: Oleg Nenashev Etienne Bec

public@etiennebec.fr (JIRA)

unread,
May 26, 2016, 10:02:01 AM5/26/16
to jenkinsc...@googlegroups.com
Etienne Bec assigned an issue to Oleg Nenashev
Change By: Etienne Bec
Assignee: Etienne Bec Oleg Nenashev

scm_issue_link@java.net (JIRA)

unread,
Jun 9, 2016, 5:30:02 AM6/9/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-32326
 
Re: broken HTTP_PROXY handling on jenkins-slave (JNLP)

Code changed in jenkins
User: Etienne Bec
Path:
src/main/java/hudson/remoting/Util.java
src/test/java/hudson/remoting/UtilTest.java
http://jenkins-ci.org/commit/remoting/a1bdc233aee6dd13fd76f488adb2aa436a7e74f5
Log:
[FIXED JENKINS-32326] Support no_proxy environment variable (#84)

Change-Id: I894e7831677ee39c37020b0fab0e6db5b290f9ca

scm_issue_link@java.net (JIRA)

unread,
Jun 9, 2016, 5:30:02 AM6/9/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon resolved as Fixed
 
Change By: SCM/JIRA link daemon
Status: In Progress Resolved
Resolution: Fixed

scm_issue_link@java.net (JIRA)

unread,
Jun 10, 2016, 12:00:02 PM6/10/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Oleg Nenashev
Path:
pom.xml
http://jenkins-ci.org/commit/jenkins/d9f12b0e614d9598221c571001aa43c018b21e25
Log:
Update remoting to 2.60

Changes summary:

Fixed issues:

Enhancements:

scm_issue_link@java.net (JIRA)

unread,
Jun 11, 2016, 10:08:02 AM6/11/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Oleg Nenashev
Path:
pom.xml

Changes summary:

Fixed issues:

Enhancements:

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 11, 2016, 1:22:02 PM6/11/16
to jenkinsc...@googlegroups.com

Releases: remoting-2.60 and jenkins-2.9

aheritier@apache.org (JIRA)

unread,
Jun 22, 2016, 4:44:02 PM6/22/16
to jenkinsc...@googlegroups.com
Arnaud Héritier updated an issue
 
Change By: Arnaud Héritier
Labels: lts-candidate
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

ogondza@gmail.com (JIRA)

unread,
Jul 19, 2016, 7:01:02 AM7/19/16
to jenkinsc...@googlegroups.com
Oliver Gondža updated an issue
Change By: Oliver Gondža
Labels: 2.7.2-fixed lts-candidate

ogondza@gmail.com (JIRA)

unread,
Jul 19, 2016, 7:01:03 AM7/19/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages