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

OCPBUGS-48089: validate hostPrefix to be the same when multiple clusternetwork CIDRs are present #9398

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

Conversation

tthvo
Copy link
Contributor

@tthvo tthvo commented Jan 24, 2025

Description

When multiple clusternetwork CIDRs are present, hostPrefix fields must be specified with the same value. If not, it can impact traffic between pods in different subnets.

The patch applies validation for IPv4 CIDR. For IPv6, the only option for hostPrefix is 64, thus naturally satisfying the requirement.

Other related changes:

  • Only validate for negative host prefix when the prefix is actually used.
  • Added a test case for negative host prefix.

References

tthvo added 2 commits January 23, 2025 20:08
clusternetwork CIDRs are present

When multiple clusternetwork CIDRs are present, hostPrefix fields must
be specified with the same value. If not, it can impact traffic between
pods in different subnets.

The patch applies validation for IPv4 CIDR. For IPv6, the only option
for hostPrefix is 64, thus naturally satisfying the requirement.

References:

[0] https://issues.redhat.com/browse/OCPBUGS-46514 (debug steps and explanation for root cause)
[1] https://access.redhat.com/solutions/7100460 (temporary solution for existing cluster)
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important 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 Jan 24, 2025
@openshift-ci-robot
Copy link
Contributor

@tthvo: This pull request references Jira Issue OCPBUGS-48089, which is invalid:

  • expected the bug to target the "4.19.0" version, but no target version was set

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:

Description

When multiple clusternetwork CIDRs are present, hostPrefix fields must be specified with the same value. If not, it can impact traffic between pods in different subnets.

The patch applies validation for IPv4 CIDR. For IPv6, the only option for hostPrefix is 64, thus naturally satisfying the requirement.

Other related changes:

  • Only validate for negative host prefix when the prefix is actually used.
  • Added a test case for negative host prefix.

References

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 review from andfasano and jhixson74 January 24, 2025 04:10
@tthvo
Copy link
Contributor Author

tthvo commented Jan 24, 2025

/cc @patrickdillon @cpassare

Copy link
Contributor

openshift-ci bot commented Jan 24, 2025

@tthvo: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-e2e-aws-ovn 8c9b001 link false /test okd-scos-e2e-aws-ovn
ci/prow/e2e-vsphere-static-ovn 8c9b001 link false /test e2e-vsphere-static-ovn
ci/prow/e2e-vsphere-host-groups-ovn-custom-no-upgrade 8c9b001 link false /test e2e-vsphere-host-groups-ovn-custom-no-upgrade
ci/prow/e2e-vsphere-ovn-multi-network 8c9b001 link false /test e2e-vsphere-ovn-multi-network

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.

@patrickdillon
Copy link
Contributor

/approve

This LGTM but will give @cpassare a chance to take a pass

Copy link
Contributor

openshift-ci bot commented Jan 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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 Jan 24, 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/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants