OCPBUGS-76964: HyperShift: relax ovnkube-control-plane zone anti-affinity#2909
OCPBUGS-76964: HyperShift: relax ovnkube-control-plane zone anti-affinity#2909ricky-rav wants to merge 1 commit intoopenshift:masterfrom
Conversation
The required zone in the anti-affinity section on the managed ovnkube-control-plane deployment can prevent scheduling when the management cluster has one zone only. Replace it with a hard hostname anti-affinity (guaranteeing that two replicas land on different nodes) and a soft zone anti-affinity (preferring different zones when possible). Signed-off-by: Riccardo Ravaioli <rravaiol@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 WalkthroughModifies the ovnkube-control-plane pod anti-affinity configuration, replacing zone-based hard anti-affinity with hostname-based hard anti-affinity while reintroducing zone-based anti-affinity as a soft preference. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ricky-rav The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@ricky-rav: This pull request references Jira Issue OCPBUGS-76964, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (yli2@redhat.com), skipping review request. The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
/retest-required |
|
@ricky-rav: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
The required zone (
topology.kubernetes.io/zone) in the anti-affinity section on the managed ovnkube-control-plane deployment can prevent scheduling when the management cluster has one zone only.Replace it with:
The hard requirement comes from the way we ran OVNK on hypershift until 4.13, that is with ovnkube-master running as a stateful set, where each pod had its own OVNDB and we probably wanted to spread DBs across different zones in order to avoid problems related to RAFT quorum when a zone went down.
cluster-network-operator/bindata/network/ovn-kubernetes/managed/ovnkube-master.yaml
Lines 83 to 88 in 5104647