Documentation home · Operator guide · API reference
Orbit writes timestamps, severity, logger name and a four-character action
prefix. Error messages occupy one line without traceback or HTTP-header dumps.
They identify the manifest filename when available, or the Kubernetes object's
kind, name and namespace. Some errors contain both. Cluster-scoped targets use
Namespace=<cluster>. The outer logger name identifies the worker.
Action prefixes
| Prefix | Meaning |
|---|---|
==>>, <<== |
Begin/end a reconciliation run or source-processing stage. |
===> |
Create or update action. |
<=== |
Delete action, including recreation. |
===! |
Skip a create/update action, such as Git no-update or ownership priority. |
!=== |
Skip deletion, such as live no-delete or an already absent target. |
===X |
Failed manifest parsing, inventory validation, API discovery, CREATE or REPLACE. |
X!== |
Failed DELETE, including the delete step of recreate-on-change. |
=!XX |
Operational failure, such as Git access, worker registration/reload, status persistence or policy refresh. |
==W> |
Operational warning; processing continues. |
==X> |
Non-fatal validation warning; a documented default is used and processing continues. |
CREATE/REPLACE messages begin ===> Creating / ===> Updating; deletion and
acceptance messages begin <===, and live no-delete/ownership skips use !===
and ===! respectively. Startup, listener and watch notices also carry a prefix.
Dynamic notices without a more specific action, including HTTP access records,
receive ==>> (==W> for warnings). Existing action/error prefixes are preserved.
Severity and action are separate: a registry-policy refresh failure can be a
warning while retaining the operational error prefix. The last valid policy
remains active. Policy read errors name ConfigMap
kube-system/orbit-deploy-registries; Service errors identify the configured
Service. A failed Service CREATE uses the apply-error prefix.
Zombie Git processes
A process in state Z, often displayed as [git] <defunct>, has already exited
but its parent has not collected its exit status. Killing that process cannot
remove it; its parent or an adopting init process must reap it.
SSH Git sources use the Git executable and OpenSSH. HTTPS sources use pygit2/libgit2 instead. Git's command-line fetch can start automatic maintenance which detaches into the background, including on unchanged fetches with some Git versions. The original Git command can finish and be reaped correctly by Python while a detached descendant is adopted by PID 1. Older Orbit images started Python directly as PID 1 without an orphan reaper, allowing these descendants to accumulate as zombies. This was reproduced with a local Git source; it does not require GitHub. Compare URL transport and Git/image versions before attributing a difference between clusters to GitHub versus GitLab.
The controller now passes maintenance.autoDetach=false and gc.autoDetach=false
to each SSH Git command. Maintenance still runs when needed, but stays within
the command's lifetime and is waited for. Both settings override repository
configuration and cover Git versions using the maintenance or GC path. The
image also runs Tini as its entrypoint to reap orphaned descendants without
adding a global Python waitpid handler that could race with worker subprocesses.
See the upstream Git configuration reference
and Tini documentation.
Inspect the affected pod (replace the name, namespace and container as needed):
kubectl -n kube-system get pods -l app=orbit-deploy -o wide
kubectl -n kube-system exec <orbit-pod> -- ps -o pid,ppid,stat,args
kubectl -n kube-system exec <orbit-pod> -- git --version
In a multi-node cluster, run node-level process checks on the node shown for the OD pod, or inspect from inside that pod. A clean process list on another node does not establish that the cluster is unaffected. Recheck pod placement after a rollout because the replacement may run on a different node. The reported eight-cluster incident was confirmed across all sites after correcting which nodes were inspected; it does not require a bandwidth/load difference between sites to explain its distribution.
Record the image version, source URL scheme and several zombie PID/PPID rows. With an older default entrypoint, zombie Git processes parented to Python PID 1 fit the reproduced failure. A different parent or processes in a running/sleeping state require checking that parent's lifecycle or an active transfer instead. Avoid sharing credentials, private keys or credential-bearing URLs.
For inconsistent results between sites, compare an affected and unaffected pod's
actual imageID, Git version, uptime and successful SSH fetch activity. The same
deployment configuration or image tag does not establish identical running code.
The supplied bootstrap manifest uses :latest with imagePullPolicy: IfNotPresent;
node caches can therefore select different builds after a restart. A pod that
moves to another node can change builds even without a manifest change. Check
the live pull policy and imageID rather than assuming the bootstrap settings
match a self-managed installation. See the upstream
Kubernetes image reference.
If all sites use the same digest-pinned image, mutable-tag caching is excluded
for that comparison; investigate parents, runtime configuration and fetch activity.
kubectl -n kube-system get pods -l app=orbit-deploy \
-o 'custom-columns=NAME:.metadata.name,NODE:.spec.nodeName,IMAGE:.spec.containers[0].image,IMAGE_ID:.status.containerStatuses[0].imageID'
When collecting ps from the node, its PIDs refer to the host namespace.
Group zombies by PPID and identify every parent before assigning the total to
the current pod or its age. Multiple host parents can require separate lifecycle
investigation even if Orbit is the only Git user on the node. From the node,
using each observed parent PID in place of <parent-pid>:
ps -p <parent-pid> -o pid,ppid,lstart,etimes,stat,args
grep -E '^(Name|Pid|PPid|NSpid):' /proc/<parent-pid>/status
cat /proc/<parent-pid>/cgroup
NSpid maps the host-visible process to its nested namespace IDs. A Python
controller whose last namespace PID is 1 fits the missing-init-reaper path.
The cgroup identifies its container/pod association. Capture parent information
before another restart; refresh PIDs if a parent has exited. State Zs means
a zombie that was a session leader, consistent with a daemonized descendant,
but that state alone does not identify its command's original purpose. See
PID namespaces,
/proc status fields
and process state codes.
Bandwidth, CPU, memory or storage pressure can change transfer duration,
completion rate and failure paths. These are possible triggers to investigate,
not evidence that an exited process should remain unreaped. A true zombie has
already finished; distinguish state Z from a live transfer waiting on a socket
or I/O. Compare zombie growth per completed fetch and capture the parent PID.
The local Git 2.47.3 reproduction leaks even on successful unchanged fetches;
it does not require a large repository or a maintenance threshold to be reached.
If sites run the same build, Git settings and reaper configuration, and all
complete comparable fetches, a clean site's result needs further explanation.
The local defect is confirmed independently of the customer incident; SSH alone
does not confirm the incident's cause.
A controlled local SSH-command fixture also reproduced orphaned shell processes when Git exited after a simulated connection failure. Foreground maintenance does not address this separate failure path; the Tini entrypoint reaps these descendants. Delaying successful fixture transfers did not change the number of leaked Git descendants per fetch in the original code. This is a timing and failure-path check, not a measurement of real network bandwidth or site load. Correlate new zombies with Git/SSH failures, timeouts, OOM events and actual successful-fetch activity before assigning a site-specific trigger.
Build and roll out the corrected image using the normal one-replica Recreate
deployment. Restarting an old image clears existing zombies but leaves the
cause in place. Replacing the affected pod clears its old process namespace;
the new image prevents this accumulation. Check that the deployment does not
override the image entrypoint with a direct Python command, that Tini is running,
and that repeated process snapshots over several reconcile intervals show no
growing zombie count. Maintenance may add time to a transfer when compaction is
due because it now completes before the transfer returns.
Slow reconciliations
Measure one worker's ==>> Start run to <<== End run duration=...s. The
reported duration uses a monotonic clock and excludes the approximately
30-second wait after the run. lastRun and the console's Last Run field mark
status persistence, not duration; intervals between them include the wait and
work in the following iteration.
Stages taking at least one second log a warning, including failed stages:
==W> Slow reconciliation stage=source duration=7.200s
==W> Slow ownership transaction resource=apps|Deployment|apps|web wait=4.100s refresh=0.030s operation=0.050s
==W> Slow reconciliation stage=apply duration=4.240s
<<== End run duration=11.490s
Stage names are load, source, discovery_compile, apply, prune and
store. source includes credentials, Git transfer/checkout/verification,
rendering and any image resolution. An OD with no images still fetches Git.
Stage warnings include nested work; do not add an apply-stage duration to its
ownership transaction durations.
Ownership timings distinguish:
wait: time waiting to acquire this resource's ownership lock.refresh: reading and validating this transaction's ownership ConfigMap snapshot.operation: work after refresh while holding the resource lock, including live-object GET, CREATE/REPLACE/DELETE, ownership writes and any CAS retries.
Ownership uses resource locks, so a slow request for one target does not hold a controller-wide lock across unrelated requests. Locks cover group/kind/name across served API versions and namespaces to protect legacy portable aliases. Matching names of the same kind/group therefore still share a lock across namespaces; different names or kinds do not. Background refresh and owned-object metrics do not acquire resource locks. See ownership transactions.
Unchanged objects avoid workload and ownership writes but still read a fresh ownership ConfigMap snapshot and GET the live object. Six unchanged desired objects require six ownership reads and six object reads, in addition to OD, credential, conditional and source operations as applicable. Removing global serialization does not remove those API costs or guarantee a run duration when API responses, source work or controller scheduling are slow.
The earlier controller-wide lock caused confirmed staging delays on 2026-11-18: Orbit Console spent 66.135s applying during a 69.955s run, and a dnszones CRD waited 58.141s for ownership before 0.329s of refresh/object work. Regression fixtures now require independent operations to finish while another resource's live GET, ownership GET or ownership PATCH is held. The unchanged six-manifest probe also finishes while an unrelated transaction remains held. Compare customer warm-run timings after rollout to verify the deployed improvement.
The worker activity phase distinguishes ownership_wait, object_get and
object_apply while applying. ownership_wait includes the ConfigMap refresh
before the transaction yields. /api/deployments/<namespace>/<name> exposes
the phase and seconds since its last update. These are progress indicators,
not a trace of completed request durations. Ownership warnings are emitted
when the transaction exits; a still-blocked transaction has not logged its final
timing yet. The existing reconcile-duration histogram aggregates workers and
does not identify a slow individual OD.
Compare timestamps and warnings for the affected OD and other workers sharing
its controller. Slow Git operations, discovery, Kubernetes response delays and
lock contention require different fixes. A Source ref=... commit=... message
means Git checkout/ref resolution has completed; verification, rendering and
image processing still follow within the source stage. A long gap after that
message must not be attributed entirely to Git transfer.
storage is (re)initializing returned to the OD watch is Kubernetes's server-side
watch-cache readiness error. It does not by itself identify an etcd, disk or
OD discovery-cache fault. Correlate it with API-server/control-plane logs and
CRD changes at the same time; see the upstream
watch-cache readiness implementation.
Refresh/operation timing also includes client processing and time the controller
was not scheduled, so compare API latency with Pod/node CPU and throttling
before assigning all elapsed time to server processing. The Kubernetes (5, 30) request timeout
bounds connection/read inactivity; it is not a fixed two-minute reconciliation
delay or a whole-run deadline. See tracked latency work.
Find a failed manifest
YAML errors include the filename and document number, plus line/column when
provided by the parser. A file.yaml:2 origin means its second YAML document,
not its second source line. Duplicate explicit YAML mapping keys and duplicate
desired objects are different errors:
===X nested/settings.yaml (document 1): Duplicate manifest key: name at line 6, column 3
===X Duplicate desired identity |ConfigMap|apps|settings in second.yaml:1; first declared in first.yaml:1
The desired identity is API group, kind, effective namespace and name. Its leading group is empty for core resources. API versions within one group do not distinguish objects. Even identical copies are rejected; remove the repeated declaration. Separate ODs can target the same resource using normal ownership/priority arbitration; duplicate detection is within each inventory.
Missing API discovery errors name the kind and API version and explain that a required CRD may be missing or the API version may not be served. Check the target cluster's installed CRDs and served versions. Transport/RBAC errors require fixing those reads; they do not establish that an API is absent.
Interpret failure scope
A malformed OD or failed worker construction stays pending and is retried without blocking unrelated registrations or later watch events. A reload failure keeps the worker's previous complete snapshot. Check registration logs when an OD exists in Kubernetes but has no console row.
Source access, rendering uncertainty and scope/identity conflicts stop the pass before workload application. Invalid YAML/resource shape, API discovery failures and individual API syntax/state errors are reported per item while valid manifests continue. Discovery timeouts and access errors are recorded against the affected object; an unknown endpoint prevents that object's request, not independent valid applies. A stream parse error skips the rest of that file without guessing where parsing can resume. Every item failure blocks automatic pruning; later desired objects may still be applied, including configured recreations. Deleted-OD cleanup is best effort per target; one target failure does not stop independently checked targets. These are the intentional lifecycle rules.
Object apply/delete errors are stored as the same single-line diagnostic that
is logged. Source failures are still sometimes logged without appearing in
status.errors; a recent lastRun and zero recorded errors do not prove a
successful source read. Status visibility remains tracked in
TODO.md. Capture logs, OD identity, source ref/commit/path and the
affected resource before clearing errors; exclude Secret values.
