Repository navigation
Description
Status
Fix PR: #6377
-
Maintainer direction: bug(operator): VirtualMCPServer statusReportingInterval requeue Updates the Deployment every interval (no rollout) #6340 (comment)
-
Follow-up (CRD default 30s): bug(operator): VirtualMCPServer statusReportingInterval requeue Updates the Deployment every interval (no rollout) #6340 (comment)
-
PR announcement: bug(operator): VirtualMCPServer statusReportingInterval requeue Updates the Deployment every interval (no rollout) #6340 (comment)
-
Reply to maintainer: bug(operator): VirtualMCPServer statusReportingInterval requeue Updates the Deployment every interval (no rollout) #6340 (comment)
-
PR cross-link comment: fix(operator): skip no-op VirtualMCPServer Deployment updates #6377 (comment)
Bug description
On operator/vmcp v0.43.0, a VirtualMCPServer with config.operational.failureHandling.statusReportingInterval: 1m produces a DeploymentUpdated event pair every minute, and the operator logs Updating Deployment on the same cadence.
The backing Deployment’s pod template does not change (same ReplicaSet for days, no new rollout). The event text still says “rolling out new configuration”.
This is the same symptom class as #5819, but it happens with no external admission webhook / sidecar injector writing pod-template labels or annotations. The live pod template only has operator-owned keys (toolhive.stacklok.dev/runconfig-checksum + the usual toolhive labels).
Sibling VirtualMCPServers in the same namespace without statusReportingInterval set do not emit these events.
Steps to reproduce
- Install ToolHive operator v0.43.0 on Kubernetes.
- Create a
VirtualMCPServerthat already has a Ready Deployment, and set:
spec:
config:
operational:
failureHandling:
statusReportingInterval: 1m
healthCheckInterval: 5m
healthCheckTimeout: 15s
unhealthyThreshold: 3
partialFailureMode: fail- Watch:
kubectl get events -n <ns> --field-selector involvedObject.kind=VirtualMCPServer
kubectl logs -n <ns> deploy/toolhive-operator | grep 'Updating Deployment'
kubectl get deploy <vmcp-name> -n <ns> \
-o custom-columns='GEN:.metadata.generation,REV:.metadata.annotations.deployment\.kubernetes\.io/revision'
kubectl get rs -l toolhive-name=<vmcp-name> -n <ns>Expected behavior
- Status reporting updates
VirtualMCPServer.status(backend health / phase) only. ensureDeploymentis a no-op when the desired pod template is unchanged.DeploymentUpdated/ “rolling out new configuration” is emitted only when a new ReplicaSet is actually created.
Actual behavior
- Every ~60s (exactly the configured
statusReportingInterval): twoDeploymentUpdatedevents and twoUpdating Deploymentlog lines (two reconcile IDs at the same timestamp). - Deployment
metadata.generationcan move;deployment.kubernetes.io/revisionand the active ReplicaSet stay put. - Event stream is unusable for real config changes. Extra apiserver write load on every status tick.
Observed on one tenant (11 backends, unique podTemplateSpec + telemetryConfigRef). Three other vMCPs in the same cluster, same operator, no statusReportingInterval, stay quiet.
Environment (if relevant)
- OS/version: Talos Linux, single-node Kubernetes
- ToolHive version: operator +
proxyrunner+vmcpimages v0.43.0
Additional context
Docs say statusReportingInterval “controls how often the vMCP runtime reports backend health and phase changes” and that lower values increase API server load. That should mean status patches, not Deployment writes.
Likely: a VMCP status update re-enqueues the VirtualMCPServer reconciler, and ensureDeployment treats something as drift (hash / map equality / defaulting) and calls Update + DeploymentUpdated even when spec.template is identical.
Related: #5819 (hot-loop when an external controller annotates the pod template — different trigger, same event). #5817 / #5818 (other ensureDeployment hot-loops, already closed).
No credentials or private hostnames in this report.
Activity
RaviTharuma commentedon Aug 15, 2026
Follow-up from the same v0.43.0 cluster after we omitted
statusReportingIntervalfrom GitOps (thinking that would stop the loop).The CRD defaults the omitted field to
30s. After apply, all four VirtualMCPServers showedspec.config.operational.failureHandling.statusReportingInterval: 30s, and the lavaDeploymentUpdatedcadence went from ~1m to ~30s (worse). Sibling vMCPs without a uniquepodTemplateSpecenv block still only emit a one-shot update on a real spec change.So the interval is the loop period, including the CRD default. Omitting the field is not a workaround.
Local mitigation we are using until this is fixed: set an explicit long value (
15m) so status stays useful without a write storm. Happy to test a patch that skipsensureDeploymentUpdate when the pod-template hash is unchanged.reyortiz3 commentedon Aug 18, 2026
Thanks for the detailed report, @RaviTharuma, and for the follow-up data point on the 30s default making it worse — that confirms the interval itself is the loop period, not something specific to a manually-set value.
Your hypothesis on the fix is right: ensureDeployment should skip the Update call when the pod-template hash is unchanged, rather than treating the requeue itself as drift. This is a good candidate for a community contribution — since you already offered to test a patch, feel free to open a draft PR along those lines and we will help align on where the hash comparison should live.
Thanks again for taking the time to file this and the follow-up.
RaviTharuma commentedon Aug 19, 2026
Opened #6377. Status-interval requeues no longer
Updatethe Deployment when the pod template is unchanged: subset metadata compare (so userpodTemplateSpecextras are not drift) plus a skip-write if the computed template is identical.RaviTharuma commentedon Aug 19, 2026
@reyortiz3 following your direction: opened #6377. Status-interval requeues no longer
Updatethe Deployment when the pod template is unchanged (subset metadata compare + skip-write).Cross-links:
Skip no-op VirtualMCPServer Deployment updates
Skip no-op VirtualMCPServer Deployment updates
RaviTharuma commentedon Sep 2, 2026
Addressed in:
Closing this issue because the fix is already filed as an upstream PR. The PR stays open for review; not merging from here.
RaviTharuma commentedon Sep 2, 2026
Resolved via #6377
Skip no-op VirtualMCPServer Deployment updates
fix(operator): skip no-op VirtualMCPServer Deployment updates (#6377)