OpenShift 4 recovery etcd-snapshot-restore.sh fails due to "Error: snapshot restore requires exactly one argument"
Issue
- Following the disaster recovery steps for a lost master are failing with the following:
[core@etcd-1 ~]$ export INITIAL_CLUSTER="etcd-0.example.com=https://etcd-0.example.com:2380,etcd-1.example.com=https://etcd-1.example.com:2380,etcd-2.example.com=https://etcd-2.example.com:2380"
[core@etcd-1 ~]$ sudo /usr/local/bin/etcd-snapshot-restore.sh /home/core/assets/backup/snapshot.db $INITIAL_CLUSTER
...
Removing etcd data-dir /var/lib/etcd
Restoring etcd member etcd-1.example.com
etcd-1.example.com from snapshot..
Error: snapshot restore requires exactly one argument
Environment
- Red Hat OpenShift Container Platform
- 4.2
- 4.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.