bug: Ready=False/PodTerminating is treated as a terminal sandbox failure
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- kubernetes, rust
调研方向
先在 gateway 生命周期代码中定位 is_terminal_failure_reason(),并查看它接受的 transient 原因列表。将 PodTerminating 添加为 transitional,同时让 genuine 和 unknown 的原因保持 terminal,然后验证后续的 stopped 观测会将 sandbox 置为 Stopped。运行 issue 中引用的 gateway 生命周期测试(已在 2e5589b21 上针对 main 复现),并检查 termination 和 unknown-failure 两种情况的 phase/conditions 断言。
由索引模型根据 Issue 内容生成。
描述
User Story
I use OpenShell for securely/reliably managing a fleet of long-running agents on a Kubernetes cluster.
I directly encountered an incompatibility between agent-sandbox 1.0.11 & the lifecycle of openshell-managed workspaces.
This affects my ability to have reliable long-running agents.
Problem Statement
Agent Sandbox 1.0.11 reports Ready=False / PodTerminating while deleting a workload Pod.
OpenShell treats this as a terminal failure. The gateway can remain in Error even after the driver reports that the sandbox has stopped.
is_terminal_failure_reason() does not include PodTerminating among its transient reasons.
Impact / Why This Matters
A normal termination condition becomes a persistent error. Explicit stop/start recovers the sandbox, but requires intervention.
Acceptance Criteria
- PodTerminating is treated as transitional, not a terminal failure.
- A subsequent stopped observation can settle the sandbox to Stopped.
- Genuine and unknown failure reasons still produce Error.
Reproduction Steps
- Create a disposable sandbox and wait for bootstrap to complete.
- Delete its workload Pod, not the dedicated supervisor Pod.
- Observe the gateway phase and conditions.
Suggested UX (if applicable)
No response
Environment
- OpenShell 0.1.8; also reproduced in gateway lifecycle tests against main at
2e5589b21 - Kubernetes v1.37.1 with Agent Sandbox 1.0.11
Logs
- 主要语言
- Rust
- 星标
- 21.5k
- 派生
- 2.1k
- 平均合并
- 2 天 20 小时
- 30 天内合并 PR
- 246
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/OpenShell 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA/OpenShell#5638 · 1 条评论 ·
维护者通常 1 天内回复
-
state:triage-needed
难度 1/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
相似的 Issue
-
ai_p2
难度 2/5 1-3 小时 新手友好度 80/100
ClickHouse/ClickHouse#132519 ·
维护者通常 1 天内回复
-
Pattern-clip compiler tests miss the clip cap, sort order, muted output and count/emit agreement未关闭area: engine type: test
难度 2/5 1-3 小时 新手友好度 76/100
YuriiMurha/grooviq#224 ·
维护者通常 1 天内回复
-
state:needs triage
难度 2/5 1-3 小时 新手友好度 83/100
zed-industries/zed#67109 · 1 条评论 ·
维护者通常 1 天内回复
-
bug priority: medium
难度 2/5 1-3 小时 新手友好度 78/100
storytold/photocraft#15500 · 1 条评论 ·
维护者通常 1 天内回复
-
bug good first issue language priority/low
难度 2/5 1-3 小时 新手友好度 88/100
ZanattaMichael/meridian-core#143 ·
维护者通常 1 天内回复