Skip to content

fix: support AAP 2.7 gateway route consolidation in aap_ocp_install - #381

Open
stevefulme1 wants to merge 2 commits into
redhat-cop:develfrom
stevefulme1:fix/aap-27-gateway-route-consolidation
Open

fix: support AAP 2.7 gateway route consolidation in aap_ocp_install#381
stevefulme1 wants to merge 2 commits into
redhat-cop:develfrom
stevefulme1:fix/aap-27-gateway-route-consolidation

Conversation

@stevefulme1

@stevefulme1 stevefulme1 commented Aug 20, 2026

Copy link
Copy Markdown

Summary

AAP 2.7 consolidates all component routes (controller, EDA, hub) behind a single gateway route, removing the per-component OpenShift routes that prior versions exposed. This caused the aap_ocp_install role to fail waiting for routes that no longer exist.

Changes

  • Gateway detection: probe /api/ after platform route is available; detect AAP gateway via x_api_product_name header or apis.gateway in the JSON response
  • Pre-2.7 path (unchanged behavior): look up per-component routes (-controller, -eda, -hub) as before
  • 2.7+ gateway path: derive all component routes from the single platform gateway route
  • API availability checks: use gateway-prefixed paths (/api/controller/, /api/eda/) when in gateway mode; skip migrations_notran redirect check (not applicable to gateway)

Backward compatibility

Fully backward compatible. Pre-2.7 deployments follow the existing per-component route lookup path. Gateway detection only activates for 2.7+.

Closes #379

Test plan

  • Tested against AAP 2.5 operator (pre-gateway) — per-component routes resolved as before
  • Tested against AAP 2.7 operator (gateway mode) — gateway detected, component routes derived from platform route, API checks pass

AAP 2.7 consolidates all component routes behind a single gateway
route, removing the per-component routes (controller, eda, hub) that
prior versions exposed. This caused the aap_ocp_install role to fail
waiting for routes that no longer exist.

Add gateway detection by probing /api/ for the AAP gateway signature,
then branch route handling:
- Pre-2.7: look up per-component routes as before
- 2.7+: derive component routes from the gateway route

Adjust API availability checks to use gateway-prefixed paths
(/api/controller/, /api/eda/) when in gateway mode and skip the
migrations_notran redirect check which does not apply to gateway.

Closes redhat-cop#379

@branic branic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevefulme1 This PR looks good, but needs a changelog fragment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to use aap_ocp_install role with AAP 2.7 due to route consolidation

2 participants