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

Aperta Adatta ai principianti
#5,588 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@TaylorMutch ci sta già lavorando.

Dal 16/11/2026.

  • #5626 di @TaylorMutch — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
kubernetes, rust

Direzione di ricerca

Inizia individuando is_terminal_failure_reason() nel codice del ciclo di vita del gateway e rivedi l’elenco dei motivi transitori che accetta. Aggiungi PodTerminating come transitorio mantenendo terminali i motivi autentici e sconosciuti, poi verifica che un’osservazione stopped successiva porti la sandbox a Stopped. Esegui i test del ciclo di vita del gateway citati nell’issue (riprodotti contro main a 2e5589b21) e controlla le asserzioni phase/conditions sia per i casi di terminazione sia per quelli di fallimento sconosciuto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Rust
Stelle
21.5k
Fork
2.1k
Merge medio
2g 20h
PR unite (30g)
246

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/OpenShell

Tutte le issue di NVIDIA/OpenShell

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.