etcd-snapshot-restore.sh fails with /run/etcd/environment: No such file or directory

Solution Verified - Updated -

Issue

etcd-snapshot-restore.sh could fail in some conditions with this error:

sudo /usr/local/bin/etcd-snapshot-restore.sh /home/core/snapshot.db $INITIAL_CLUSTER
Downloading etcdctl binary..
etcdctl version: 3.3.10
API version: 3.3
etcd-member.yaml found in ./assets/backup/
checking against etcd-0.example.com
dns name is etcd-0.example.com
/usr/local/bin/openshift-recovery-tools: line 356: /run/etcd/environment: No such file or directory

Environment

Openshift Container Platform 4.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In