-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omdb: Add sled state to blueprint displays and diffs (#6545)
On `main`, omdb shows this for the confusing blueprint on dogfood from oxidecomputer/product-assurance#52: ``` root@oxz_switch0:/var/tmp/john# omdb nexus blueprints diff 430f5c6b-3156-4921-8ddc-74560989c8f4 3eb67393-bdbc-4957-98c2-36cc60e3e901 ... snip unchanged sleds ... MODIFIED SLEDS: sled 1efda86b-caef-489f-9792-589d7677e59a: physical disks from generation 1: ----------------------------------- vendor model serial ----------------------------------- - 1b96 WUS4C6432DSP3X3 A079DDFD - 1b96 WUS4C6432DSP3X3 A079DE08 - 1b96 WUS4C6432DSP3X3 A079DE11 - 1b96 WUS4C6432DSP3X3 A079DEA7 - 1b96 WUS4C6432DSP3X3 A079DEAF - 1b96 WUS4C6432DSP3X3 A079DF11 - 1b96 WUS4C6432DSP3X3 A079DFA7 - 1b96 WUS4C6432DSP3X3 A079DFCA - 1b96 WUS4C6432DSP3X3 A079E02E - 1b96 WUS4C6432DSP3X3 A079E076 omicron zones generation 3 -> 4: ------------------------------------------------------------------------------------------- zone type zone id disposition underlay IP ------------------------------------------------------------------------------------------- * crucible 09f14045-df78-447a-b7d8-217e0ca8ee09 - in service fd00:1122:3344:124::24 └─ + expunged * crucible 3ec0e848-39de-495e-be0e-88241e11d0fb - in service fd00:1122:3344:124::22 └─ + expunged * crucible 562c58dc-2408-415e-a005-eb80d1769d10 - in service fd00:1122:3344:124::28 └─ + expunged * crucible 568f842d-3cd3-4901-97f8-94991c2e9938 - in service fd00:1122:3344:124::25 └─ + expunged * crucible 5f3fbd1c-5513-4527-88b5-d07c8fbf71e0 - in service fd00:1122:3344:124::29 └─ + expunged * crucible 6632cd6f-ade4-415f-ad65-b510d4ead12d - in service fd00:1122:3344:124::23 └─ + expunged * crucible 6ca6aa76-c32b-402c-a1ac-751f12d5bdd9 - in service fd00:1122:3344:124::2b └─ + expunged * crucible 9a475569-439c-4749-b78f-eba2096b2131 - in service fd00:1122:3344:124::26 └─ + expunged * crucible bac40327-4eeb-429d-94e1-d3c0525266a2 - in service fd00:1122:3344:124::2a └─ + expunged * crucible eb71bb55-37fb-4fc4-bdee-a5382a480271 - in service fd00:1122:3344:124::27 └─ + expunged * internal_ntp bfea30f1-9ea6-496d-aeb9-ae126ea4f686 - in service fd00:1122:3344:124::21 └─ + expunged ADDED SLEDS: sled 05652dc1-b811-4cac-95e1-d32633f2ba75: COCKROACHDB SETTINGS: state fingerprint::::::::::::::::: d4d87aa2ad877a4cc2fddd0573952362739110de (unchanged) cluster.preserve_downgrade_option: "22.1" (unchanged) METADATA: * internal DNS version: 5 -> 6 external DNS version: 31 (unchanged) ``` As of this branch, we get parenthetical state information on the `sled $SLED_ID:` lines: ``` MODIFIED SLEDS: sled 1efda86b-caef-489f-9792-589d7677e59a (active -> decommissioned): physical disks from generation 1: ----------------------------------- vendor model serial ----------------------------------- - 1b96 WUS4C6432DSP3X3 A079DDFD - 1b96 WUS4C6432DSP3X3 A079DE08 - 1b96 WUS4C6432DSP3X3 A079DE11 - 1b96 WUS4C6432DSP3X3 A079DEA7 - 1b96 WUS4C6432DSP3X3 A079DEAF - 1b96 WUS4C6432DSP3X3 A079DF11 - 1b96 WUS4C6432DSP3X3 A079DFA7 - 1b96 WUS4C6432DSP3X3 A079DFCA - 1b96 WUS4C6432DSP3X3 A079E02E - 1b96 WUS4C6432DSP3X3 A079E076 omicron zones generation 3 -> 4: ------------------------------------------------------------------------------------------- zone type zone id disposition underlay IP ------------------------------------------------------------------------------------------- * crucible 09f14045-df78-447a-b7d8-217e0ca8ee09 - in service fd00:1122:3344:124::24 └─ + expunged * crucible 3ec0e848-39de-495e-be0e-88241e11d0fb - in service fd00:1122:3344:124::22 └─ + expunged * crucible 562c58dc-2408-415e-a005-eb80d1769d10 - in service fd00:1122:3344:124::28 └─ + expunged * crucible 568f842d-3cd3-4901-97f8-94991c2e9938 - in service fd00:1122:3344:124::25 └─ + expunged * crucible 5f3fbd1c-5513-4527-88b5-d07c8fbf71e0 - in service fd00:1122:3344:124::29 └─ + expunged * crucible 6632cd6f-ade4-415f-ad65-b510d4ead12d - in service fd00:1122:3344:124::23 └─ + expunged * crucible 6ca6aa76-c32b-402c-a1ac-751f12d5bdd9 - in service fd00:1122:3344:124::2b └─ + expunged * crucible 9a475569-439c-4749-b78f-eba2096b2131 - in service fd00:1122:3344:124::26 └─ + expunged * crucible bac40327-4eeb-429d-94e1-d3c0525266a2 - in service fd00:1122:3344:124::2a └─ + expunged * crucible eb71bb55-37fb-4fc4-bdee-a5382a480271 - in service fd00:1122:3344:124::27 └─ + expunged * internal_ntp bfea30f1-9ea6-496d-aeb9-ae126ea4f686 - in service fd00:1122:3344:124::21 └─ + expunged ADDED SLEDS: sled 05652dc1-b811-4cac-95e1-d32633f2ba75 (decommissioned): COCKROACHDB SETTINGS: state fingerprint::::::::::::::::: d4d87aa2ad877a4cc2fddd0573952362739110de (unchanged) cluster.preserve_downgrade_option: "22.1" (unchanged) METADATA: * internal DNS version: 5 -> 6 external DNS version: 31 (unchanged) ``` The empty sled added block is still kinda confusing, but I think the note that the added sled is starting out in the `decommissioned` state is at least a reasonable pointer to an explanation of what's going on. Fixes #6544.
- Loading branch information
1 parent
1dcc7f9
commit 4c72357
Showing
12 changed files
with
197 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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.