Restore Kubernetes execution and provisioning: removed from v0.2.0 as never verified against a real cluster
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- kubernetes, python
- Ambito
- devops, distributed-systems
Direzione di ricerca
Inizia leggendo le implementazioni storiche in clustrix/executor_kubernetes.py e clustrix/kubernetes/, usando i commit 6061247 e d6b4b7b, quindi esamina il widget, i campi k8s_*, la CLI e il tutorial di Kubernetes. Ripristina il backend e le registrazioni, esegui un job reale, prova i fallimenti rejected, killed e node-lost e incolla la trascrizione dell’esecuzione prima di spostare la documentazione in supported.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Kubernetes execution and auto-provisioning are implemented and removed from v0.2.0 as unverified. No job has ever been run against a real cluster.
What exists, and where
| Code | Lines | Introduced |
|---|---|---|
clustrix/executor_kubernetes.py |
594 | 6061247 (2025-08-23) |
clustrix/kubernetes/cluster_provisioner.py |
423 | d6b4b7b (2025-08-16) |
clustrix/kubernetes/local_provisioner.py |
455 | d6b4b7b |
clustrix/kubernetes/{aws,azure,gcp,lambda,huggingface}_provisioner.py |
3,611 | d6b4b7b |
clustrix/kubernetes/__init__.py |
60 | d6b4b7b |
Plus the widget's Kubernetes section, the k8s_* configuration fields, and docs/source/notebooks/kubernetes_tutorial.ipynb.
Defects found while auditing
Two were real and are worth carrying forward whenever this is restored:
check_k8s_job_statusreported failed jobs as successful. Its exception paths returned"completed", so a job that died came back as a normal completion.- Results were decoded with
ast.literal_evalon the pod log, falling back to returning the raw log text as if it were the function's return value.
Both were fixed during the v0.2.0 sweep, and neither fix has been run against a real cluster.
Note on scope
The five cloud provisioners under clustrix/kubernetes/ are removed with this issue rather than with the per-provider issues, because they are Kubernetes cluster provisioners, not the VM-based cloud execution backends. See the AWS/GCP/Azure/Lambda issues for those.
Why it is being removed rather than fixed
Not because the code is known to be wrong. Because it has never been run against the real thing, and shipping it in the cluster-type dropdown states otherwise. A user who selects it gets a code path no one has ever seen succeed.
v0.2.0 keeps exactly the four backends that have been demonstrated end to end -- local, ssh, slurm, huggingface -- and the documentation now says the rest are planned for a future release rather than currently supported.
Restoring it
Nothing is lost: every line cited above stays reachable in git history at the commits named. Reinstating it means reverting the removal commit and then doing the part that was never done -- running it against real hardware and recording the evidence in this issue.
Definition of done
- Backend restored from history
- A real job submitted, executed and its result returned, with the transcript pasted into this issue
- Failure paths exercised (job rejected, job killed, node lost)
- Re-added to
SUPPORTED_CLUSTER_TYPES, the widget dropdown and the CLI - Documentation moved from "planned" to "supported"
- Lingua principale
- Python
- Stelle
- 10
- Fork
- 4
- Merge medio
- 15h 10m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ContextLab/clustrix
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
ContextLab/clustrix#175 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ContextLab/clustrix#170 ·
-
enhancement epic
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
ContextLab/clustrix#160 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
ContextLab/clustrix#155 · 1 commento ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
ContextLab/clustrix#151 · 5 commenti ·
Tutte le issue di ContextLab/clustrix
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
stephrobert/dsoxlab#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sublimehq/package_control#1780 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nwg-piotr/nwg-displays#145 ·