-
Notifications
You must be signed in to change notification settings - Fork 43
[6/n] [sled-agent] add remove_mupdate_override to OmicronSledConfig and friends #8097
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
Open
sunshowers
wants to merge
5
commits into
sunshowers/spr/main.sled-agent-add-remove_mupdate_override-to-omicronsledconfig-and-friends
Choose a base branch
from
sunshowers/spr/sled-agent-add-remove_mupdate_override-to-omicronsledconfig-and-friends
base: sunshowers/spr/main.sled-agent-add-remove_mupdate_override-to-omicronsledconfig-and-friends
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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
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
41 changes: 41 additions & 0 deletions
41
dev-tools/reconfigurator-cli/tests/input/cmds-set-remove-mupdate-override.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,41 @@ | ||
# Load example system with 7 sleds: | ||
# | ||
# sled 0: unset -> unset (unchanged) | ||
# sled 1: unset -> set | ||
# sled 2: set -> unset | ||
# sled 3: set -> set (unchanged) | ||
# sled 4: set -> set (changed) | ||
# sled 5: set -> set (unchanged) but change something else | ||
# sled 6: set -> sled removed | ||
# | ||
# We'll also add another sled below (new_sled_id) with | ||
# remove_mupdate_override set. | ||
# | ||
# We don't need any zones for this test, so disable that to keep the | ||
# outputs minimal. | ||
|
||
load-example --nsleds 7 --ndisks-per-sled 0 --no-zones | ||
|
||
# Set the field on sleds 2-6 (0-indexed). | ||
blueprint-edit latest set-remove-mupdate-override 9a867dc9-d505-427f-9eff-cdb1d4d9bd73 00000000-0000-0000-0000-000000000000 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just out of curiosity - what was your workflow for figuring out what IDs correspond to which sleds as you wrote this test? |
||
blueprint-edit latest set-remove-mupdate-override aff6c093-197d-42c5-ad80-9f10ba051a34 00000000-0000-0000-0000-000000000000 | ||
blueprint-edit latest set-remove-mupdate-override b82ede02-399c-48c6-a1de-411df4fa49a7 00000000-0000-0000-0000-000000000000 | ||
blueprint-edit latest set-remove-mupdate-override d81c6a84-79b8-4958-ae41-ea46c9b19763 00000000-0000-0000-0000-000000000000 | ||
blueprint-edit latest set-remove-mupdate-override e96e226f-4ed9-4c01-91b9-69a9cd076c9e 00000000-0000-0000-0000-000000000000 | ||
|
||
blueprint-show latest | ||
|
||
# Now make another blueprint, starting by adding a new sled and removing sled 6. | ||
sled-add --ndisks 0 | ||
blueprint-edit latest debug remove-sled e96e226f-4ed9-4c01-91b9-69a9cd076c9e | ||
sled-remove e96e226f-4ed9-4c01-91b9-69a9cd076c9e | ||
inventory-generate | ||
|
||
# Edit sleds 1, 2, 4, 5, and the new one. | ||
blueprint-edit latest set-remove-mupdate-override 98e6b7c2-2efa-41ca-b20a-0a4d61102fe6 ffffffff-ffff-ffff-ffff-ffffffffffff | ||
blueprint-edit latest set-remove-mupdate-override 9a867dc9-d505-427f-9eff-cdb1d4d9bd73 unset | ||
blueprint-edit latest set-remove-mupdate-override b82ede02-399c-48c6-a1de-411df4fa49a7 ffffffff-ffff-ffff-ffff-ffffffffffff | ||
blueprint-edit latest debug force-sled-generation-bump d81c6a84-79b8-4958-ae41-ea46c9b19763 | ||
blueprint-edit latest set-remove-mupdate-override 00320471-945d-413c-85e7-03e091a70b3c ffffffff-ffff-ffff-ffff-ffffffffffff | ||
|
||
blueprint-diff 7f976e0d-d2a5-4eeb-9e82-c82bc2824aba 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
Empty file.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote this but honestly didn't end up needing it -- left it in here because it seems somewhat useful.