Skip to content

omdb: Fix component details error in 'mgs sensors'#10190

Merged
wfchandler merged 1 commit intomainfrom
wc/omdb-mgs-sensor-fix
Mar 31, 2026
Merged

omdb: Fix component details error in 'mgs sensors'#10190
wfchandler merged 1 commit intomainfrom
wc/omdb-mgs-sensor-fix

Conversation

@wfchandler
Copy link
Copy Markdown
Contributor

In #9354, we added component details types that don't support being converted into a measurement. As a result, omdb mgs sensors will fail to load any data, instead printing this for each sled:

failed to read devices for SpIdentifier { slot: 2, type_: Sled }:
Error Response: status: 400 Bad Request; value:
  Error {
    error_code: None,
    message: "requested component details are not yet supported: unsupported component details: last post code: LastPostCode(3993043480)"
  }

Add an error code to UnsupportedComponentDetails so clients can reliably identify these failures, and filter them out in the sensors subcommand.

In ac4ec36 (Update `gateway-messages` and bundled `faux-mgs` (#9354),
2025-11-06), we added component details types that don't support being
converted into a measurement. As a result, `omdb mgs sensors` will fail
to load any data, instead printing this for each sled:

 failed to read devices for SpIdentifier { slot: 2, type_: Sled }: Error
 Response: status: 400 Bad Request; value: Error { error_code: None,
 message: "requested component details are not yet supported:
 unsupported component details: last post code:
 LastPostCode(3993043480)" }

Add an error code to `UnsupportedComponentDetails` so clients can
reliably identify these failures, and filter them out in the `sensors`
subcommand.
@wfchandler wfchandler marked this pull request as ready for review March 30, 2026 20:54
@wfchandler wfchandler requested a review from jgallagher March 30, 2026 20:54
Copy link
Copy Markdown
Contributor

@jgallagher jgallagher left a comment

Choose a reason for hiding this comment

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

Thanks, nice workaround.

Do you mind filing an issue that we should update SpComponentDetails to account for the new types (pending either a fix for #9708 or conditional on pinning sled-agent to MGS API 1.0.0)?

@wfchandler
Copy link
Copy Markdown
Contributor Author

Thanks, nice workaround.

Do you mind filing an issue that we should update SpComponentDetails to account for the new types (pending either a fix for #9708 or conditional on pinning sled-agent to MGS API 1.0.0)?

Thanks, opened #10196

@wfchandler wfchandler merged commit 7f56610 into main Mar 31, 2026
16 checks passed
@wfchandler wfchandler deleted the wc/omdb-mgs-sensor-fix branch March 31, 2026 13:50
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