Commit fabf650
committed
fix(applycheck): exclude kernel-virtual disks from selector candidates and hints
Real Talos hosts running cozystack accumulate dozens of virtual block
devices (dm-* from LVM, drbd* from DRBD-replicated PVs, loop* from
container image layers). Talos's block.DiskSpec marks all of these
with bus_path="/virtual"; the install-disk picker never lands on
them, and a pre-apply selector hitting one would be a silent misdirect.
Surface that exclusion in both validation paths:
- matchSelector now skips bus_path=/virtual disks the same way it
skips Readonly and CDROM, so a 'type: ssd' selector on a host with
hundreds of loop/dm/drbd devices doesn't surface a spurious
'multiple matches' warning.
- diskPathList and summarizeDisks omit the virtual class from operator-
facing hints, replacing a 19-entry scroll of dm/drbd/loop noise on
a cozystack host with the actionable 'available disks: /dev/sda,
/dev/sdb' two-name list verified on a live OCI v1.12.6 cluster.
Refs: #172
Signed-off-by: Aleksei Sviridkin <f@lex.la>1 parent 13e3a8a commit fabf650
2 files changed
Lines changed: 107 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | | - | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
67 | 81 | | |
68 | 82 | | |
69 | 83 | | |
| |||
232 | 246 | | |
233 | 247 | | |
234 | 248 | | |
235 | | - | |
236 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
237 | 253 | | |
238 | | - | |
| 254 | + | |
| 255 | + | |
239 | 256 | | |
240 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
241 | 262 | | |
242 | 263 | | |
243 | 264 | | |
| |||
266 | 287 | | |
267 | 288 | | |
268 | 289 | | |
269 | | - | |
270 | | - | |
271 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
272 | 295 | | |
273 | | - | |
274 | | - | |
275 | | - | |
| 296 | + | |
276 | 297 | | |
277 | | - | |
278 | 298 | | |
279 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
280 | 308 | | |
281 | 309 | | |
282 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
241 | 304 | | |
242 | 305 | | |
243 | 306 | | |
| |||
0 commit comments