Skip to content

reconfigurator-cli: Add command to "perform" all MGS-driven images on a sled #9144

@jgallagher

Description

@jgallagher

For our reconfigurator-cli simulated system, we have some shortcut commands that make multiple changes at once like

# change the zone manifest to match a TUF repo
sled-update-install-dataset $SLED --to-target-release

# change the OmicronSledConfig to match a blueprint
sled-set serial0 omicron-config $BLUEPRINT

But we don't have a good way of updating all the MGS-driven images on a sled, so today if we need to do that, we have to spell out each update individually. This has come up on both #9044 (comment) and #9108 (comment). Maybe something like

sled-update-mgs-driven-images $SLED --to-target-release

that would do the equivalent of

sled-update-rot-bootloader $SLED --stage0 1.0.0
sled-update-rot $SLED --slot-a 1.0.0
sled-update-rot $SLED --slot-b 1.0.0
sled-update-sp $SLED --active 1.0.0
sled-update-host-phase1 $SLED --slot-a b99d5273ba1418bebb19d74b701d716896409566d41de76ada71bded4c9b166b
sled-update-host-phase2 $SLED --boot-disk A --slot-a d944ae205b61ccf4322448f7d0311a819c53d9844769de066c5307c1682abb47

(with appropriate choices for versions, hashes, and maybe active slot / boot disk?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions