Commit 558f89e
authored
TQ: omdb support for listing trust quorum configs per rack (#9792)
Tested on a4x2:
```
root@oxz_switch:~# omdb db trust-quorum list-configs --rack-id 18594251-205a-47f1-926f-7c5230ab2735
note: database URL not specified. Will search DNS.
note: (override with --db-url or OMDB_DB_URL)
note: using DNS from system config (typically /etc/resolv.conf)
note: (if this is not right, use --dns-server to specify an alternate DNS server)
note: using database URL postgresql://root@[fd00:17:1:d03::3]:32221,[fd00:17:1:d01::3]:32221,[fd00:17:1:d04::4]:32221,[fd00:17:1:d02::3]:32221,[fd00:17:1:d04::3]:32221/omicron?sslmode=disable
note: database schema version matches expected (228.0.0)
EPOCH LAST_COMMITTED_EPOCH STATE THRESHOLD COMMIT_CRASH_TOLERANCE COORDINATOR TIME_CREATED TIME_COMMITTING TIME_COMMITTED TIME_ABORTED ABORT_REASON
1 n/a Committed 3 1 3ad41e1a-faa0-47dd-9ec3-e75575ec4388 2026-02-03T21:28:15.740Z 2026-02-03T21:28:15.740Z 2026-02-03T21:28:15.740Z
```
This is just the raw data. You can match the coordinator to the actual
part and serial with:
```
root@oxz_switch:~# omdb db inventory baseboard-ids
note: database URL not specified. Will search DNS.
note: (override with --db-url or OMDB_DB_URL)
note: using DNS from system config (typically /etc/resolv.conf)
note: (if this is not right, use --dns-server to specify an alternate DNS server)
note: using database URL postgresql://root@[fd00:17:1:d03::3]:32221,[fd00:17:1:d01::3]:32221,[fd00:17:1:d04::4]:32221,[fd00:17:1:d02::3]:32221,[fd00:17:1:d04::3]:32221/omicron?sslmode=disable
note: database schema version matches expected (228.0.0)
ID PART_NUMBER SERIAL_NUMBER
3ad41e1a-faa0-47dd-9ec3-e75575ec4388 913-0000019 20000000
4d75005c-6fa3-40df-af8c-c41b3f3fad17 913-0000019 20000001
ca0f623c-7260-4b00-91e6-6d2a2b68f06e 913-0000019 20000002
40b8965d-89ab-4957-86af-68b11533ffb8 913-0000019 20000003
befe71ec-e7ca-4ee3-b750-fcb9ffd6d68c FAKE_SIM_SIDECAR SimSidecar0
```1 parent 360801b commit 558f89e
File tree
3 files changed
+121
-0
lines changed- dev-tools/omdb
- src/bin/omdb
- tests
- nexus/db-queries/src/db/datastore
3 files changed
+121
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| 439 | + | |
| 440 | + | |
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
| |||
1162 | 1165 | | |
1163 | 1166 | | |
1164 | 1167 | | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1165 | 1187 | | |
1166 | 1188 | | |
1167 | 1189 | | |
| |||
1532 | 1554 | | |
1533 | 1555 | | |
1534 | 1556 | | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1535 | 1562 | | |
1536 | 1563 | | |
1537 | 1564 | | |
| |||
8108 | 8135 | | |
8109 | 8136 | | |
8110 | 8137 | | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
| 8146 | + | |
| 8147 | + | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
| 8153 | + | |
| 8154 | + | |
| 8155 | + | |
| 8156 | + | |
| 8157 | + | |
| 8158 | + | |
| 8159 | + | |
| 8160 | + | |
| 8161 | + | |
| 8162 | + | |
| 8163 | + | |
| 8164 | + | |
| 8165 | + | |
| 8166 | + | |
| 8167 | + | |
| 8168 | + | |
| 8169 | + | |
| 8170 | + | |
| 8171 | + | |
| 8172 | + | |
| 8173 | + | |
| 8174 | + | |
| 8175 | + | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
| 8185 | + | |
| 8186 | + | |
| 8187 | + | |
| 8188 | + | |
| 8189 | + | |
| 8190 | + | |
| 8191 | + | |
| 8192 | + | |
| 8193 | + | |
| 8194 | + | |
| 8195 | + | |
| 8196 | + | |
| 8197 | + | |
| 8198 | + | |
| 8199 | + | |
| 8200 | + | |
| 8201 | + | |
| 8202 | + | |
| 8203 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
180 | 206 | | |
181 | 207 | | |
182 | 208 | | |
| |||
0 commit comments