Skip to content

model-agent processes phantom CBM Deleted events during CRD server-side apply, dismantling node state for live models #834

Open

Description

@CatherineSue

Problem

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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions