v0.6.0
GitHub
  1. Docs
  2. Deploy & operate
  3. Workload states
Rendered from innerwall v0.6.0

Workload states

Every word the console and the API use for a workload's condition, what each one means, and what to do about it. The workload's page shows its exceptional states as chips beside the tabs, critical first, each opening its explanation; the Workloads table shows its sync state, mode, and agent.

Modes

A workload's mode decides what its table does with a new inbound connection that no rule admits (ADR-0001, ADR-0020). Every workload starts in visibility.

ModeAPI valueThe tableSuch a connection is recorded as
VisibilityvisibilityOne observe chain that engages connection tracking and accepts everything; no rules installedobserved
SimulationsimulationThe exact enforced ruleset, with a terminal rule that accepts and recordswould_block
EnforcedenforcedThe ruleset, with a terminal rule that logs and dropsblocked

A connection a rule admits is recorded as allowed in simulation and enforced.

Sync states

A workload's sync state is its convergence with its latest rendered policy, as its sync stream reports it. The API's sync.state is one of four values; the console draws each with a glyph as well as a word, so color is never the only signal.

StateGlyphMeaningWhat to do
Syncedsolid discThe agent acknowledged applying the latest rendered version.Nothing.
Pendinghalf-filled ringA stream is open and the agent has not yet acknowledged the latest version: it was just rendered, or the stream just began.Wait; it clears when the agent applies. If it stays, read the agent's journal.
Degradedsolid triangleThe agent reported that applying the latest version failed. The host keeps the policy it had before.Read the failure on the workload page (innerwall workload status prints the sync error), fix its cause on the host, then Resend snapshot.
Offline× in a squareThe control plane recorded the workload's sync stream ending, or the agent has never connected.Check the host and the agent. Enforcement on the host is unchanged (fail static).
The Workloads table: each workload's labels, mode, sync state with its note, applied version, credential, and agent versionThe Workloads table: each workload's labels, mode, sync state with its note, applied version, credential, and agent version
The Workloads table, in attention order.

The note beside the state says more: the version not yet applied, when an apply failed, or how long there has been no contact ("no contact for 2h", "never connected").

Reconnecting. A workload whose sync stream is down while its flow reports still arrive reads Reconnecting instead of Offline: the control channel is reconnecting, but the agent is running and reporting ("control channel down · flow reports arriving"). Flow reports count as live when one arrived within two flow windows (two minutes by default) of the read; the API's health.telemetry_live. In the API it is still sync.state offline, and the simulation review counts the workload as offline.

Enforcement removed on host. A workload whose agent reports that its owned table is gone from the kernel (the local kill switch, or anything else that deleted it) reads Enforcement removed on host, whatever its sync state: nothing on the host is enforced or observed. The API's health.owned_table.state is absent. The fleet's removed filter selects these workloads, they rank with the degraded ones at the top of the fleet's order, and GET /api/v1/workloads/counts counts them in removed and in no sync state. The stored sync state still records the version the agent acknowledged, so the sync-state filters (the fleet's state chips, GET /api/v1/workloads?sync_state=…) still match a removed workload by that state: a kill-switched host whose last acknowledgment was synced is listed under synced, where its row reads Enforcement removed on host, but is not in the synced count. To restore the table, Resend snapshot (the kill switch).

Retired

A workload the operator retired (innerwall workload retire, POST /api/v1/workloads/{id}/retire) is in a state of its own, not a sync state: offline is something to fix, and retired is something the operator decided (ADR-0023). In the API its lifecycle is retired and retired_at says when; its sync.state is only the last its stream recorded. It is outside the fleet's attention ordering: GET /api/v1/workloads lists the active fleet unless asked for lifecycle=retired, and GET /api/v1/workloads/counts counts it in retired alone, in no sync state and not in the total. Retirement is one way. The workload's credential is refused at renewal and on every agent call, with a refusal that names no reason; its live stream is ended; its addresses leave every peer set, and flow ingest no longer attributes them to it; and its labels and mode are frozen, so a write naming it is refused with the instant. Its flows, totals, and evidence gaps stay readable under its id, and a silence its agent was in when it was retired is stored as an agent_silent gap ending at the retirement. Retiring does not revoke the provisioning token that enrolled it. The host returns only by enrolling again, as a new workload; its old credential is still valid on the host until it expires, so stop the daemon and remove the agent's state directory before enrolling, since enrollment refuses to overwrite a valid credential (credential lifecycle).

