'Error: snapshot missing hash but --skip-hash-check=false' when performing `rke etcd snapshort-restore` with .zip extension included in snapshot name
This document (000020214) is provided subject to the disclaimer at the end of this document.
Situation
Issue
When performing an etcd snapshot restore via RKE, including the .zip
file extension in the snapshot name parameter, i.e. rke etcd snapshot-restore --name snapshot.zip
and a snapshot filename of snapshot.zip
, the restoration fails with an error of the following format:
FATA[0020] [etcd] Failed to restore etcd snapshot: Failed to run etcd restore container, exit status is: 128, container logs: Error: snapshot missing hash but --skip-hash-check=false
Pre-requisites
- This issue is applicable to RKE CLI v0.2.x, starting with v0.2.5, v0.3.x and v1.0.x
Resolution
This issue is caused by the incorrect inclusion of the .zip
file extension to the snapshot name parameter.
The snapshot name parameter (--name
) should contain the snapshot name, excluding the file extension.
In the example of a snapshot filename of snapshot.zip
the correct name parameter is therefore just snapshot
, i.e. rke etcd snapshot-restore --name snapshot
.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020214
- Creation Date: 06-May-2021
- Modified Date:06-May-2021
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com