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

Offen Anfängerfreundlich
#5,588 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@TaylorMutch arbeitet bereits daran.

Seit 16.11.2026.

  • #5626 von @TaylorMutch — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
78/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
kubernetes, rust

Rechercherichtung

Beginne damit, is_terminal_failure_reason() im Gateway-Lifecycle-Code zu lokalisieren, und prüfe die Liste der transienten Gründe, die es akzeptiert. Füge PodTerminating als transitional hinzu, während echte und unbekannte Gründe terminal bleiben, und verifiziere dann, dass eine spätere stopped-Beobachtung die Sandbox auf Stopped setzt. Führe die im Issue referenzierten Gateway-Lifecycle-Tests aus (reproduziert gegen main bei 2e5589b21) und prüfe die Assertions zu phase/conditions für sowohl Terminierungs- als auch Unknown-Failure-Fälle.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Rust
Sterne
21.5k
Forks
2.1k
Ø Merge
2 T. 20 Std.
Gemergte PRs (30 T.)
246

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NVIDIA/OpenShell

Alle Issues in NVIDIA/OpenShell

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.