I suspect the router isn't working with the JNLP connection since it's not an http protocol, you may need to expose your jenkins master via an external ip, or a nodeport, in order to make it possible for slaves to connect to it.
https://docs.openshift.org/latest/dev_guide/getting_traffic_into_cluster.html#using-externalIP https://docs.openshift.org/latest/dev_guide/getting_traffic_into_cluster.html#using-nodeport On Wed, Dec 7, 2016 at 5:34 AM, Lionel Orellana <[email protected]> wrote: > Hi > > Is it possible to add an existing windows machine as a slave to a Jenkins > master running on Openshift? > > I exposed the jnlp service with a route in Openshift and tried to use the > tunnel option with 1) a Java Web Start slave, 2) running the slave client > jar directly and 3) a Swarm slave. None of them worked. Seems like I just > can't use the tunnel to connect to the router. > > The initial connection to the master works fine but then it fails to > connect to the jnlp service. > > INFO: Attempting to connect to http://web-jenkins.ospoc.aipo.gov.au/ > 60787488-21 > fe-4867-9251-cdba1c4b35b6 with ID 60a61643 > Dec 07, 2016 9:24:16 PM hudson.remoting.jnlp.Main createEngine > INFO: Setting up slave: WS17072.production.prod-60a61643 > Dec 07, 2016 9:24:16 PM hudson.remoting.jnlp.Main$CuiListener <init> > INFO: Jenkins agent is running in headless mode. > Dec 07, 2016 9:24:16 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Locating server among [http://web-jenkins.ospoc.aipo.gov.au/] > Dec 07, 2016 9:24:16 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Handshaking > Dec 07, 2016 9:24:16 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Connecting to jnlp-jenkins.ospoc.aipo.gov.au:80 > Dec 07, 2016 9:24:16 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Trying protocol: JNLP3-connect > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Server didn't accept the handshake: HTTP/1.0 400 Bad request > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Connecting to jnlp-jenkins.ospoc.aipo.gov.au:80 > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Trying protocol: JNLP2-connect > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Server didn't accept the handshake: HTTP/1.0 400 Bad request > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Connecting to jnlp-jenkins.ospoc.aipo.gov.au:80 > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Trying protocol: JNLP-connect > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Server didn't accept the handshake: HTTP/1.0 400 Bad request > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener status > INFO: Connecting to jnlp-jenkins.ospoc.aipo.gov.au:80 > Dec 07, 2016 9:24:17 PM hudson.remoting.jnlp.Main$CuiListener error > SEVERE: The server rejected the connection: None of the protocols were > accepted > java.lang.Exception: The server rejected the connection: None of the > protocols w > ere accepted > at hudson.remoting.Engine.onConnectionRejected(Engine.java:366) > at hudson.remoting.Engine.run(Engine.java:338) > > > Is there a way to do this? > > Thanks > > Lionel > > > _______________________________________________ > users mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > > -- Ben Parees | OpenShift
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
