Skip to content

Fleet agent installation is stuck #4142

@manno

Description

@manno

The fleet agent installation/update gets stuck. This happened when the server was under heavy load.

Workaround: Delete the agent's helm secrets and restart it or force redeploy it.

{"level":"info","ts":"2025-09-16T14:04:31Z","logger":"bundledeployment.helm-deployer.install","msg":"Installing helm release","controller":"bundledeployment","controllerGroup":"fleet.cattle.io","controllerKind":"BundleDeployment","BundleDeployment":{"name":"fleet-agent-d0-k3k-downstream001-downstream0045","namespace":"cluster-fleet-default-d0-k3k-downstream001-downstream0045-f8390"},"namespace":"cluster-fleet-default-d0-k3k-downstream001-downstream0045-f8390","name":"fleet-agent-d0-k3k-downstream001-downstream0045","reconcileID":"fd2484ac-45c5-46fb-bc4b-0d76434786e8","commit":"","dryRun":false}                                                                                                   
{"level":"error","ts":"2025-09-16T14:04:31Z","msg":"Reconciler error","controller":"bundledeployment","controllerGroup":"fleet.cattle.io","controllerKind":"BundleDeployment","BundleDeployment":{"name":"fleet-agent-d0-k3k-downstream001-downstream0045","namespace":"cluster-fleet-default-d0-k3k-downstream001-downstream0045-f8390"},"namespace":"cluster-fleet-default-d0-k3k-downstream001-downstream0045-f8390","name":"fleet-agent-d0-k3k-downstream001-downstream0045","reconcileID":"fd2484ac-45c5-46fb-bc4b-0d76434786e8","error":"failed deploying bundle: cannot re-use a name that is still in use","errorCauses":[{"error":"failed deploying bundle: cannot re-use a name that is still in use"}],"stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:353\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:300\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.1\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:202"}                                                                                                

I can see helm list is in pending-upgrade:

# helm list -n cattle-fleet-system --all
NAME                                           	NAMESPACE          	REVISION	UPDATED                                	STATUS         	CHART                                                                                                                 	APP VERSION
fleet-agent-d0-k3k-downstream001-downstream0045	cattle-fleet-system	2       	2025-09-16 13:23:38.061597057 +0000 UTC	pending-upgrade	fleet-agent-d0-k3k-downstream001-downstream0045-v0.0.0+s-c80a5ad64879318fcc81259f14f38c4df7ae3e9900d7e19b9633f67c24e6f

We fixed pending-install in https://github.com/rancher/fleet/pull/4065/files

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions