Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51818

Slave can`t connect via JNLP if Jenkins behind the balancer

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • remoting
    • Jenkins behind the balancer; Docker; Yet another docker plugin;

      Our Jenkins server has multiple addresses (local 10.206.x.x and public via balanser ). The load balancer doesn’t allow any traffic except ports 80 and 443 through, so we have to connect to Docker JNLP containers by yet-another-docker-plugin.
      JENKINS_URL variable is set to private URL without balanser. But each time slave try connect to host via balanser host name. Because via JNLP slave recieve two URLs (local 10.206.x.x and public balanser name), them list of Jenkins URL set to
      JnlpAgentEndpointResolver. Resolve method return JnlpAgentEndpoint for first available via http(s) (in list first element usual is default Jenkins URL) . But Engine can not be created because JNLP port is not available from slave. If reconnect oprion is enabled slave again try use firs address to create JNLP connection and again port is unreachable.

          [JENKINS-51818] Slave can`t connect via JNLP if Jenkins behind the balancer

          Andrei Laptsinski created issue -
          Andrei Laptsinski made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrei Laptsinski made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

          Fix pull request: https://github.com/jenkinsci/remoting/pull/275 

          Added check for port availability. 

          Andrei Laptsinski added a comment - Fix pull request: https://github.com/jenkinsci/remoting/pull/275   Added check for port availability. 
          Andrei Laptsinski made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Status Original: Resolved [ 5 ] New: In Review [ 10005 ]

          Oleg Nenashev added a comment -

          Will close it once it is in the core

          Oleg Nenashev added a comment - Will close it once it is in the core

          Oleg Nenashev added a comment -

          Extra diagnostics has been added to Remoting 3.22 and Jenkins 2.129

          Oleg Nenashev added a comment - Extra diagnostics has been added to Remoting 3.22 and Jenkins 2.129
          Oleg Nenashev made changes -
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Link New: This issue relates to JENKINS-52204 [ JENKINS-52204 ]

            denami Andrei Laptsinski
            denami Andrei Laptsinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: