• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • 11.0.0
    • Agents
    • None
    • 16
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Summary

      Users are unable to effectively rename remote agent from <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml.

      Steps to Reproduce

      1. Install remote agent (e.g. following our documentation).
      2. Make sure the remote agent connects to Bamboo at least one time. When the remote agent first connects to Bamboo, it sends the hostname as its name, which is then registered and stored in Bamboo's database.
      3. Stop the remote agent.
      4. Open up the <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml file.
      5. Change the <name> tag to rename the remote agent.
      6. Start the remote agent.

      Expected Results

      Bamboo should display the updated remote agent's name in the UI after restarting the agent.

      Actual Results

      Bamboo continues to display the old agent's name even though the agent logs show the new/updated name.

      Workaround

      Right now, to rename the agent and ensure consistency go through the following steps every time you need to rename a remote agent:

      1. Open up the remote agent <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml file and change the <name> tag to rename the remote agent.
      2. From the UI go to the Bamboo administration > Agents page.
        • Locate the remote agent from step 1 under the tabs "Online" or "Offline".
        • Click the agent name. You'll get redirected to the remote agent summary page.
        • Click Edit details.
        • Use the "Name" field to rename the remote agent.

      Basically you'll have to rename the agent in two different places. You'll have to go through steps 1 & 2 to rename the remote agent and ensure that both the bamboo-agent.cfg.xml file and the database are in sync.

          Form Name

            [BAM-19581] Unable to rename remote agent from bamboo-agent.cfg.xml

            I was able to rename the agent name by removing <agentUuid> and <id> from the bamboo-agent.cfg.xml file and giving the agent name as required in the <name> field. By doing this I did not need to rename the agent from Bamboo again. Agent registered by the new name. Hope this helps. 

            Kaushalendra Kumar added a comment - I was able to rename the agent name by removing <agentUuid> and <id> from the bamboo-agent.cfg.xml file and giving the agent name as required in the <name> field. By doing this I did not need to rename the agent from Bamboo again. Agent registered by the new name. Hope this helps. 

            When I create a new agent, I copy the folder structure to a new home directory for different user(linux) and remove the values in the UUID and ID fields, change the agent name and start the agent. Somehow, the UUID is assigned to the new agent and on the agent page the only thing that changes is the home directory of the agent. How and why is this happening?

            James Brown added a comment - When I create a new agent, I copy the folder structure to a new home directory for different user(linux) and remove the values in the UUID and ID fields, change the agent name and start the agent. Somehow, the UUID is assigned to the new agent and on the agent page the only thing that changes is the home directory of the agent. How and why is this happening?

            If you remove and re-add an agent, it also renews the name after a change in the  <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml 

            Christian Pascher added a comment - If you remove and re-add an agent, it also renews the name after a change in the   <BAMBOO_AGENT_HOME>/bamboo-agent.cfg.xml  

            Rafael Sperafico (Inactive) added a comment - https://community.atlassian.com/t5/Bamboo-questions/Bamboo-Agent-Name-keeps-defaulting-to-127-0-0-1-on-Mac-OSX/qaq-p/764584

              mgardias Marcin Gardias
              brosa Bruno Rosa
              Votes:
              37 Vote for this issue
              Watchers:
              31 Start watching this issue

                Created:
                Updated: