Repository navigation
Commit 89fcc52
authored
fix(supervisor): bound dedicated SIGTERM shutdown and stop recovering a lost boundary (#5342)
* fix(supervisor): stop recovering a lost boundary after SIGTERM
After SIGTERM the supervisor signals, waits for, and terminates the
boundary. When the boundary connection drops during that sequence, each
call retried reattach for up to 30s, so the supervisor outlived the
runtime's stop timeout and was killed. Once shutdown starts, report a
lost connection instead of recovering it.
Un-ignore the conformance test that covers slow-TERM deletes.
Signed-off-by: divesh <dgude@nvidia.com>
* fix(supervisor): bound SIGTERM shutdown and give Docker supervisors 10s
Stopping a dedicated sandbox now finishes within 8 seconds, including the
exit report and trace flush, while the workload keeps its 5 second TERM
grace. A boundary connection lost while stopping is reported as a
terminated workload instead of failing the shutdown.
Only a dedicated supervisor's own shutdown skips boundary recovery; a
shared supervisor removing one sandbox keeps recovering as before.
The Docker driver gave the supervisor 5 seconds, the same as its wait for
the workload, so stops ended in SIGKILL. It now allows 10 seconds.
Signed-off-by: divesh <dgude@nvidia.com>
* fix(supervisor): keep shared stops unbounded and report the workload's exit
Only a dedicated supervisor's own shutdown is bounded by the 8 second
deadline and treats a lost boundary as the end of the workload. A shared
supervisor stopping one hosted instance keeps the host's removal grace and
reports a stop it could not confirm as a failure, as before.
When the boundary reports the workload's exit status before it is lost,
that status is reported rather than the terminated fallback.
Signed-off-by: divesh <dgude@nvidia.com>
---------
Signed-off-by: divesh <dgude@nvidia.com>1 parent 31f230e commit 89fcc52
7 files changed
Lines changed: 270 additions & 29 deletions
File tree
- crates
- openshell-driver-docker
- src
- openshell-sandbox-backend/src
- openshell-supervisor
- src
- tests/suites/conformance/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
5610 | 5613 | | |
5611 | 5614 | | |
5612 | 5615 | | |
5613 | | - | |
| 5616 | + | |
5614 | 5617 | | |
5615 | 5618 | | |
5616 | 5619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
974 | 980 | | |
975 | 981 | | |
976 | 982 | | |
| |||
1615 | 1621 | | |
1616 | 1622 | | |
1617 | 1623 | | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1618 | 1627 | | |
1619 | 1628 | | |
1620 | 1629 | | |
| |||
1815 | 1824 | | |
1816 | 1825 | | |
1817 | 1826 | | |
| 1827 | + | |
1818 | 1828 | | |
1819 | 1829 | | |
1820 | 1830 | | |
| |||
2223 | 2233 | | |
2224 | 2234 | | |
2225 | 2235 | | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
2226 | 2241 | | |
2227 | 2242 | | |
2228 | 2243 | | |
| |||
3992 | 4007 | | |
3993 | 4008 | | |
3994 | 4009 | | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
| 4025 | + | |
| 4026 | + | |
| 4027 | + | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
3995 | 4076 | | |
3996 | 4077 | | |
3997 | 4078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
0 commit comments