Repository navigation
Commit 1c7ffa1
committed
fix(cli): detect a sessionless topology before opening a session
The previous commit explained the topology after a relay RPC was rejected, but
'sandbox create' still spawned ssh first, so the failure surfaced through the
subprocess as 'ssh exited with status 255' and the explanatory message was
buried in wrapped stderr.
Publish a SupervisorSession=False/NotApplicable condition in the public sandbox
status when the driver reports SupervisorSessionModel::None, and have the CLI
check it before attempting a session. When set, the CLI skips the connect/exec
path entirely and prints the explanation directly: the sandbox is running,
sessions are unavailable for this topology, egress is unaffected, and how to
set a workload entrypoint when a command was supplied.
The error-marker detection from the prior commit stays as the backstop for
relay RPCs issued directly against an existing sandbox, where there is no
create-time status to pre-check.
Signed-off-by: Russell Bryant <rbryant@redhat.com>1 parent 26e5a1a commit 1c7ffa1
2 files changed
Lines changed: 133 additions & 1 deletion
| 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 | + | |
336 | 352 | | |
337 | 353 | | |
338 | 354 | | |
| |||
1009 | 1025 | | |
1010 | 1026 | | |
1011 | 1027 | | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1012 | 1054 | | |
1013 | 1055 | | |
1014 | 1056 | | |
| |||
7730 | 7772 | | |
7731 | 7773 | | |
7732 | 7774 | | |
7733 | | - | |
| 7775 | + | |
| 7776 | + | |
| 7777 | + | |
| 7778 | + | |
| 7779 | + | |
| 7780 | + | |
| 7781 | + | |
| 7782 | + | |
| 7783 | + | |
| 7784 | + | |
| 7785 | + | |
| 7786 | + | |
| 7787 | + | |
| 7788 | + | |
| 7789 | + | |
| 7790 | + | |
| 7791 | + | |
| 7792 | + | |
| 7793 | + | |
| 7794 | + | |
| 7795 | + | |
| 7796 | + | |
| 7797 | + | |
| 7798 | + | |
| 7799 | + | |
| 7800 | + | |
| 7801 | + | |
| 7802 | + | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
| 7809 | + | |
| 7810 | + | |
| 7811 | + | |
| 7812 | + | |
| 7813 | + | |
| 7814 | + | |
7734 | 7815 | | |
7735 | 7816 | | |
7736 | 7817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3750 | 3750 | | |
3751 | 3751 | | |
3752 | 3752 | | |
| 3753 | + | |
3753 | 3754 | | |
3754 | 3755 | | |
3755 | 3756 | | |
| |||
3775 | 3776 | | |
3776 | 3777 | | |
3777 | 3778 | | |
| 3779 | + | |
3778 | 3780 | | |
3779 | 3781 | | |
3780 | 3782 | | |
| |||
3785 | 3787 | | |
3786 | 3788 | | |
3787 | 3789 | | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
3788 | 3793 | | |
3789 | 3794 | | |
3790 | 3795 | | |
| |||
3821 | 3826 | | |
3822 | 3827 | | |
3823 | 3828 | | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
| 3844 | + | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
3824 | 3875 | | |
3825 | 3876 | | |
3826 | 3877 | | |
| |||
0 commit comments