-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Agents
-
None
-
0
-
1
Issue Summary
When we try to redeploy an existing agent Bamboo will create a new agent with the name of (1) or (2) appended depending upon how many times the redeployment has happened.
This problem can occurs on any environment for example Linux or windows or even on Docker containers.
This is reproducible on Data Center: (yes)
Steps to Reproduce
1. The first step before redeployment of any agent is to shutdown that particular agent, Bamboo will take around ~10 minutes before marking that agent as offline till that time it is counted as Online and available agent based on default configurations.
2. During this period until the agent is not offline and if you'll try to do a redeployment and assuming you don't have a free license available, you'll not be able to deploy and you'll get error related to license not available.
3. Post the agent goes offline, the license for this agent becomes available and you'll be able to redeploy the same agent again.
Expected Results
The expectation is that when we redeploy an agent it should not create a new agent with name of (1) or (2) appended, for example if the agent name was testagent post redeployment it should be testagent
Actual Results
When we do redeployment Bamboo will create a new agent with name of (1) or (2) appended depending upon how many times this has been redeployed before.
This is because with each deployment Bamboo will create a new entry in the queue table.
Workaround
The Workaround is to first delete the existing agent and then redeploy using the same <bamboo-agent-home> path.