Skip to content

feat(provisioning): add /set-error HTTP endpoint to hostagent#63

Open
tsorya wants to merge 1 commit into
NVIDIA:public-mainfrom
tsorya:feat/set-error-api
Open

feat(provisioning): add /set-error HTTP endpoint to hostagent#63
tsorya wants to merge 1 commit into
NVIDIA:public-mainfrom
tsorya:feat/set-error-api

Conversation

@tsorya

@tsorya tsorya commented Jul 2, 2026

Copy link
Copy Markdown

Summary

  • Add a new POST /set-error HTTP endpoint on the hostagent InstallationService that transitions a DPU into the Error phase with a DPUCondError condition.
  • The endpoint validates DPU UID to prevent stale updates, following the same pattern as /trigger-reboot.
  • Enables the DPU agent to signal unrecoverable failures through the hostagent service.

Test plan

  • Unit tests added (happy path, UID mismatch 409, not found 404, malformed 400)
  • Manual test: curl /set-error from hostagent pod, verify DPU phase transitions to Error

Made with Cursor

Allow the DPU agent to transition a DPU into the Error phase by calling
the hostagent's new POST /set-error endpoint with a reason and message.
The handler validates the DPU UID, sets status.phase=Error, and adds a
DPUCondError condition via status patch.

Signed-off-by: Igal Tsoiref <itsoiref@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant