docs: default RuntimeClass needs the resource admission labels
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, helm, kubernetes, rust
- Ambito
- documentation
Direzione di ricerca
Inizia dal commento nel file dei values del chart Helm per server.defaultRuntimeClassName e dalla sezione della documentazione di configurazione del gateway sull'ammissione delle risorse, che secondo la issue non menzionano il requisito sulle label. Verifica nel codice del driver Kubernetes dove la RuntimeClass predefinita viene controllata rispetto alle label di ammissione, e annota che supervisor_runtime_class_name non viene controllata. È completato quando entrambe le posizioni della documentazione indicano il requisito sulle label e l'eccezione, e la formulazione corrisponde ai passaggi di riproduzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
User Story
I use OpenShell's Kubernetes driver and I am running its sandboxes under Kata Containers for VM-level isolation. I directly hit this while setting default_runtime_class_name to a Kata RuntimeClass on a test cluster. This affects anyone who sets a default RuntimeClass for all sandboxes.
Problem Statement
With server.defaultRuntimeClassName (default_runtime_class_name) set to the name of a RuntimeClass that has no labels, every openshell sandbox create fails with external resource not admitted by required labels. The docs for defaultRuntimeClassName and the resource admission section on the gateway configuration page do not say that the default RuntimeClass has to carry the admission label. The admission section only describes resources that a caller selects. supervisor_runtime_class_name is not subject to the same check, which is also not documented.
Impact / Why This Matters
Operators who configure a default RuntimeClass get a failing sandbox create and nothing in the chart values or the configuration docs points at the cause. The workaround is to find the label requirement in the admission section and label the RuntimeClass (openshell.ai/sandbox-attachable=true by default). Until then no sandbox can be created on that gateway.
Acceptance Criteria
- The documentation next to
defaultRuntimeClassName/default_runtime_class_namestates that the RuntimeClass needs the resource admission labels. - The resource admission section states that the check covers the default RuntimeClass and that
supervisor_runtime_class_nameis not checked.
Reproduction Steps
- Create a RuntimeClass with no labels, for example one named
my-runtimewhose handler exists on the nodes. - Install the chart with
server.defaultRuntimeClassName=my-runtime. - Run
openshell sandbox create --name t1 --no-tty -- true. - The command fails with
RuntimeClass 'my-runtime': external resource not admitted by required labels. - Run
kubectl label runtimeclass my-runtime openshell.ai/sandbox-attachable=trueand repeat step 3. It succeeds.
Suggested UX (if applicable)
Documentation only. No behavior change is requested.
Environment
- OpenShell: gateway 0.1.9-dev.30+g2e5589b21 (built from main at 2e5589b21), Kubernetes driver, Helm chart from the same commit
- OS: Fedora, kind v1.36 test cluster
- Runtime: Kata Containers 4.3.1 (QEMU), RuntimeClass handler
kata-qemu - The check was run with an AI coding agent (opencode) under my direction. I have not hit this in production.
Logs
Error: × code: 'The system is not in a state required for the operation's
│ execution', message: "RuntimeClass 'kata-qemu-unl': external resource not
│ admitted by required labels"
- Lingua principale
- Rust
- Stelle
- 21.5k
- Fork
- 2.1k
- Merge medio
- 2g 21h
- PR unite (30g)
- 250
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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 NVIDIA/OpenShell
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
bug(python): OIDC refresh drops the gateway's oidc_scopesForse di nuovo libera @jyotir07 l’ha presa 19 giorni fa e non c’è nessuna pull request aperta. Apertastate:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
NVIDIA/OpenShell#4919 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug: workspace access hint suggests a --subject command that fails for hyphen-leading OIDC subjectsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NVIDIA/OpenShell
Issue simili
-
comp-formats
Difficoltà 2/5 Mezza giornata Idoneità per principianti 64/100
ClickHouse/ClickHouse#131694 ·
I maintainer di solito rispondono entro 1 giorno
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Copperpour/Copperpour#500 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
storytold/photocraft#14822 ·
I maintainer di solito rispondono entro 1 giorno