feat(dpuagent): write done marker file after all operations complete#53
Open
tsorya wants to merge 1 commit into
Open
feat(dpuagent): write done marker file after all operations complete#53tsorya wants to merge 1 commit into
tsorya wants to merge 1 commit into
Conversation
In OCP, we need to create a systemd dependency between the dpu-agent and kubelet so that kubelet only starts after the dpu-agent finishes all its configuration tasks. To enable this cleanly in systemd, the dpu-agent now writes a marker file at /run/dpu-agent/configuration-complete once all operations have completed successfully. Other systemd units can use a PathExists= or ConditionPathExists= directive on this file to gate their startup on the dpu-agent being done. The marker is written to /run (tmpfs), so it is automatically cleared on reboot. It is written before the final status update to avoid blocking on a potentially long-running status push. Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
/run/dpu-agent/configuration-completeonce all operations have completed successfully.ConditionPathExists=orPathExists=to cleanly gate their startup on dpu-agent completion./run(tmpfs), so it is automatically cleared on reboot. It is written before the final status update to avoid blocking on a potentially long-running status push.Test plan