Skip to content

[10/n] [sled-agent/wicketd] a few error handling fixes#10854

Merged
sunshowers merged 3 commits into
mainfrom
sunshowers/spr/10n-sled-agentwicketd-a-few-error-handling-fixes
Jul 17, 2026
Merged

[10/n] [sled-agent/wicketd] a few error handling fixes#10854
sunshowers merged 3 commits into
mainfrom
sunshowers/spr/10n-sled-agentwicketd-a-few-error-handling-fixes

Conversation

@sunshowers

@sunshowers sunshowers commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

RFD 710 gives us the opportunity to have a fresh look at some of the error handling. Make a few fixes that all flow into the commissioning API:

  • RSS setup errors are now all mapped to 409 Conflict. This is somewhat more correct than 400 since each of them represents a logical conflict. They also return an error code.
  • HTTP errors returned by the bootstrap agent are passed through to clients.
  • ba_lockstep_client now returns a 503 if we don't yet know the IP.
  • Also fix the "wicketd does not know its own baseboard details" error message.

Depends on:

Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
//
// The Progenitor alternate formatter is slightly better than
// InlineErrorChain here, because the latter would double-print the
// first cause due to the way Progenitor's error display works.

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.

Is this a (minor, common, annoying to fix because if we do consumers that don't print the chain will start getting less information) bug in progenitor's error display impl?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think it is. InlineErrorChain should always do the correct thing.

@sunshowers
sunshowers changed the base branch from sunshowers/spr/main.10n-sled-agentwicketd-a-few-error-handling-fixes to main July 17, 2026 18:42
Created using spr 1.3.6-beta.1
@sunshowers
sunshowers enabled auto-merge (squash) July 17, 2026 18:43
@sunshowers
sunshowers merged commit 44255d6 into main Jul 17, 2026
19 checks passed
@sunshowers
sunshowers deleted the sunshowers/spr/10n-sled-agentwicketd-a-few-error-handling-fixes branch July 17, 2026 19:57
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.

2 participants