fix(helm): add backstop livenessProbe to DHCP config-sync sidecar#65
Merged
Conversation
Adds a conservative livenessProbe to the config-sync-v4 container in deploy/helm/templates/dhcp.yaml so kubelet can recycle the sidecar if the in-loop KEA divergence check ever wedges (asyncio loop stalls or the kea control socket stays unresponsive). On restart the container re-runs the unconditional "Run once" set_config() and heals the deadlock. Thresholds are intentionally looser than the other probes (failureThreshold * periodSeconds = 300s) so the in-loop recovery wins under normal conditions and we only recycle when the loop itself is broken. Split out of #23 so this low-risk, Helm-only safety net can ship now while the KEA bootstrap-drift detection/re-apply application logic waits for QA. Signed-off-by: Davesh Mathur <daveshm@nvidia.com>
📝 WalkthroughWalkthroughAdds an HTTP liveness probe to the ChangesDHCP config-sync backstop probe
🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
7 tasks
ryanheffernan
approved these changes
Jun 25, 2026
spidercensus
pushed a commit
that referenced
this pull request
Jun 25, 2026
Adds a conservative livenessProbe to the config-sync-v4 container in deploy/helm/templates/dhcp.yaml so kubelet can recycle the sidecar if the in-loop KEA divergence check ever wedges (asyncio loop stalls or the kea control socket stays unresponsive). On restart the container re-runs the unconditional "Run once" set_config() and heals the deadlock. Thresholds are intentionally looser than the other probes (failureThreshold * periodSeconds = 300s) so the in-loop recovery wins under normal conditions and we only recycle when the loop itself is broken. Split out of #23 so this low-risk, Helm-only safety net can ship now while the KEA bootstrap-drift detection/re-apply application logic waits for QA. Signed-off-by: Davesh Mathur <daveshm@nvidia.com>
dmathur0
added a commit
that referenced
this pull request
Jun 26, 2026
The config-sync-v4 backstop livenessProbe was split out of this PR and merged to main independently in #65. Remove it here so this branch carries only the KEA bootstrap-drift detection / re-apply application logic (and tests), which is being held for QA, and the two changes no longer overlap. Signed-off-by: Davesh Mathur <daveshm@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Split out of #23 so this low-risk, Helm-only change can ship independently while the KEA bootstrap-drift detection/re-apply application logic in #23 waits for QA.
Adds a conservative backstop
livenessProbeto theconfig-sync-v4container indeploy/helm/templates/dhcp.yaml. If the in-loop KEA divergence check ever wedges (asyncio loop stalls, or the kea control socket stays unresponsive long enough thatget_config()keeps raising), kubelet recycles the sidecar. On restart the container re-runs the unconditional "Run once"set_config()and heals the deadlock — even if the in-loop check itself is broken./healthcheckon port9090) in the same pod/network namespace, matching the pattern used by the kea container's probe.failureThreshold * periodSeconds = 300sof failure) so the in-loop recovery (~10s) wins under normal conditions and we only recycle the sidecar when the loop itself is the problem.This contains no application code — it's purely the Kubernetes safety net, so it carries minimal risk and does not need to wait on QA of the drift-recovery logic.
Validation
helm template test . --values values-ci.yamlrenders cleanly with the new probe on the config-sync container.https://github.com/NVIDIA/nv-config-manager/actions/runs/28194950934/job/83519142880
Checklist
CONTRIBUTING.md.Summary by CodeRabbit