Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-25743

Build Project agent dedication is not unassigned when the build project is DELETED

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 10.0.0, 9.5.4, 9.6.2, 9.2.14
    • 9.2.1, 8.2.9
    • Agents
    • None

    Description

      When a Build Project is deleted in Bamboo and the build project is dedicated to an agent, the agent remains in dedicated state and does not get unassigned. This prevents the agent not able to take up any more build or deployment jobs.

      The issue happens only with build project dedication.

      NOTE: Dedication set for build plans, build jobs, deployment projects and deployment environment are not impacted where the agent dedication is unassigned when the above resources are deleted in bamboo instance.

      Steps to Reproduce:

      1. Create a build project in bamboo.
      2. Dedicate the build project to an agent.
      3. Delete the build project.
      4. The agent remains dedicated state.

      In the database, the assignment entry does not get removed from the 'agent_assignment' table. However, the 'project_id' it refers to in the 'project' table is removed.

      In the agent audit logs we do not see any 'unassigned' event which can be seen in similar scenario with build jobs, build plans, deployment environment and deployment projects. Navigate to Bamboo Administration > Agents > select the problematic agent > click on Audit logs.

      Expectation:

      The assignment entry should be removed from the 'agent_assignment' table once the dedicated project is deleted in bamboo.

      Workaround:

      Delete the agent and create a new agent.

      OR

      Delete the entry from the 'agent_assignment' table.

      Attachments

        Issue Links

          Activity

            People

              851f15845f55 Mateusz Szmal
              51ca760b6006 Ayrijit Swain
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: