Skip to content

Setup - AAP - CAC fails if rulebook activation already exists #159

@ericcames

Description

@ericcames

Summary

The Setup - AAP - CAC job fails when a rulebook activation is already running. The job attempts to create the activation without first checking if it exists, causing a conflict error.

Steps to Reproduce

  1. Bootstrap a fresh AAP instance
  2. Run Setup - AAP - CAC successfully
  3. Run Setup - AAP - CAC again (or on an instance where activations are already running)
  4. Job fails at the rulebook activation step

Expected Behavior

If a rulebook activation already exists and is running, the job should skip creation and continue.

Proposed Fix

Add a pre-check before creating each rulebook activation:

  • Query the EDA API to see if an activation with that name already exists
  • If it exists (and is in a running/healthy state), skip creation
  • If it exists but is in a failed/stopped state, recreate it

Affected Files

Likely in the CaC vars that define eda_activations or the role responsible for EDA activation management.

Workaround

Manually stop all rulebook activations in the AAP UI before re-running Setup - AAP - CAC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions