Bug 1748081

Summary: When following disaster recovery procedure, if `INITIAL_CLUSTER` is not properly defined, `/usr/local/bin/etcd-snapshot-restore.sh` stops executing with no error message
Product: OpenShift Container Platform Reporter: rvanderp
Component: EtcdAssignee: Sam Batschelet <sbatsche>
Status: CLOSED ERRATA QA Contact: ge liu <geliu>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1.0CC: bmcelvee, sbatsche
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:39:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description rvanderp 2019-09-02 17:35:08 UTC
Description of problem:
When following disaster recovery procedure, if `INITIAL_CLUSTER` is not properly defined, `/usr/local/bin/etcd-snapshot-restore.sh` stops executing with no error message.  

Version-Release number of selected component (if applicable):
4.1.13

How reproducible:
Consistently

Steps to Reproduce:
1. Misconfigure INITIAL_CLUSTER
2. Run recovery script
3.

Actual results:
No error message is printed

Expected results:
Script should print an error message

Additional info:

Output from script:
~~~
Downloading etcdctl binary..
etcdctl version: 3.3.10
API version: 3.3
etcd-member.yaml found in ./assets/backup/
~~~

URL to procedure: https://docs.openshift.com/container-platform/4.1/disaster_recovery/scenario-1-infra-recovery.html

Comment 2 ge liu 2019-09-10 03:09:18 UTC
Hello Sam, is there PR merged for fixing this bug?

Comment 7 ge liu 2019-09-17 08:15:36 UTC
Verified with 4.2.0-0.nightly-2019-09-15-052022

$ export  export INITIAL_CLUSTER="foo=bar"
$ sudo /usr/local/bin/etcd-snapshot-restore.sh ./assets/backup/snapshot.db $INITIAL_CLUSTER
Downloading etcdctl binary..
etcdctl version: 3.3.10
API version: 3.3
etcd-member.yaml found in ./assets/backup/
Validating INITIAL_CLUSTER failed: etcd-0.qe-geliu0917-2.qe.devcluster.openshift.com is not found in foo=bar

Comment 8 Brandi Munilla 2019-10-08 17:25:59 UTC
Does this bug require doc text? The Doc Type/Text field is not currently set. Thanks!

Comment 9 errata-xmlrpc 2019-10-16 06:39:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2922