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

Failed to run the slave pod using k8s cloud

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • kubernetes

      I tried to use k8s cloud to run a simple slave pod for testing, but all failed. 

      configuration:

       

      jenkins version: 2.346.3

      kubernetes plugin version: 3724.v0920c1e0ec69

      I checked JENKINS-54683 and tried to change the version of k8s plugin to 1.30.0, but there were other problems

       

      slave pod output log:

      ```
      INFO: Waiting for ProtocolStack to start.
      Oct 12, 2022 8:24:18 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Remote identity confirmed: 87:83:6a:49:85:aa:c4:9e:aa:63:e1:c0:6e:aa:09:16
      Oct 12, 2022 8:24:18 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer onRecv
      INFO: [JNLP4-connect connection to jenkins-service/192.168.192.229:50000] Local headers refused by remote: Unknown client name: nginx-slave-wxbm7
      Oct 12, 2022 8:24:18 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP4-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Unknown client name: nginx-slave-wxbm7
      at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:223)
      at hudson.remoting.Engine.innerRun(Engine.java:778)
      at hudson.remoting.Engine.run(Engine.java:540)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Unknown client name: nginx-slave-wxbm7
      at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.newAbortCause(ConnectionHeadersFilterLayer.java:378)
      at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onRecvClosed(ConnectionHeadersFilterLayer.java:433)
      at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:825)
      at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:288)
      at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:170)
      at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:825)
      at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
      at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BIONetworkLayer.java:49)
      at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONetworkLayer.java:255)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
      at java.base/java.lang.Thread.run(Unknown Source)
      Suppressed: java.nio.channels.ClosedChannelException
      ... 7 more
       
      Oct 12, 2022 8:24:18 AM 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 were accepted
      at hudson.remoting.Engine.onConnectionRejected(Engine.java:864)
      at hudson.remoting.Engine.innerRun(Engine.java:804)
      at hudson.remoting.Engine.run(Engine.java:540)
      ```

            Unassigned Unassigned
            011_4319 liu dui
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: