Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA cluster restore doesn't work #4463

Open
felipegouveiae opened this issue Mar 16, 2024 · 0 comments
Open

HA cluster restore doesn't work #4463

felipegouveiae opened this issue Mar 16, 2024 · 0 comments

Comments

@felipegouveiae
Copy link

felipegouveiae commented Mar 16, 2024

Summary

I setup a HA 3 node cluster. I ran daily backup on the main node. After restoring the VM microk8s hangs and running inspect is says that:

cp: cannot stat '/var/snap/microk8s/6641/var/kubernetes/backend/localnode.yaml': No such file or directory

The IP address changed so I also tried to update the /var/snap/microk8s/6641/var/kubernetes/backend/cluster.yaml and /var/snap/microk8s/6641/var/kubernetes/backend/info.yaml with the new IP and doesn't work as well.

I noticed that the localnode.yaml looks like info.yaml and copied so local node.yaml would be available. no dice.

What Should Happen Instead?

The server should be available in a single node mode.

Reproduction Steps

  1. Setup a new HA 3 node cluster
  2. Backup the main node (snapshot the VM)
  3. Restore the snapshot into a new VM;
  4. Login on the VM and try to start microk8s

Introspection Report

inspection-report-20240316_021223.tar.gz

Are you interested in contributing with a fix?

yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant