[qemu-lane] Radio-less routers: wireless_gateway_manager WARNs 'no radios found' + UCI 'Entry not found' errors every scan cycle

Aperta
#819 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à
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, linux
Ambito
networking

Direzione di ricerca

The log lines come from the wireless_gateway_manager module, which runs a per-cycle scan and an STA cleanup step that calls uci. Start by finding where the scan decides there are no radios and where the STA-section lookup runs, then check how a missing /etc/config/wireless is handled. Done means a radio-less router logs one INFO line and skips the repeated ERRO/WARN pair, while radio-equipped routers behave as before.

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

Descrizione

found-by:qemu-lane

Found by the vlab QEMU installer-e2e lane (OpenWrt 24.10.1 x86_64 VM — Ethernet only, no wireless config at all; tollgate-wrt 0.6.0_rc1_pre26-r1, build v0.6.0-rc1-g4614ac2).

After a successful installer deploy, a radio-less router logs this pair on every scan cycle:

daemon.err tollgate-wrt[...]: ERRO ... Failed to execute UCI command  error="exit status 1" module=wireless_gateway_manager stderr="uci: Entry not found\n"
daemon.err tollgate-wrt[...]: WARN ... Failed to cleanup stale STAs before switch  error="failed to get STA sections for cleanup: exit status 1" module=wireless_gateway_manager
daemon.err tollgate-wrt[...]: WARN ... Scan failed, retrying next cycle  error="no radios found" module=wireless_gateway_manager

The service is otherwise fully healthy (all runbook §4 checks pass; kind-10021 ad serving, sessions would work on wired clients). But on x86/VM targets this is permanent log spam at daemon.err level, and uci: Entry not found from the STA cleanup reads like a defect rather than the expected "this box has no /etc/config/wireless" steady state.

Suggestion: detect the no-radio/no-wireless-config case once and treat it as a supported state: log a single INFO ("no radios present; wireless gateway manager idle") and skip the per-cycle scan attempts, or at least demote the ERRO/WARN pair. Low severity — log hygiene on x86/VM deployments, which the release club's QEMU lane now exercises routinely.

Lingua principale
Go
Stelle
12
Fork
14
Merge medio
3g 22h
PR unite (30g)
262

Preparare l'ambiente

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 OpenTollGate/tollgate-module-basic-go

Tutte le issue di OpenTollGate/tollgate-module-basic-go

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.