I’m testing Rancher for the last couple of weeks, and it looks really promising. However, I hit a snag when trying to restore Rancher. Here’s my setup.
Rancher-1 (single node cluster, running k3s) - version 2.10.1
kubectl version
Client Version: v1.31.4+k3s1
Kustomize Version: v5.4.2
Server Version: v1.31.4+k3s1
Apps (charts) installed
- Longhorn
- Cert-Manager
- Rancher Backup
Use it to create a new “RKE2” cluster (on another VM). Copied the command provided and ran it on another VM.
Registered an existing (vanilla K8s) cluster with Rancher.
So, this Rancher has 3 clusters:
- Local (Rancher)
- RKE2
- Vanilla K8s
Then, I created a Rancher backup. Downloaded the tarball from the PVC (manually searched for that file) to my laptop.
Rancher-2 (single node cluster, running k3s) - version 2.10.2
kubectl version:
Client Version: v1.31.5+k3s1
Kustomize Version: v5.4.2
Server Version: v1.31.5+k3s1
Deployed this second rancher on another VM.
Installed the Cert-Manager and Rancher-Backup app.
Checked the ‘rancher-backup’ deployment in the ‘cattle-resources-system’ namespace. It is using the local-path storageClass.
I exec into this rancher-backup pod and cd /var/lib/backups and created a dummy file.
Then, I searched for that filename on the host to locate the actual location on the filesystem.
I then uploaded the rancher backup (from Rancher-1) to this location, and create a ‘Restore’ from the Rancher UI.
It failed with the following errors:
ERRO[2025/02/10 03:07:53] Error restoring namespaced resources [error restoring rke2 of type provisioning.cattle.io/v1, Resource=clusters: restoreResource: err updating resource admission webhook “rancher.cattle.io.clusters.provisioning.cattle. io” denied the request: creatorID annotation cannot be changed error restoring k8s-v130 of type provisioning.cattle. io/v1, Resource=clusters: restoreResource: err updating resource admission webhook “rancher.cattle.io.clusters.provisioning.cattle. io” denied the request: creatorID annotation cannot be changed error restoring local of type provisioning.cattle.io/v1, Resource=clusters: restoreResource: err updating resource admission webhook “rancher.cattle.io.clusters.provisioning.cattle. io” denied the request: creatorID annotation cannot be changed]
ERRO[2025/02/10 03:07:53] error syncing ‘restore-x62vn’: handler restore: error restoring namespaced resources, check logs for exact error, requeuing
Same error above repeats again and again.
What logs is it asking me to check? The above error came from the ‘rancher-backup’ pod.
Any help/tips is much appreciated.
Thanks!