fix: support AAP 2.7 gateway route consolidation in aap_ocp_install - #381
Open
stevefulme1 wants to merge 2 commits into
Open
fix: support AAP 2.7 gateway route consolidation in aap_ocp_install#381stevefulme1 wants to merge 2 commits into
stevefulme1 wants to merge 2 commits into
Conversation
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
requested changes
Aug 21, 2026
branic
left a comment
Collaborator
There was a problem hiding this comment.
@stevefulme1 This PR looks good, but needs a changelog fragment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_installrole to fail waiting for routes that no longer exist.Changes
/api/after platform route is available; detect AAP gateway viax_api_product_nameheader orapis.gatewayin the JSON response-controller,-eda,-hub) as before/api/controller/,/api/eda/) when in gateway mode; skipmigrations_notranredirect 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