Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add internalapi routes for scenario A adoption #995

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

averdagu
Copy link
Contributor

@averdagu averdagu commented Jan 8, 2025

Doing data-plane adoption while testing scenario A (different subnets between wallaby and next-gen) will result in connectivity problem since pods will try to reach old CP using default route (since both CP are on different subnets) and won't be able to reach it.

Adding this route in internalapi to support data-plane adoption scenario A gates.

@openshift-ci openshift-ci bot requested review from fao89 and viroel January 8, 2025 13:50
Copy link
Contributor

openshift-ci bot commented Jan 8, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: averdagu
Once this PR has been reviewed and has the lgtm label, please assign fao89 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@averdagu averdagu requested review from karelyatin and removed request for viroel and fao89 January 8, 2025 13:50
@@ -122,6 +122,18 @@ if [ -n "$IPV4_ENABLED" ]; then
"range_start": "${INTERNALAPI_PREFIX}.30",
"range_end": "${INTERNALAPI_PREFIX}.70"
EOF_CAT
# In the data-plane adoption scenario A (where different IP subnet ranges
# between next-gen and wallaby are used) the net-attach-def needs additional routes.
Copy link
Contributor

Choose a reason for hiding this comment

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

we should allow generic routes to be specified set with parameters, by default non will be set and by exporting env vars those could be set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, implementing it now

Copy link
Contributor

Choose a reason for hiding this comment

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

wanted to have this generic for all the networks not just internalapi
Also can't we reuse other existing vars *_HOST_ROUTES instead of creating similar var?

@averdagu averdagu force-pushed the feat/scenario-a-routes branch from de45bd5 to 21a840e Compare January 8, 2025 15:19
Doing data-plane adoption while testing scenario A (different
subnets between wallaby and next-gen) will result in connectivity
problem since pods will try to reach old CP using default route
(since both CP are on different subnets) and won't be able to reach it.

Adding this route in internalapi to support data-plane
adoption scenario A gates.

Currently only one route can be added, if needed logic can be improved
to include more than one route.

Ref: OSPRH-5602
@averdagu averdagu force-pushed the feat/scenario-a-routes branch from 21a840e to bbf87f3 Compare January 14, 2025 13:18
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.

2 participants