Skip to content

Conversation

wfchandler
Copy link
Contributor

Currently support bundles contain the sled UUID in file paths, and serial number in sled.txt. However, when accessing the sled via the tech port we generally refer to a sled by its cubby.

To make identification of sleds simpler, add a new sled_info.json file to the bundle with a JSON-encoded mapping of sled serial to cubby and UUID.

@wfchandler wfchandler force-pushed the wc/bundle-sled-to-cubby branch from 23c2038 to 1774fca Compare October 10, 2025 13:56
Currently support bundles contain the sled UUID in file paths, and
serial number in `sled.txt`. However, when accessing the sled via the
tech port we generally refer to a sled by its cubby.

To make identification of sleds simpler, add a new `sled_info.json` file
to the bundle with a JSON-encoded mapping of sled serial to cubby and
UUID.
@wfchandler wfchandler force-pushed the wc/bundle-sled-to-cubby branch from 1774fca to 21822fc Compare October 11, 2025 18:14
@wfchandler wfchandler requested a review from smklein October 13, 2025 13:18
Comment on lines +1497 to +1512
sled_info.insert(
sp_state.serial_number.to_string(),
SledInfo { cubby: Some(sp.slot), uuid: None },
);
}
}

// Sleds not returned by MGS.
for (serial, sled) in nexus_map {
sled_info.insert(
serial.to_string(),
SledInfo {
cubby: None,
uuid: Some(*sled.identity.id.as_untyped_uuid()),
},
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Smart to still include this info if a sled is present in one of "the nexus list" and "the MGS cubby list" but not the other

@wfchandler wfchandler merged commit e25179a into main Oct 15, 2025
17 checks passed
@wfchandler wfchandler deleted the wc/bundle-sled-to-cubby branch October 15, 2025 17:53
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