Hey, Did anyone manage to migrate a cluster betwee...
# general
h
Hey, Did anyone manage to migrate a cluster between two rancher instances ? We have two rancher clusters, in different AZ. Each rancher is managing multiple downstream clusters Let's say AZ-1 is down, we would like to migrate one of the downstream cluster to the Rancher from AZ-2. We tried a few hack with the snapshot and restore but no success. The cluster is correctly restored but then, there are issues related to rke2
agentToken
and
serverToken
. Either a mismatch between rke2 file and etcd data or between rke2 and the secret in rancher (similar to /var/lib/rancher/rke2/server/cred/passwd newer than datastore and could cause a cluster outage. Remove the file(s ) from disk and restart to be recreated from datastore. · rancher/rke2 · Discussion #4035 and Agent token rotation leads to datastore being out-of-sync · Issue #5785 · rancher/rke2) any ideas ? Our steps are: • backup downstream-1 on rancher-az-1 • create downstream-1-backup on rancher-az-2 with one node • restore the cluster using rke2 cli • cluster is up with data from downstream-1, clean stuff like old nodes • if I restart rke2-server, it fails with
/var/lib/rancher/rke2/server/cred/passwd newer than datastore
. If I add a new node, same thing. Even if I update the rancher secret who holds
agentToken
and
serverToken
We don't use velero to copy paste our resources between the clusters because we want to preserve ownerRef