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

ssh-agent in pipeline leaves defunct processes on swarm client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: ssh-agent-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.150.1, SSH Agent Plugin 1.17, Self-Organizing Swarm Plug-in Modules 3.15
    • Similar Issues:

      Description

      We run build nodes via Docker and the Swarm Plugin. After a while defunct processes start to pile up on the nodes:

       

      1000 9386 9371 1 Dec18 ? 00:10:49 java -jar /usr/share/jenkins/swarm-client-3.15-jar-with-dependencies.jar -fsroot /var/jenkins-node_home -master https://jenkins.cosmos.local -username XXX -password XXX -executors 10 -mode exclusive -labels linux basic build -name basic-node-dc -disableSslVerification -description Basic node

      [root@XXX:/root]# ps -ef | grep defu 
      1000 2489 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 
      1000 2514 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 
      1000 2544 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 
      1000 2618 9386 0 Dec18 ? 00:00:00 [ssh-agent] <defunct> 

      ...

       

      We run ssh-agent often through many scripted pipelines so it is hard to trace it down to a specific Pipeline, but this behavior shouldn't occur to begin with.

       

        Attachments

          Activity

          Hide
          pmr Philipp Moeller added a comment - - edited

          I just confirmed that this happens during normal execution of code like:

          node('basic') {
          sshagent(['XXXXX']) {
            sh "echo foo"
          } 
          }
          
          Show
          pmr Philipp Moeller added a comment - - edited I just confirmed that this happens during normal execution of code like: node( 'basic' ) { sshagent([ 'XXXXX' ]) { sh "echo foo" } }
          Hide
          xmj Johannes Meixner added a comment -

          Hi,

          We're seeing these defunct processes independently of Swarm, with Docker 1.13.1 on RHEL7.

          Show
          xmj Johannes Meixner added a comment - Hi, We're seeing these defunct processes independently of Swarm, with Docker 1.13.1 on RHEL7.
          Hide
          basil Basil Crow added a comment -

          This bug doesn't seem to be specific to the SSH slaves plugin or the Swarm Plugin. I'm reassigning this to the SSH Agent plugin component.

          Show
          basil Basil Crow added a comment - This bug doesn't seem to be specific to the SSH slaves plugin or the Swarm Plugin. I'm reassigning this to the SSH Agent plugin component.
          Hide
          christian_wehrli Christian Wehrli added a comment -

          We're also seeing this on an OpenShift environment:
          OpenShift 3.10
          Jenkins 2.164.3
          SSH Agent Plugin 1.17

          Job runs without error but every time job has finished a new zombie process is born on underlying host.

          Show
          christian_wehrli Christian Wehrli added a comment - We're also seeing this on an OpenShift environment: OpenShift 3.10 Jenkins 2.164.3 SSH Agent Plugin 1.17 Job runs without error but every time job has finished a new zombie process is born on underlying host.

            People

            • Assignee:
              Unassigned
              Reporter:
              pmr Philipp Moeller
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: