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

オープン 初心者向け
#5,588 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@TaylorMutch がすでに取り組んでいます。

2026年11月16日 から。

  • #5626 @TaylorMutch による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
kubernetes, rust

調査の方向性

まず gateway のライフサイクルコード内で is_terminal_failure_reason() を特定し、それが受け入れる一時的な理由のリストを確認してください。PodTerminating を transitional として追加し、genuine および unknown な理由は terminal のままにしたうえで、後から stopped の観測が来ると sandbox が Stopped に落ち着くことを検証してください。issue で参照されている gateway のライフサイクルテスト(main に対して 2e5589b21 で再現済み)を実行し、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時間
マージ済み PR(30日)
246

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/OpenShell のほかの issue

NVIDIA/OpenShell の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。