Skip to content

fix(infra): the apply gate leaves out alerts of offline nodes #5455

Closed

Description

@dan-petty

Problem Description

The apply health gate of devops infra apply leaves out the nodes of the inventory's offline group when it checks the node state (node_health in src/devops_cli/infra/nodes.py), but it does not leave them out when it checks the critical alerts (critical_alerts, query ALERTS{alertstate="firing",severity="critical"}). So a parked node still stops every apply in the cluster through its own alert.

Case of 2026-11-13: hawk is parked (cordoned, NotReady) and is in the offline group since homelab#43. The gVisor apply on another node (plan 592b81ee, 6 changes) then stopped with: "The cluster is not healthy, so the apply starts no host: the critical alert NodeNotReady fires". The alert is the one for hawk.

Expected vs Actual Behavior

Expected: the gate leaves out a critical alert whose node label (node, or the node of instance) names a node of the offline group, as it leaves out the node itself. An alert with no node label, or for another node, still stops the apply. The plan and the apply say which alerts they left out and why.

Actual: every firing critical alert stops the apply.

Proposed Fix

  • In critical_alerts (or Cluster.health and Cluster.alert_health), drop each alert whose node label is in offline_nodes, and keep the rest. Also apply this in wait_alerts_clear, so the wait after an apply does not hang on the parked node.
  • Print one line for each alert left out.

Acceptance Criteria

  • A test proves that a firing NodeNotReady with node=<offline node> does not stop the gate, and that the same alert for another node, or an alert with no node label, still stops it.
  • uv run devops ci fail-to-pass --base origin/main shows the first test fails on the base.
  • Live proof: the gVisor apply of homelab playbook 14_gvisor.yaml on its node passes the gate while hawk stays parked.

Existing Tool Considered

The Prometheus query result labels that the gate already reads. No new tool. Cost to build (estimate): 0.15 M tokens and 1 hour.

Related

#5120 (devops infra), homelab#43, #5431 and #5434 (gVisor).

Activity

  1. added
    type/bug
    source/agent
    scope/infra
    status/new
    value/medium
    effort/low
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 18:17 UTC

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

    effort/lowpriority/p2-mediumscope/infrasource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions