rancher / fleet

Deploy workloads from Git to large fleets of Kubernetes clusters
https://fleet.rancher.io/
Apache License 2.0
1.5k stars 227 forks source link

[SURE-8309] fleet-agent in rke2 cluster repeatedly deploying managed-system-agent bundle #2856

Open kkaempf opened 2 weeks ago

kkaempf commented 2 weeks ago

SURE-8309

Issue description:

If you check the fleet-agent logs in an rke2 cluster that is provisioned by Rancher, you will see it spam that it is deploying the managed-system-agent bundle.

time="2024-04-24T22:42:00Z" level=info msg="Deploying bundle cluster-fleet-default-quickstart-aws-custom-c1aeed1484bc/quickstart-aws-custom-managed-system-agent"
time="2024-04-24T22:42:01Z" level=info msg="Deploying bundle cluster-fleet-default-quickstart-aws-custom-c1aeed1484bc/quickstart-aws-custom-managed-system-agent"
time="2024-04-24T22:42:04Z" level=info msg="Deploying bundle cluster-fleet-default-quickstart-aws-custom-c1aeed1484bc/quickstart-aws-custom-managed-system-agent"
...

Business impact:

It seems like a nuisance more than anything. The cluster is healthy.

Troubleshooting steps:

I think the log is spamming this in error. When I check the actual last update time in the status of the manifest for the bundle, it doesn't show it being deployed since it was originally deployed

Repro steps:

manno commented 5 days ago

Related to https://github.com/rancher/fleet/issues/2869

manno commented 5 days ago

This should be fixed by https://github.com/rancher/fleet/pull/2917

kkaempf commented 4 days ago

@manno #2917 got merged into main while the issue here is scheduled for 2.9.3 🤔 /cc @weyfonk