oxidecomputer / omicron

Omicron: Oxide control plane
Mozilla Public License 2.0
251 stars 39 forks source link

Sled Agent must be capable of inferring, communicating "own sled" version information #2105

Open smklein opened 1 year ago

smklein commented 1 year ago

This is necessary for a few cases:

There are two major components to this issue:

rmustacc commented 1 year ago

When sled agent is trying to gather information about itself, why should we assume MGS exists? If we want version info about ourselves isn't the only safe way to ask the local SP via the UART? This is mostly in the context of the " Given Bootloaders / Hubris images throughout the rack, the sled agent should be able to communicate over MGS to collect this information.".

smklein commented 1 year ago

When sled agent is trying to gather information about itself, why should we assume MGS exists? If we want version info about ourselves isn't the only safe way to ask the local SP via the UART? This is mostly in the context of the " Given Bootloaders / Hubris images throughout the rack, the sled agent should be able to communicate over MGS to collect this information.".

I've updated the issue to reflect this, especially for querying sled-local info.

For querying info that's "Rack-wide, but not sled local", such as "what's the version of Hubris running on the PSC", would MGS be an appropriate avenue?

jgallagher commented 1 year ago

For querying info that's "Rack-wide, but not sled local", such as "what's the version of Hubris running on the PSC", would MGS be an appropriate avenue?

MGS is the only avenue to ask questions of the PSC. MGS is arguably the right mechanism to interrogate the sidecar SP, too; although it has a couple side channels to talk to the scrimlet, none of these are as fit for this purpose as the uart is for a gimlet (I think?).

rmustacc commented 1 year ago

For querying info that's "Rack-wide, but not sled local", such as "what's the version of Hubris running on the PSC", would MGS be an appropriate avenue?

Yes, but it shouldn't be sled agent reaching out to MGS.