Skip to content

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

Merged
openshift-merge-bot[bot] merged 2 commits into
openshift:release-4.22from
openshift-cherrypick-robot:cherry-pick-7052-to-release-4.22
Jul 16, 2026
Merged

[release-4.22] USHIFT-7267: fix conformance networking issues#7056
openshift-merge-bot[bot] merged 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
@ggiguash

Copy link
Copy Markdown
Contributor

/test all

@pacevedom

Copy link
Copy Markdown
Contributor

/retest

@pacevedom pacevedom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/label backport-risk-assessed
/label jira/valid-bug
/verified by CI

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jul 16, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@pacevedom: This PR has been marked as verified by CI.

Details

In response to this:

/lgtm
/label backport-risk-assessed
/label jira/valid-bug
/verified by CI

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 added backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. labels Jul 16, 2026
@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, pacevedom

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

The pull request process is described 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 16, 2026
@pacevedom

Copy link
Copy Markdown
Contributor

/retest

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 7e859e2 and 2 for PR HEAD 61f71d3 in total

@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: all tests passed!

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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit 2e1753f into openshift:release-4.22 Jul 16, 2026
16 checks passed
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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants