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

"No agents meet this job's requirements." after deleting dedicated agent

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • None
    • 5.8.1
    • Agents

      Repro Steps
      1. Create a build job for a build plan.
      2. Add a local agent.
      3. Dedicate the agent to perform the build job.
      4. Delete the agent.

      Expected outcome
      The build job will revert back to using any agent to run the task provided it's requirements are met.

      Actual outcome
      The build job says "No agents meet this job's requirements."

      Work around
      I can either:

      • Clone the job and delete the old one.
      • Shutdown Bamboo, backup the Bamboo database and use the below SQL to remove orphaned assignments:
        delete from agent_assignment where executor_id not in (select queue_id from queue) and executor_type='AGENT';

            [BAM-15965] "No agents meet this job's requirements." after deleting dedicated agent

            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 244619 ]
            Jeremy Owen made changes -
            Link Original: This issue was cloned as BAM-20941 [ BAM-20941 ]
            Debasish (Inactive) made changes -
            Link New: This issue was cloned as BAM-20941 [ BAM-20941 ]
            Foong (Inactive) made changes -
            Description Original: *Repro Steps*
             1. Create a build job for a build plan.
             2. Add a local agent.
             3. Dedicate the agent to perform the build job.
             4. Delete the agent.

            *Expected outcome*
             The build job will revert back to using any agent to run the task provided it's requirements are met.

            *Actual outcome*
             The build job says "No agents meet this job's requirements."

            *Work around*
             I can either:
             * Create a dummy agent (repeat 2 + 3) and then un-dedicate the agent from the job before deleting it (4).
             * Clone the job and delete the old one.
             * Shutdown Bamboo, *backup the Bamboo database* and use the below SQL to remove orphaned assignments:
            {code}delete from agent_assignment where executor_id not in (select queue_id from queue) and executor_type='AGENT';{code}
            New: *Repro Steps*
             1. Create a build job for a build plan.
             2. Add a local agent.
             3. Dedicate the agent to perform the build job.
             4. Delete the agent.

            *Expected outcome*
             The build job will revert back to using any agent to run the task provided it's requirements are met.

            *Actual outcome*
             The build job says "No agents meet this job's requirements."

            *Work around*
             I can either:
             * Clone the job and delete the old one.
             * Shutdown Bamboo, *backup the Bamboo database* and use the below SQL to remove orphaned assignments:
            {code}delete from agent_assignment where executor_id not in (select queue_id from queue) and executor_type='AGENT';{code}
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1443432 ] New: JAC Bug Workflow v3 [ 3383861 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Jeremy Owen made changes -
            Description Original: *Repro Steps*
             1. Create a build job for a build plan.
             2. Add a local agent.
             3. Dedicate the agent to perform the build job.
             4. Delete the agent.

            *Expected outcome*
             The build job will revert back to using any agent to run the task provided it's requirements are met.

            *Actual outcome*
             The build job says "No agents meet this job's requirements."

            *Work around*
             I can either:
             * Create a dummy agent (repeat 2 + 3) and then un-dedicate the agent from the job before deleting it (4).
             * Clone the job and delete the old one.
             * First backup the Bamboo database and remove orphaned agent assignments with the following query:
            {code}delete from agent_assignment where executor_id not in (select queue_id from queue) and executor_type='AGENT';{code}
            New: *Repro Steps*
             1. Create a build job for a build plan.
             2. Add a local agent.
             3. Dedicate the agent to perform the build job.
             4. Delete the agent.

            *Expected outcome*
             The build job will revert back to using any agent to run the task provided it's requirements are met.

            *Actual outcome*
             The build job says "No agents meet this job's requirements."

            *Work around*
             I can either:
             * Create a dummy agent (repeat 2 + 3) and then un-dedicate the agent from the job before deleting it (4).
             * Clone the job and delete the old one.
             * Shutdown Bamboo, *backup the Bamboo database* and use the below SQL to remove orphaned assignments:
            {code}delete from agent_assignment where executor_id not in (select queue_id from queue) and executor_type='AGENT';{code}
            Jeremy Owen made changes -
            Description Original: *Repro Steps*
             1. Create a build job for a build plan.
             2. Add a local agent.
             3. Dedicate the agent to perform the build job.
             4. Delete the agent.

            *Expected outcome*
             The build job will revert back to using any agent to run the task provided it's requirements are met.

            *Actual outcome*
             The build job says "No agents meet this job's requirements."

            *Work around*
             I can either:
             * Create a dummy agent (repeat 2 + 3) and then un-dedicate the agent from the job before deleting it (4).
             * Clone the job and delete the old one.
             * Remove orphaned agent assignments: {{delete from agent_assignment where executor_id not in (select queue_id from queue) and executor_type='AGENT';}}
            New: *Repro Steps*
             1. Create a build job for a build plan.
             2. Add a local agent.
             3. Dedicate the agent to perform the build job.
             4. Delete the agent.

            *Expected outcome*
             The build job will revert back to using any agent to run the task provided it's requirements are met.

            *Actual outcome*
             The build job says "No agents meet this job's requirements."

            *Work around*
             I can either:
             * Create a dummy agent (repeat 2 + 3) and then un-dedicate the agent from the job before deleting it (4).
             * Clone the job and delete the old one.
             * First backup the Bamboo database and remove orphaned agent assignments with the following query:
            {code}delete from agent_assignment where executor_id not in (select queue_id from queue) and executor_type='AGENT';{code}
            Daniel R made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 249958 ]
            Alexey Chystoprudov made changes -
            Resolution Original: Cannot Reproduce [ 5 ] New: Done [ 17 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

              achystoprudov Alexey Chystoprudov
              ac86c5436134 Derek Chow
              Affected customers:
              2 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: