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

Renaming jenkins agents persists previously named agent on restart

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.174

      Description

      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. 

        Attachments

          Issue Links

            Activity

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

              People

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

                Dates

                Created:
                Updated:
                Resolved: