Repository navigation
Commit 26e5a1a
committed
fix(cli): explain sessionless topologies instead of surfacing a raw error
Creating a sandbox in a topology with no in-sandbox supervisor succeeded, then
failed at the interactive-session step with a bare gRPC error. The sandbox was
running and its network policy enforced, but the output read as a failed
create.
Detect the gateway's rejection and print what actually happened: the sandbox is
running, sessions are unavailable for this topology, egress is unaffected, and
which topologies to use when interactive access is required. When a command was
passed to 'sandbox create', say plainly that it did not run and point at the
containers.agent.command entrypoint override instead.
The command still exits non-zero. A command that did not run must not report
success, and callers should not have to parse output to find that out.
Detection keys on a stable marker constant shared through openshell-core rather
than on prose, so rewording the message cannot silently break it, and it
searches the whole error chain because the marker arrives wrapped in a
transport error.
Signed-off-by: Russell Bryant <rbryant@redhat.com>1 parent c85fb8c commit 26e5a1a
3 files changed
Lines changed: 127 additions & 3 deletions
File tree
- crates
- openshell-cli/src
- openshell-core/src
- openshell-server/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
336 | 385 | | |
337 | 386 | | |
338 | 387 | | |
| |||
341 | 390 | | |
342 | 391 | | |
343 | 392 | | |
| 393 | + | |
344 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
345 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
346 | 407 | | |
347 | 408 | | |
348 | 409 | | |
| |||
354 | 415 | | |
355 | 416 | | |
356 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
357 | 427 | | |
358 | 428 | | |
359 | 429 | | |
| |||
961 | 1031 | | |
962 | 1032 | | |
963 | 1033 | | |
| 1034 | + | |
964 | 1035 | | |
965 | 1036 | | |
966 | 1037 | | |
| |||
1000 | 1071 | | |
1001 | 1072 | | |
1002 | 1073 | | |
| 1074 | + | |
1003 | 1075 | | |
1004 | 1076 | | |
1005 | 1077 | | |
| |||
7658 | 7730 | | |
7659 | 7731 | | |
7660 | 7732 | | |
| 7733 | + | |
| 7734 | + | |
| 7735 | + | |
| 7736 | + | |
| 7737 | + | |
| 7738 | + | |
| 7739 | + | |
| 7740 | + | |
| 7741 | + | |
| 7742 | + | |
| 7743 | + | |
| 7744 | + | |
| 7745 | + | |
| 7746 | + | |
| 7747 | + | |
| 7748 | + | |
| 7749 | + | |
| 7750 | + | |
| 7751 | + | |
| 7752 | + | |
| 7753 | + | |
| 7754 | + | |
| 7755 | + | |
| 7756 | + | |
| 7757 | + | |
| 7758 | + | |
| 7759 | + | |
| 7760 | + | |
| 7761 | + | |
| 7762 | + | |
| 7763 | + | |
| 7764 | + | |
| 7765 | + | |
7661 | 7766 | | |
7662 | 7767 | | |
7663 | 7768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
| 193 | + | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
| |||
0 commit comments