This bug was initially created as a copy of Bug #1958913 I am copying this bug because: Description of problem: After executing the procedure https://docs.openshift.com/container-platform/4.7/backup_and_restore/replacing-unhealthy-etcd-member.html#restore-replace-stopped-etcd-member_replacing-unhealthy-etcd-member for master node in NotReady state the newly created etcd-master pod is in CrashLoopBackOff state with error: "member "https://192.168.123.120:2380" is no longer a member of the cluster and should not start" for etcd container (where 192.168.123.120 is an IP of deleted etcd member) and new etcd member is not added $ oc get bmh NAME STATE CONSUMER ONLINE ERROR openshift-master-0-0 externally provisioned ocp-edge-cluster-0-tc57w-master-0-0 true openshift-master-0-1 externally provisioned ocp-edge-cluster-0-tc57w-master-1 true openshift-master-0-2 externally provisioned ocp-edge-cluster-0-tc57w-master-2 true openshift-worker-0-0 provisioned ocp-edge-cluster-0-tc57w-worker-0-56bfg true openshift-worker-0-1 provisioned ocp-edge-cluster-0-tc57w-worker-0-v2vln true $ oc get machine NAME PHASE TYPE REGION ZONE AGE ocp-edge-cluster-0-tc57w-master-0-0 Running 9m51s ocp-edge-cluster-0-tc57w-master-1 Running 19h ocp-edge-cluster-0-tc57w-master-2 Running 19h ocp-edge-cluster-0-tc57w-worker-0-56bfg Running 19h ocp-edge-cluster-0-tc57w-worker-0-v2vln Running 19h $ oc get machine NAME PHASE TYPE REGION ZONE AGE ocp-edge-cluster-0-tc57w-master-0-0 Running 9m51s ocp-edge-cluster-0-tc57w-master-1 Running 19h ocp-edge-cluster-0-tc57w-master-2 Running 19h ocp-edge-cluster-0-tc57w-worker-0-56bfg Running 19h ocp-edge-cluster-0-tc57w-worker-0-v2vln Running 19h $ oc get pods -n openshift-etcd |grep etcd| egrep -v quorum etcd-master-0-0 2/3 CrashLoopBackOff 8 20m etcd-master-0-1 3/3 Running 0 21m etcd-master-0-2 3/3 Running 0 24m etcd members list before procedure +------------------+---------+------------+------------------------------+--------------------------------------------------------+------------+ | ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | IS LEARNER | +------------------+---------+------------+------------------------------+--------------------------------------------------------+------------+ | 2d975c0a88dbf8e3 | started | master-0-0 | https://192.168.123.120:2380 | https://192.168.123.120:2379,unixs://192.168.123.120:0 | false | | 437eebe379eefcde | started | master-0-1 | https://192.168.123.137:2380 | https://192.168.123.137:2379,unixs://192.168.123.137:0 | false | | c5b1706d6685bd6a | started | master-0-2 | https://192.168.123.128:2380 | https://192.168.123.128:2379,unixs://192.168.123.128:0 | false | +------------------+---------+------------+------------------------------+--------------------------------------------------------+------------+ etcd member list after the procedure +------------------+---------+------------+------------------------------+--------------------------------------------------------+------------+ | ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | IS LEARNER | +------------------+---------+------------+------------------------------+--------------------------------------------------------+------------+ | 437eebe379eefcde | started | master-0-1 | https://192.168.123.137:2380 | https://192.168.123.137:2379,unixs://192.168.123.137:0 | false | | c5b1706d6685bd6a | started | master-0-2 | https://192.168.123.128:2380 | https://192.168.123.128:2379,unixs://192.168.123.128:0 | false | +------------------+---------+------------+------------------------------+--------------------------------------------------------+------------+ Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-05-09-105430 How reproducible: 100 % Steps to Reproduce: 1. Get one of master nodes to NotReady (we set bmh online to false to simulate cause it) 2. Proceed with the procedure Actual results: see in description Expected results: new etcd-master pod starts and Running, new etcd member created, the cluster is healthy Additional info: adding must-gather and new etcd-master pod description
Adding the modified flowchart to reflect the modified logic in discover-init-cluster.
Verified with comment 1
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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), 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/RHSA-2021:2438