Skip to content

ManagedChart generation is X, but latest observed generation is Y

This document (000021469) is provided subject to the disclaimer at the end of this document.

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 ".

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.

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".

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.