You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
model-agent processes phantom CBM Deleted events during CRD server-side apply, dismantling node state for live models #834
During a kubectl apply --server-side upgrade of the clusterbasemodels.ome.io CRD (v1.2.2-era live objects → main charts), a v1.2.1 model-agent processed a Deleted event for a ClusterBaseModel that was never deleted (its creationTimestamp is months old and unchanged):
INFO modelagent/gopher.go:600 Removing Hugging Face model ClusterBaseModel qwen-3-vl-30b-a3b-instruct
INFO modelagent/node_label_reconciler.go:81 Processing node label Deleted operation ... in state: Deleted
INFO modelagent/node_label_reconciler.go:172 Successfully patched node 10.0.99.1 with Deleted state
Node labels (models.ome.io/clusterbasemodel.<name>) were stripped across the fleet for that model, so anything scheduling against them pends. Artifact deletion was skipped only because the model had no entry in the agent's node ConfigMap — for an agent-owned model, a phantom Deleted would plausibly delete the on-disk weights.
Impact
CRD upgrades on a live cluster can dismantle model state (and potentially weights) for models that still exist. Related hardening: the agent trusts its ConfigMap state over disk (no drift detection), so status/labels/disk can disagree three ways — we also observed status.state=Ready with nodesReady populated while the weights were absent on every listed node.
Suggested fix
Treat informer Deleted events with a live-read confirmation (get-before-destroy), and/or periodically reconcile label+ConfigMap state against actual disk contents.
Activity
[Bugfix] Queue model delete confirmations