Skip to content

OCPBUGS-34194: Modify api description for join, transit and masquerade subnets #2320

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arghosh93
Copy link

@arghosh93 arghosh93 commented May 14, 2025

Join and transit switch subnets can be configured at day 2 now and this commit is to modify api description for InternalJoinSubnet and InternalTransitSwitchSubnet to reflect recent changes.

Default masquerade subnet has also been changed recently and modifying api description to reflect recent changes.

Task which introduced the capability to change Transit and join subnet at day 2: https://issues.redhat.com/browse/CORENET-4604
This changes have been backported till 4.14.

Task which introduced capability to change masquerade subnet at day 2 : https://issues.redhat.com/browse/CORENET-4999
This is supported from 4.17 onward

Copy link
Contributor

openshift-ci bot commented May 14, 2025

Hello @arghosh93! Some important instructions when contributing to openshift/api:
API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 14, 2025
@openshift-ci openshift-ci bot requested review from everettraven and JoelSpeed May 14, 2025 06:14
@arghosh93 arghosh93 changed the title Modify api description for join, transit and masquerade subnets OCPBUGS-34194: Modify api description for join, transit and masquerade subnets May 14, 2025
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels May 14, 2025
@openshift-ci-robot
Copy link

@arghosh93: This pull request references Jira Issue OCPBUGS-34194, which is invalid:

  • expected the bug to target either version "4.20." or "openshift-4.20.", but it targets "4.18" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Join and transit switch subnets can be configured at day 2 now and this commit is to modify api description for InternalJoinSubnet and InternalTransitSwitchSubnet to reflect recent changes.

Default masquerade subnet has also been changed recently and modifying api description to reflect recent changes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@@ -646,7 +646,7 @@ type IPv4GatewayConfig struct {
// OVN-Kubernetes as well as other networks used on the host. Additionally the subnet must
// be large enough to accommodate 6 IPs (maximum prefix length /29).
// When omitted, this means no opinion and the platform is left to choose a reasonable default which is subject to change over time.
// The current default subnet is 169.254.169.0/29
// The current default subnet is 169.254.0.0/17
Copy link
Contributor

Choose a reason for hiding this comment

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

wait a sec, did we change it on the API level?
Did we do it such that older clusters continue to have /29 as default but new ones would have /17? can you please jog my memory with that CNO PR that explained this?

Copy link
Author

Choose a reason for hiding this comment

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

CNO does not change masquerade subnet for clusters which are being upgraded. New 4.17 clusters gets new default subnet. If UDN must be used in upgraded cluster then masquerade subnet must be changed at day 2.
openshift/cluster-network-operator@64ce003

@tssurya
Copy link
Contributor

tssurya commented May 14, 2025

Join and transit switch subnets can be configured at day 2 now and this commit is to modify api description for InternalJoinSubnet and InternalTransitSwitchSubnet to reflect recent changes.

Default masquerade subnet has also been changed recently and modifying api description to reflect recent changes.

can you also provide link to the JIRA epics in the PR description for history of when this change was performed and how far we need to backport this?

arghosh93 added 2 commits May 14, 2025 17:27
Join and transit switch subnets can be configured at day 2 now and
this commit is to modify api description for InternalJoinSubnet and
InternalTransitSwitchSubnet to reflect recent changes.

Signed-off-by: Arnab Ghosh <[email protected]>
Default masquerade subnet has been changed recently and modifying
api description to reflect recent changes.

Signed-off-by: Arnab Ghosh <[email protected]>
@arghosh93 arghosh93 force-pushed the OCPBUGS-34194-new branch from 390cd55 to 6e35e96 Compare May 14, 2025 12:10
@arghosh93
Copy link
Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels May 14, 2025
@openshift-ci-robot
Copy link

@arghosh93: This pull request references Jira Issue OCPBUGS-34194, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.0) matches configured target version for branch (4.20.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @anuragthehatter

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from anuragthehatter May 14, 2025 12:33
Copy link
Contributor

openshift-ci bot commented May 14, 2025

@arghosh93: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@JoelSpeed
Copy link
Contributor

/approve

This is fine but needs networking to clarify the changed subnets

/assign @tssurya

Copy link
Contributor

openshift-ci bot commented May 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arghosh93, JoelSpeed

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants