Commit ebdc1f6
committed
fix(bootstrap): surface diagnostics for K8s namespace not ready failures
The 'K8s namespace not ready' error had three gaps preventing diagnostic
information from reaching users:
1. The non-interactive (CI/piped) code path used bare error propagation
with no diagnosis at all.
2. The interactive path's pattern matcher returned None for the common
timeout case, and the generic_failure_diagnosis fallback existed but
was never called.
3. Container logs were never passed to the diagnosis engine, so patterns
only visible in logs (node pressure, corrupted state, etc.) could not
match.
Fix all three by fetching container logs at the CLI error-handling site,
passing them to diagnose_failure, and falling back to
generic_failure_diagnosis when no specific pattern matches. Also add
container logs to the two wait_for_namespace error paths that were
missing them (timeout and exec-error-on-final-attempt), and update the
generic diagnosis to suggest 'openshell doctor' commands.1 parent cf66d05 commit ebdc1f6
3 files changed
+73
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
452 | 460 | | |
453 | 461 | | |
454 | 462 | | |
455 | 463 | | |
456 | 464 | | |
457 | 465 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | 466 | | |
463 | 467 | | |
464 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
641 | 656 | | |
642 | 657 | | |
643 | 658 | | |
| |||
984 | 999 | | |
985 | 1000 | | |
986 | 1001 | | |
987 | | - | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
988 | 1007 | | |
989 | 1008 | | |
990 | 1009 | | |
| |||
997 | 1016 | | |
998 | 1017 | | |
999 | 1018 | | |
| 1019 | + | |
1000 | 1020 | | |
1001 | | - | |
| 1021 | + | |
1002 | 1022 | | |
1003 | 1023 | | |
1004 | 1024 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1251 | 1258 | | |
1252 | 1259 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1258 | 1266 | | |
1259 | 1267 | | |
1260 | 1268 | | |
1261 | 1269 | | |
1262 | 1270 | | |
1263 | | - | |
| 1271 | + | |
1264 | 1272 | | |
1265 | 1273 | | |
1266 | 1274 | | |
| |||
1269 | 1277 | | |
1270 | 1278 | | |
1271 | 1279 | | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1275 | 1309 | | |
1276 | 1310 | | |
1277 | 1311 | | |
| |||
0 commit comments