No disk-preserving recovery for a storage-wedged sprite: restore unreachable, no stop/restart API, documented DELETE exec returns 404

Aperta
#231 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
api, cli, documentation

Direzione di ricerca

Inizia confrontando l’endpoint DELETE exec documentato e le operazioni di ripristino CLI/API disponibili con il comportamento rc47/rc48 segnalato. Riproduci i casi checkpoint, exec-delete, idle-suspend e container-stop; il lavoro è completato quando esiste un percorso di ripristino che preserva il disco, le richieste bloccate possono andare in timeout senza bloccare la sospensione e la documentazione dell’endpoint corrisponde alla realtà.

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

Descrizione

Companion to the disk-I/O-wedge report in #230. When a sprite's storage wedges while the VM stays running, every disk-preserving remedy turns out to be unreachable, and the owner's only exit is sprite destroy — losing checkpoints, credentials, caches, everything. Verified on supervisor 0.0.1-rc47 (2026-08-24) and again on rc48 (2026-09-01), org junchao-yan:

  1. Checkpoint restore routes through the wedged overlay manager. GET /v1/sprites/{name}/checkpoints hangs forever, and restore needs the same manager — so the one mechanism designed to recover a broken overlay is unavailable precisely when the overlay is broken.

  2. There is no stop / suspend / restart verb in the CLI or the public API (checked rc47 and rc48; docs confirm). A plain machine stop/start preserving the volume would very likely clear the wedge (it is VM-side mount state, not necessarily volume data), but there is no way to ask for one.

  3. DELETE /v1/sprites/{name}/exec/{id} returns 404 despite being documented (verified on rc47), so the zombie exec sessions that pile up from client retries cannot be cleared.

  4. The container cannot be stopped either: POST .../services/container/stop → "service not found" (the user container is a hooks-managed service, not in the services API).

  5. Idle-suspend never fires as an escape hatch. After quieting all clients, phantom http: activity sources persisted for 25+ minutes — server-side request handlers stuck on wedged reads (one hung checkpoints GET holds an activity source forever) plus pooled keep-alive connections — so the sprite never reaches the quiet window that would let it suspend and cold-boot.

  6. Killing the container's init hold-open from inside (08-24, when exec still worked) SIGKILLed the container tree and destroyed its mount namespace — and the supervisor never logged a container exit and never recycled the VM; its teardown appeared stuck unmounting the wedged overlay.

Ask

  • A supervisor- or platform-side hard recycle (stop + start with the volume intact), exposed via API/CLI, that does not depend on the overlay manager being healthy.
  • Request handlers that block on storage should time out and not count as idle-blocking activity, so a wedged sprite can at least drain to suspend.
  • Fix or un-document DELETE /v1/sprites/{name}/exec/{id}.
Lingua principale
MDX
Stelle
53
Fork
5
Merge medio
1g 15h
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 superfly/sprites-docs

Tutte le issue di superfly/sprites-docs

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.