Skip to content

Remove sled-agent API to read the current bootstore contents - #9928

Merged
jgallagher merged 3 commits into
mainfrom
john/remove-read-bootstore-cache
Feb 27, 2026
Merged

jgallagher merged 3 commits into
mainfrom
john/remove-read-bootstore-cache

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

The only caller of this API was the sync_switch_configuration Nexus background task, and it only called it to scrape out the ntp_servers. I believe nothing even uses ntp_servers, but removing that depends on #9801, which itself is made easier by removing this API. It's quite the pretzel. For now, the field is still there, and sync_switch_configuration reads the NTP servers from the current target blueprint instead.

This does mean we can no longer ask sled-agent for its bootstore contents in debugging situations, which I think we've done a few times. However, we can still get to it without too much pain IMO, since the contents are stored on disk:

jq '.blob | implode | fromjson' < /pool/int/SOME_UUID/cluster/bootstore-network-config.json

dumps out the current EarlyNetworkConfig as a JSON blob.

@andrewjstone andrewjstone left a comment

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.

Thank you!

Comment thread sled-agent/api/src/lib.rs Resolved
Co-authored-by: Andrew J. Stone <[email protected]>
@jgallagher
jgallagher merged commit 7c10008 into main Feb 27, 2026
16 checks passed
@jgallagher
jgallagher deleted the john/remove-read-bootstore-cache branch February 27, 2026 00:31
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