Bug 1748081 - 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
Summary: When following disaster recovery procedure, if `INITIAL_CLUSTER` is not prope...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Etcd
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.2.0
Assignee: Sam Batschelet
QA Contact: ge liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-02 17:35 UTC by rvanderp
Modified: 2019-10-16 06:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:39:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-config-operator pull 1097 0 None closed Bug 1748081: DR: ensure piped commands exit 0 2020-09-18 08:14:47 UTC
Github openshift machine-config-operator pull 1108 0 None closed Bug 1748081: DR: send error to stderr before exit for validate_etcd_name 2020-09-18 08:14:48 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:39:41 UTC

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


Note You need to log in before you can comment on or make changes to this bug.