Skip to content

ManagedChart generation is X, but latest observed generation is Y

Article Number: 000021469

Environment

- Rancher v2.6+
- A Rancher-managed RKE2 cluster

Situation

After upgrading the Kubernetes version for a downstream RKE2 cluster, there is a message in the Rancher UI:

"ManagedChart generation is X, but latest observed generation is Y ".

Cause

This could happen if a user accidentally deleted the "managed-system-upgrade-controller" bundle within Fleet.

Deleting the managed-system-upgrade-controller bundle for the cluster within the fleet-default workspace resets the "observedGeneration" of the managed-system-upgrade-controller ManagedChart.

This leads to a mismatch with the generation, and an error of the format "ManagedChart generation is X, but latest observed generation is Y".

Resolution

To resolve the issue:

  1. Delete the managed-system-upgrade-controller ManagedChart resource for the affected downstream cluster from the Rancher local cluster (replacing <cluster-name> with the downstream cluster name):

kubectl -n fleet-default delete ManagedChart <cluster-name>-managed-system-upgrade-controller
2. After that, Rancher will automatically recreate it.