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

Renaming jenkins agents persists previously named agent on restart

    • 2.174

      Renaming an agent does not persist across restarts, and jenkins loads back the old agent as well as the new agent. The root issue seems to be that the directory under ${JENKINS_HOME}/nodes/<agent> is left untouched on a rename, and is left alongside the one created for the new agent. 

      Steps to reproduce:

      1. Create a new agent
      2. Configure -> Rename the agent and click Save
      3. Restart Jenkins to see the old agent appear

      This caused several issues where the old and new agents were trying to connect to the same host, causing build issues

      This is reproducible on several jenkins LTS versions (2.107, 2.138, 2.150), so I'm not sure when it was introduced. 

          [JENKINS-56403] Renaming jenkins agents persists previously named agent on restart

          Anish Dangi created issue -
          Anish Dangi made changes -
          Summary Original: Renaming jenkins agents persists old agents alongside old agents on restart New: Renaming jenkins agents persists previously named agent on restart
          Anish Dangi made changes -
          Labels New: core jenkins
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-27565 [ JENKINS-27565 ]
          Anish Dangi made changes -
          Link New: This issue is caused by JENKINS-33780 [ JENKINS-33780 ]
          Anish Dangi made changes -
          Remote Link New: This issue links to "PR 3925 (Web Link)" [ 22451 ]
          Jesse Glick made changes -
          Assignee New: Anish Dangi [ adangi ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Baptiste Mathus made changes -
          Labels Original: core jenkins New: core jenkins lts-candidate
          Baptiste Mathus made changes -
          Released As New: 2.174 (tentative)
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]

            adangi Anish Dangi
            adangi Anish Dangi
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: