Troubleshooting Rancher upgrades

Rancher upgrades - 图1warning

Upgrading to Rancher v2.7.2 will fail if Elemental clusters are defined. The rancher pod gets stuck in a crash loop (see https://github.com/rancher/rancher/issues/41145).

Note that the issue is present only if at least one Elemental cluster is defined.

To workaround the issue create an empty dynamicschemas.management.cattle.io resource named machineinventoryselectortemplate:

  1. kubectl apply -f - <<EOF
  2. kind: DynamicSchema
  3. apiVersion: management.cattle.io/v3
  4. metadata:
  5. name: machineinventoryselectortemplate
  6. EOF

The crash loop will stop and Rancher upgrade will complete successfully.