-
Notifications
You must be signed in to change notification settings - Fork 114
Add internalapi routes for scenario A adoption #995
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,8 +120,19 @@ if [ -n "$IPV4_ENABLED" ]; then | |
| cat >> ${DEPLOY_DIR}/internalapi.yaml <<EOF_CAT | ||
| "range": "${INTERNALAPI_PREFIX}.0/24", | ||
| "range_start": "${INTERNALAPI_PREFIX}.30", | ||
| "range_end": "${INTERNALAPI_PREFIX}.70" | ||
| "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. | ||
| if [ -n "$NETATT_INTERNALAPI_HOST_ROUTES" ]; then | ||
| cat >> ${DEPLOY_DIR}/internalapi.yaml <<EOF_CAT | ||
| "routes": [ | ||
| { | ||
| "dst": "${NETATT_INTERNALAPI_HOST_ROUTES}" | ||
| } | ||
| ] | ||
| EOF_CAT | ||
| fi | ||
| elif [ -n "$IPV6_ENABLED" ]; then | ||
| cat >> ${DEPLOY_DIR}/internalapi.yaml <<EOF_CAT | ||
| "range": "fd00:bbbb::/64", | ||
|
|
@@ -188,8 +199,19 @@ if [ -n "$IPV4_ENABLED" ]; then | |
| cat >> ${DEPLOY_DIR}/tenant.yaml <<EOF_CAT | ||
| "range": "${TENANT_PREFIX}.0/24", | ||
| "range_start": "${TENANT_PREFIX}.30", | ||
| "range_end": "${TENANT_PREFIX}.70" | ||
| "range_end": "${TENANT_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. | ||
| if [ -n "$NETATT_TENANT_HOST_ROUTES" ]; then | ||
| cat >> ${DEPLOY_DIR}/tenant.yaml <<EOF_CAT | ||
| "routes": [ | ||
| { | ||
| "dst": "${NETATT_TENANT_HOST_ROUTES}" | ||
| } | ||
| ] | ||
| EOF_CAT | ||
| fi | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about storage and storage_mgmt networks?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As per discussion a while back on nova channel, it is not possible to modify this two networks during dataplane adoption
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The route in net-attach is generic, not specific to adoption, just needed for adoption case. so having it generic for all involved network is good.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CI fails as malformed json is generated, i think that could be handled by always adding the empty routes section, and when overrides are provided add to the routes section ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found out why json was malformated, handled already. |
||
| elif [ -n "$IPV6_ENABLED" ]; then | ||
| cat >> ${DEPLOY_DIR}/tenant.yaml <<EOF_CAT | ||
| "range": "fd00:dddd::/64", | ||
|
|
||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?