Skip to content

edge: 'registry unavailable for initial snapshot' logs at ERROR on the designed #740 startup retry #766

Closed

Description

@bpalermo

Observed during the rev213 deploy validation on talos-main (2026-09-13 00:34:08Z): aether-edge logged

registry unavailable for initial snapshot; starting with local-only config and retrying in background

at ERROR level while its SPIRE SVID had not been issued yet. This is the designed #740 behaviour (never exit on a missing identity, hold and retry), and it self-healed within seconds: aether_edge_spire_svid_ready=1, the external gateway returned 200 on all three routes, and it was the only ERROR line across all six components for the whole roll.

A self-resolving, expected startup retry should not log at ERROR: it trips every "zero ERROR lines" gate used in soak/deploy grading and pages nobody for a real problem. Suggest WARN (or INFO with a retrying=true attribute), matching how the agent logs the equivalent local-only path, and keep ERROR for the case where the retry budget is exhausted.

Refs: #740, #746 (agent-side initial-snapshot semantics), validation record for rev213.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    bug
    on Sep 13, 2026
  2. bpalermo commented on Sep 18, 2026

    @bpalermo
    OwnerAuthor

    Same class, second site (found validating proposal 036 phase 1 on rev217): the node agent logs one ERROR per managed pod when the stored-pod resubscribe loop runs before the agent's own SVID has landed — the Broker mTLS dial has no client certificate yet and gRPC returns Unavailable (no SPIRE SVID yet: still waiting for the Workload API to issue this workload's first SVID). Self-heals in ~1.2 s at zero prober cost; hit main-worker-01 on the roll (9 lines) and main-worker-03 during a SPIRE agent restart (24 lines). Correct #740 behaviour, wrong severity: it should be WARN (or INFO with retrying=true) until the wait exceeds --spire-wait-warn-after, exactly like the edge line this issue is about. Fix both in one PR; afterwards 'zero ERROR lines' is a usable grading bar for agent restarts again.

  3. bpalermo commented on Sep 18, 2026

    @bpalermo
    OwnerAuthor

    New sub-class from the 30-minute soak on rev217 (2026-09-18, TRIPLE step, main-worker-02): a pod termination that lands inside the freshly restarted agent's pre-SVID window logs two ERROR lines —

    • termination: failed to mark endpoint draining…
    • fallback deregistration also failed; CNI DEL will retry

    Both are the designed path: the registrar client has no identity yet, the CNI DEL / ghost sweep reconciles afterwards, and it did (0 prober errors on the node, no ghost endpoint left). Same family as the edge line and the agent Broker startup race already listed here: a retry that is expected to fail once should log at WARN with the retry owner named, and ERROR only when the owner gives up. The message is also now wrong since #798 — CNI DEL no longer retries on the agent's behalf; the ghost sweep is the owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions