agentmesh-node run fails on restart when --bootstrap-token-path is still set
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- distributed-systems, networking
Direzione di ricerca
Start with cmd/agentmesh-node/main.go at the token resolution around line 320 and the stored identity branch around line 474. Trace how the control plane URL and stored identity are checked, then run the node enrollment tests. Done means a node can restart with the spent token, stay healthy, and retain the same PeerID; explicit reset and mesh switching should still re-enroll.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A node enrolled with a single-use token can't restart with the same command line:
agentmesh-node run --control-plane http://127.0.0.1:8090 --bootstrap-token-path tok --data-dir ./n1 # first run: OK
# stop it, then run the identical command again:
agentmesh-node run --control-plane http://127.0.0.1:8090 --bootstrap-token-path tok --data-dir ./n1
# FATAL ... Bootstrap token max usages exceeded
Dropping --bootstrap-token-path brings the same peer back healthy with its stored identity.
Cause: cmd/agentmesh-node/main.go:320 resolves the token file into bootstrapTokenFlag. The stored-identity branch at :474 only runs when jwtStr == "" && bootstrapTokenFlag == "". A token on the command line therefore always forces re-enrollment, even when a valid identity for the same control plane is already stored.
This bites anything that starts nodes from a fixed command line or unit file: systemd, scheduled tasks, Kubernetes args. The token is spent after the first boot, and every restart after that fails.
Proposal:
- If a stored identity exists for the same control plane URL, use it, and log that the supplied bootstrap token was not used.
- Keep explicit re-enrollment unchanged:
agentmesh-node reset, or--joinwhen switching meshes. - Add a regression test: enroll, restart with the spent token, and expect a healthy node with the same PeerID.
Happy to send the PR if this direction works for you.
- Lingua principale
- Go
- Stelle
- 1.2k
- Fork
- 207
- Merge medio
- 1g 10h
- PR unite (30g)
- 85
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun 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 google/agentmesh
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
google/agentmesh#952 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Proposal: Out of Band Host Containment and Local Veto Hook for Uncooperative Agents (KillSwitch Integration)Forse già presa @oyesanyf l’ha presa 15 giorni fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
google/agentmesh#879 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
google/agentmesh#844 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di google/agentmesh
Issue simili
-
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 72/100
projectcalico/calico#14766 ·
I maintainer di solito rispondono entro 1 giorno
-
forward/review service/container
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
hashicorp/terraform-provider-google#30852 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
docs(scheduling): a rolling deploy can open a second launch-gate episode (old replica after new)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
SocialGouv/iterion#3826 ·
I maintainer di solito rispondono entro 1 giorno