oxidecomputer / oxidecomputer/omicron

FM: design for collecting ereports from the host through sled-agent

Open
#10,163 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fault-management nexus Sled Agent
Dominant language
Rust
Stars
572
Forks
97
Avg merge
2d 12h
Merged PRs (30d)
96

Description

We'll have to figure this out eventually.

Some questions on my mind:

  • Do we do this by just having sled-agent shell out to fmdump -ej or whatever makes it list ereports and format the NVLists as JSON? Or do we want to have proper Rust bindings for the FMA C libraries?
  • I suspect that the host is a lot better at spewing out a giant pile of identical ereports than Hubris, so we may actually want to worry about deduplication/debouncing a bit more here...
  • Can we reuse the sled UUID as the restart ID? That would make stuff easier. Figure out whether this is practical.
    • Note that unlike in Hubris, all this stuff is getting written to disk, so we don't inherently lose data on a sled-agent restart; the restart ID may not need to be tied to the lifetime of a single sled-agent process. Figure out where the restart boundary actually is and where data loss occurs on the host side.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start at the sled-agent entry point and trace host-side ereport collection and persistence, then resolve the fmdump versus Rust-bindings, deduplication, and restart-boundary questions; done means a chosen design covering collection, deduplication, restart IDs, and data-loss behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.