TECHNOLOGY

Kueue avoids stale unadmitted metrics while a ClusterQueue is absent

In this article
THE QUICK TAKE

Workload updates during a missing ClusterQueue no longer preserve stale attribution; recreated queues supply the labels for retained metrics.

Kueue 0.20.6 fixes a metric lifecycle gap when a LocalQueue still references a deleted ClusterQueue. Workload status changes during that gap could leave stale unadmitted-workload series. The release says retained metrics are now reported with the recreated ClusterQueue’s labels. The operational issue is whether a queue name reused after deletion inherits obsolete label attribution from an object that no longer exists.

The dangling reference is part of the fixture

PR 18455 describes skipping ClusterQueue unadmitted metrics when that ClusterQueue does not exist. The LocalQueue reference can outlive its target, so the metric path must tolerate the gap. A proposed scenario deletes the ClusterQueue while retaining the LocalQueue and changes workload status before recreating the target. Deleting both queues together would remove the relationship needed to reproduce the bug and would not test this missing-target behavior.

Reuse a name but change attribution

To make stale labels visible, recreate the ClusterQueue with a deliberately different custom-label value while keeping the reference name. The expected current exposition should use the recreated object’s labels for retained metrics. Recreating an identical object can conceal stale attribution because old and new labels happen to agree. Record object identity separately from name so the analysis recognizes a new Kubernetes object rather than treating the operation as an in-place label update.

Current exposition differs from stored history

Prometheus can still answer historical queries containing the old queue labels after exporter cleanup. That does not by itself show a leaked current series. Inspect a fresh scrape and compare it with the recreated object, then use query time ranges deliberately when reviewing historical activity. The patch concerns current unadmitted-workload metric reporting through a deletion gap, not retroactive relabeling of samples already stored by a monitoring backend.

A missing queue still needs operational explanation

Correct metric attribution does not make the dangling LocalQueue reference valid for scheduling. A workload may still remain unadmitted while the ClusterQueue is absent or after recreation if policy differs. Keep those admission conditions alongside the metric test. The release removes misleading telemetry from a particular lifecycle race; it does not restore deleted queue configuration or guarantee that the replacement has the same quotas, flavors or permissions as its predecessor.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles