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-12739: Use NonVirtualIP as a hint for selecting Peers #256

Merged
merged 1 commit into from Jun 6, 2023

Conversation

mkowalski
Copy link
Contributor

This PR extends the logic of using OVN annotations for selecting keepalived peers. With this change we will at first try to use local Node IP if available and only afterwards run the full heuristic that uses OVN annotations.

By using GetVRRPConfig() for generating both NonVirtualIP and entry in IngressConfig.Peers list we should guarantee that participateInIngressVRPP evaluates correctly even if node has multiple IP addresses in the same subnet.

Contributes-to: OCPBUGS-12739

This PR extends the logic of using OVN annotations for selecting
keepalived peers. With this change we will at first try to use local
Node IP if available and only afterwards run the full heuristic that
uses OVN annotations.

By using `GetVRRPConfig()` for generating both NonVirtualIP and entry in
`IngressConfig.Peers` list we should guarantee that
`participateInIngressVRPP` evaluates correctly even if node has multiple
IP addresses in the same subnet.

Contributes-to: OCPBUGS-12739
@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/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jun 6, 2023
@openshift-ci-robot
Copy link
Contributor

@mkowalski: This pull request references Jira Issue OCPBUGS-12739, which is valid. The bug has been moved to the POST state.

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

Requesting review from QA contact:
/cc @rbbratta

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

In response to this:

This PR extends the logic of using OVN annotations for selecting keepalived peers. With this change we will at first try to use local Node IP if available and only afterwards run the full heuristic that uses OVN annotations.

By using GetVRRPConfig() for generating both NonVirtualIP and entry in IngressConfig.Peers list we should guarantee that participateInIngressVRPP evaluates correctly even if node has multiple IP addresses in the same subnet.

Contributes-to: OCPBUGS-12739

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/test-infra repository.

@mkowalski
Copy link
Contributor Author

/cc @cybertron
/test all

@openshift-ci openshift-ci bot requested review from rbbratta and cybertron June 6, 2023 10:01
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 6, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 6, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 6, 2023
@mkowalski mkowalski marked this pull request as ready for review June 6, 2023 10:07
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 6, 2023
@openshift-ci openshift-ci bot requested a review from dougsland June 6, 2023 10:08
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 6, 2023

@mkowalski: 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/test-infra repository. I understand the commands that are listed here.

@cybertron
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 6, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cybertron, mkowalski

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:
  • OWNERS [cybertron,mkowalski]

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

@openshift-merge-robot openshift-merge-robot merged commit f5e0428 into openshift:master Jun 6, 2023
7 checks passed
@openshift-ci-robot
Copy link
Contributor

@mkowalski: Jira Issue OCPBUGS-12739: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-12739 has been moved to the MODIFIED state.

In response to this:

This PR extends the logic of using OVN annotations for selecting keepalived peers. With this change we will at first try to use local Node IP if available and only afterwards run the full heuristic that uses OVN annotations.

By using GetVRRPConfig() for generating both NonVirtualIP and entry in IngressConfig.Peers list we should guarantee that participateInIngressVRPP evaluates correctly even if node has multiple IP addresses in the same subnet.

Contributes-to: OCPBUGS-12739

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/test-infra repository.

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-important Referenced Jira bug's severity is important 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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants