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

Error when Etcd snapshot restore fails when incorrect file is entered can be made better #2408

Open
sowmyav27 opened this issue Jan 9, 2021 · 0 comments

Comments

@sowmyav27
Copy link

RKE version:
1.1.14-rc1

Steps to Reproduce:

  • Do an RKE up
  • Enable recurring snapshots in the cluster.yml
  • Wait for an hour for a snapshot to happen
  • restore from this snapshot. I gave 2021-01-08T21:16:56Z_etcd.zip instead of 2021-01-08T21:16:56Z_etcd
  • The restore failed with this error
FATA[0049] [etcd] Failed to restore etcd snapshot: Failed to run etcd restore container, exit status is: 1, container logs: {"level":"info","ts":1610140906.894002,"caller":"snapshot/v3_snapshot.go:287","msg":"restoring snapshot","path":"/opt/rke/etcd-snapshots/2021-01-08T21:16:56Z_etcd.zip","wal-dir":"/opt/rke/etcd-snapshots-restore/member/wal","data-dir":"/opt/rke/etcd-snapshots-restore/","snap-dir":"/opt/rke/etcd-snapshots-restore/member/snap"}
Error: snapshot missing hash but --skip-hash-check=false 

Expected Results:
Can this fail with a better error message? This makes the cluster go bad also.

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

No branches or pull requests

3 participants