In the console a retired workload is drawn as the operator's decision, not as health: the gray circle-minus icon and the word Retired in the neutral tone, never a status glyph, so it reads apart from an offline row. The fleet's retired chip, beside the state chips and counted from retired, lists the retired workloads instead of the active fleet, most recently retired first; their rows cannot be selected, since their mode is frozen. The Workloads count in the sidebar never includes them. A retired workload's page leads with the retirement and its instant; its live chrome is quiet: no offline, removed, degraded, or expired-credential alarm, no Resend snapshot, no label edit or mode change, and the Status card's facts are what was last recorded before it. Only the states that change how its history reads (clock skew, evidence gaps) remain.

A retired workload's page: the retirement and its instant above the cards, the credential refused, and nothing liveA retired workload's page: the retirement and its instant above the cards, the credential refused, and nothing live
A retired workload.

Retire… on a workload's page (in Host facts, beside its identity) and Retire selected… on the fleet retire through POST /api/v1/workloads/{id}/retire, one request per workload, behind a dialog that says what retiring does and an acknowledgment that it cannot be undone. A workload already retired is reported with the instant it was, and an id nothing is registered under is reported as such; nothing changes for either.

Credential

API health.credential.stateConsoleMeaning
renews"renewal due in 9h", then "renewal due now"Valid, and the last renewal that was due succeeded.
renewal-failed"renewal failed · retrying"Valid, but the agent's last renewal attempt failed; the error is on the workload page.
expiredby lifecycle, below, and the Credential expired chipPast its expiry. It may still renew, and do nothing else, within the control plane's renewal grace (72 hours unless set otherwise); beyond it the workload must be re-enrolled.

health.credential.lifecycle says what the control plane will still accept from the credential, judged against the renewal grace it is configured with, which no client can know; health.credential.renewable_until is when that grace ends.

API health.credential.lifecycleConsole (fleet · workload page)Meaning
validthe state's words · "valid · renews by 10-21 21:00 UTC"Not yet expired. The page dates renewal by the two-thirds mark of the lifetime since the credential was issued: the agent's first attempt falls by then, never later.
in-grace"expired 5h ago · in grace" · "expired 5h ago · will recover by renewal", until renewable_untilExpired, and may still renew until renewable_until. The agent keeps retrying; the workload recovers by itself, with the same identity, once a renewal succeeds.
past-grace"expired 4d ago · re-enroll" · "expired 4d ago · needs re-enrollment", with Mint a provisioning tokenExpired beyond the grace. Nothing accepts it; the agent keeps enforcing its last policy and retrying, and the workload returns only by enrolling the host again with a new provisioning token, as a new workload (credential lifecycle).

A retired workload's credential is refused whatever its lifecycle says (retired); the console says "refused · retired".

After a renewal made with an already expired credential, the console shows "renewed 3h late" beside the countdown, from health.credential.last_late_renewal. What each case means for the host is in credential lifecycle.

health.credential.serial and expires_at describe the credential last issued; health.credential.last_presented is the serial and expiry of the one the workload's latest sync stream opened on, null until a stream has opened. A stream keeps its credential until that credential's end, so after a renewal the two differ until the next stream. last_presented is the credential in use only while sync.state is not offline.

The workload page's Status card shows both: issued, the serial last issued with its expiry, and in use, the serial the live stream presented with its expiry, or presented while the stream is down, as what the last stream opened on; nothing is shown before a stream has opened since the control plane began recording it. When the stream's credential is not the one issued, the in-use serial is marked with the alert glyph ("not the one issued"). After every renewal this is expected until the stream reconnects, by five minutes before its credential expires; a hand renewal under a running daemon reads the same (credential lifecycle). If the two still differ after that reconnect, a second party may be renewing the identity with a copy of its key: retire the workload and enroll the host again.

Other chips

ChipMeaningWhat to do
Clock skewA flow report showed the agent's clock off from the control plane's by more than two flow windows. The workload's windows are stamped with the wrong time by about that much.Re-sync the host's clock (troubleshooting).
Evidence gapThe workload has an evidence gap in the range shown (below).Read its kind.

Evidence gaps

An evidence gap is an interval in which a workload's observation is known to be incomplete (ADR-0019). Gaps are shown on the workload's Overview ("the agent was not reporting between 13:02 and 13:04 UTC"), on the flow map, and in the simulation review, where a gap intersecting the review's range fails the verdict on its own. They are read with GET /api/v1/flows/gaps and innerwall flows gaps.

KindConsole textWhat happenedWhat to do
source_overrunthe kernel dropped eventsA flow source's socket buffer was full and the kernel dropped connection events.Raise --flow-netlink-buffer on a host with bursts of new connections.
source_restarta flow source was downA flow source failed and was down until it subscribed again.Read the agent's journal for the failure.
buffer_overflowthe agent dropped buffered windowsThe control plane was unreachable long enough that the agent's buffer of closed windows overflowed, and the oldest were dropped.Expected after a long outage; raise --flow-buffer-records to ride out longer ones.
dump_truncatedthe connection table was cut at its boundAt subscribe, the connection table held more entries than --flow-dump-max.Raise --flow-dump-max on a host with very many connections.
window_overflowthe agent's flow window was fullAn open window held --flow-window-keys distinct keys, and observations for new keys were dropped until it closed.Raise --flow-window-keys on a host with very many distinct peers.
window_rejectedthe control plane refused a malformed windowThe control plane refused a closed window as malformed, and the agent dropped it rather than retry it.Read the agent's journal (flow window refused by the control plane as malformed) and the control plane's log for the window it refused.
table_removedenforcement was removed on the host, so nothing was observedThe owned table was gone from the kernel, so nothing was enforced, observed, or classified. Reported with each window while it lasts.Restore the table (the kill switch).
agent_silentthe agent was not reportingNo flow report arrived from the agent for longer than two flow windows, no window delivered afterwards covered the interval, and no heartbeat showed one agent process running through it: the agent process was down, or it lost what it would have reported.Find out why the agent was down: the host's journal around the interval.

agent_silent is the one kind the control plane derives itself, from the instants it received consecutive reports, so it needs no cooperation from the agent and the agent cannot claim it. It is written when the agent reports again: while the silence lasts, the workload shows it as offline (or as a live control channel with no flow reports), and the stored gap appears once the agent returns. Windows that arrive late because the agent buffered them through an outage cover the time they were held back, so an outage the agent rode out, or a quick restart, records no gap. A quiet workload records none either: the agent sends no report for a window in which it saw nothing, and each heartbeat's uptime shows the control plane that the process which sent the last report is the one sending the next. Every other kind is reported by the agent, which knows it lost evidence; its source is conntrack or nflog where one source lost it, and null otherwise.

Flow counts

A stored flow window aggregates connections by peer, service, decision, and rule (ADR-0009). Its counters mean:

  • Connections (connection_count): connections opened, or found live when the flow source subscribed, in the window. A connection that predates the source's subscription (at agent start, or after the source restarted) is counted once, first seen at the subscription.
  • First seen (first_seen): the first time the agent saw the key in the window, which is not necessarily when the connection opened.
  • Bytes: counted only when the host has per-connection accounting enabled (net.netfilter.nf_conntrack_acct=1); zero otherwise.

Resend snapshot

Resend snapshot on a workload (POST /api/v1/workloads/{id}/resend-snapshot, innerwall workload resend-snapshot) directs the workload's agent to reconnect, so its new stream begins with a fresh snapshot of its policy. It is a request, not a command with a confirmation:

  • A 200 means the directive was fired, not that it reached the agent. No replica can know for certain that a stream exists, so delivery is best-effort by design (ADR-0018), and nothing records or retries it.
  • The confirmation is the last snapshot instant on the workload (sync.last_snapshot_sent_at) moving. The console says "Reconnect requested. The snapshot instant above moves once the agent has reconnected." and then "The agent reconnected and was sent a fresh snapshot."
  • A workload the control plane last recorded as offline (Reconnecting included) is refused with when it was last heard from: an offline agent is sent a fresh snapshot whenever it next connects anyway.

If the instant never moves, see troubleshooting.