Skip to content

[release-4.22] USHIFT-7267: fix conformance networking issues#7056

Open
openshift-cherrypick-robot wants to merge 2 commits into
openshift:release-4.22from
openshift-cherrypick-robot:cherry-pick-7052-to-release-4.22
Open

[release-4.22] USHIFT-7267: fix conformance networking issues#7056
openshift-cherrypick-robot wants to merge 2 commits into
openshift:release-4.22from
openshift-cherrypick-robot:cherry-pick-7052-to-release-4.22

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #7052

/assign pacevedom

The upstream OVN-K binary removed the --nb-address/--sb-address flags,
changing the connection model from TCP to unix sockets. With TCP, each
connection attempt was fresh and a missing SBDB caused a clean retry.
With unix sockets on a shared hostPath, the socket file persists between
container restarts. If ovn-controller connects to a leftover socket from
a previous SBDB instance, it caches a stale raft commit index. When the
new SBDB starts fresh, ovn-controller sees the lower index as "stale
data" and enters an infinite reconnect loop, blocking all pod networking.

Fix this with a two-part approach:
- SBDB/NBDB containers remove stale sockets before starting ovsdb-server,
  which then creates fresh ones.
- ovn-controller waits for the fresh SBDB socket to appear before
  connecting, ensuring it never grabs a leftover socket.

Applied to both single-node and multi-node DaemonSets.
The northd container used template-rendered OVN_NB_DB_LIST and
OVN_SB_DB_LIST with the node IP baked into the DaemonSet spec.
In multinode, each node rendered the DaemonSet with its own IP,
causing spec changes on every reconcile and triggering rolling
updates that restarted the SBDB — the root cause of the stale
data issue.

Replace the baked-in template variables with the runtime env var
K8S_NODE_IP, which is resolved per-pod from status.hostIP. This
makes the DaemonSet spec identical regardless of which node renders
it, eliminating spurious rolling updates.

Remove the now-unused Controlplane field from MultiNodeConfig and
the OVN_NB_DB_LIST/OVN_SB_DB_LIST render parameters.
@openshift-ci-robot

openshift-ci-robot commented Jul 15, 2026

Copy link
Copy Markdown

@openshift-cherrypick-robot: Ignoring requests to cherry-pick non-bug issues: USHIFT-7267

Details

In response to this:

This is an automated cherry-pick of #7052

/assign pacevedom

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.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: fc980bd4-dd1e-4293-a4fb-375f901659fb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot requested review from copejon and eslutsky July 15, 2026 16:22
@openshift-ci

openshift-ci Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-cherrypick-robot
Once this PR has been reviewed and has the lgtm label, please ask for approval from pacevedom. For more information see the Code Review Process.

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

Details 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 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: 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/e2e-aws-tests 61f71d3 link true /test e2e-aws-tests
ci/prow/e2e-aws-tests-bootc-el9 61f71d3 link true /test e2e-aws-tests-bootc-el9
ci/prow/e2e-aws-tests-bootc-arm-el10 61f71d3 link true /test e2e-aws-tests-bootc-arm-el10
ci/prow/e2e-aws-tests-bootc-el10 61f71d3 link true /test e2e-aws-tests-bootc-el10
ci/prow/e2e-aws-tests-bootc-arm-el9 61f71d3 link true /test e2e-aws-tests-bootc-arm-el9
ci/prow/e2e-aws-tests-arm 61f71d3 link true /test e2e-aws-tests-arm

Full PR test history. Your PR dashboard.

Details

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.

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.

3 participants