bug: Ready=False/PodTerminating is treated as a terminal sandbox failure

未关闭 适合新手
#5,588 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@TaylorMutch 已经在做这个了。

开始于 2026年11月16日。

  • #5626 来自 @TaylorMutch —— 未关闭

评估

难度
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 内容生成。

描述

state:accepted state:pr-opened
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
  1. Create a disposable sandbox and wait for bootstrap to complete.
  2. Delete its workload Pod, not the dedicated supervisor Pod.
  3. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。