-
Notifications
You must be signed in to change notification settings - Fork 45
[24/n] [reconfigurator-planning] support no-op image source updates #8486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sunshowers
merged 9 commits into
main
from
sunshowers/spr/wip-22n-reconfigurator-planning-support-no-op-image-source-updates
Jul 4, 2025
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
78b25da
rebase
sunshowers 597a569
[spr] changes to main this commit is based on
sunshowers b4d7d51
add non-matching target release
sunshowers d44824e
update wicketd integration test
sunshowers afc3597
[spr] changes introduced through rebase
sunshowers b5da27a
rebase on 23/n
sunshowers ab59511
rebase on main
sunshowers 6d68955
rebase on main
sunshowers 54daddc
rebase on main, fix up, address review comments
sunshowers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
dev-tools/reconfigurator-cli/tests/input/cmds-noop-image-source.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Load an example system. The sled with serial5 is marked non-provisionable | ||
# so that discretionary zones don't make their way onto it. (We're going to | ||
# expunge it below to test that we don't try and update zone image sources | ||
# on expunged sleds.) | ||
load-example --nsleds 6 --ndisks-per-sled 1 --sled-policy 5:non-provisionable | ||
|
||
sled-list | ||
|
||
# Create a TUF repository from a fake manifest. (The output TUF repo is | ||
# written to a temporary directory that this invocation of `reconfigurator-cli` | ||
# is running out of as its working directory.) | ||
tuf-assemble ../../update-common/manifests/fake.toml | ||
# Create a second TUF repository from a different fake manifest. | ||
tuf-assemble ../../update-common/manifests/fake-non-semver.toml --allow-non-semver | ||
|
||
# Load the target release from the first TUF repository. | ||
set target-release repo-1.0.0.zip | ||
|
||
# On one sled, update the install dataset. | ||
sled-update-install-dataset serial0 --to-target-release | ||
|
||
# On another sled, simulate an error reading the zone manifest. | ||
sled-update-install-dataset serial1 --with-manifest-error | ||
|
||
# On a third sled, update the install dataset and simulate a mupdate override. | ||
# (Currently we do this in the blueprint, but with | ||
# https://github.com/oxidecomputer/omicron/pull/8456 we should update this test and | ||
# set a mupdate-override on the sled directly.) | ||
sled-update-install-dataset serial2 --to-target-release | ||
blueprint-edit latest set-remove-mupdate-override serial2 ffffffff-ffff-ffff-ffff-ffffffffffff | ||
|
||
# On a fourth sled, simulate an error validating the install dataset image on one zone. | ||
# We pick ntp because internal-ntp is non-discretionary. | ||
sled-update-install-dataset serial3 --to-target-release --with-zone-error ntp | ||
|
||
# On a fifth sled, set the install dataset to the repo-2.0.0.zip generated by the | ||
# second TUF repository. | ||
sled-update-install-dataset serial4 --from-repo repo-2.0.0.zip | ||
|
||
# On the sixth sled, update to the target release (so it shows up in inventory). | ||
# Then, mark the sled expunged (in the planning input). | ||
sled-update-install-dataset serial5 --to-target-release | ||
sled-set-policy serial5 expunged | ||
|
||
# Generate an inventory and run a blueprint planning step. | ||
inventory-generate | ||
blueprint-plan latest eb0796d5-ab8a-4f7b-a884-b4aeacb8ab51 | ||
|
||
# This diff should show expected changes to the blueprint. | ||
blueprint-diff 8da82a8e-bf97-4fbd-8ddd-9f6462732cf1 latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.