6.6.7. Deleting the machine of the unhealthy etcd member


Finish removing the failed control plane node by deleting the machine of the unhealthy etcd member.

Procedure

  1. Ensure that the Bare Metal Operator is available by running the following command:

    $ oc get clusteroperator baremetal

    Example output

    NAME        VERSION   AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
    baremetal   5.0.0    True        False         False      3d15h

  2. Save the BareMetalHost object of the affected node to a file for later use by running the following command:

    $ oc get -n openshift-machine-api bmh <node_name> -o yaml > bmh_affected.yaml

    Replace <node_name> with the name of the affected node, which usually matches the associated BareMetalHost name.

  3. View the YAML file of the saved BareMetalHost object by running the following command, and ensure the content is correct:

    $ cat bmh_affected.yaml
  4. Remove the affected BareMetalHost object by running the following command:

    $ oc delete -n openshift-machine-api bmh <node_name>

    Replace <node_name> with the name of the affected node.

  5. List all machines by running the following command and identify the machine associated with the affected node:

    $ oc get machines -n openshift-machine-api -o wide

    Example output

    NAME                            PHASE    TYPE  REGION  ZONE  AGE    NODE                       PROVIDERID                                                                                             STATE
    examplecluster-control-plane-0  Running                      3h11m  openshift-control-plane-0  baremetalhost:///openshift-machine-api/openshift-control-plane-0/da1ebe11-3ff2-41c5-b099-0aa41222964e  externally provisioned
    examplecluster-control-plane-1  Running                      3h11m  openshift-control-plane-1  baremetalhost:///openshift-machine-api/openshift-control-plane-1/d9f9acbc-329c-475e-8d81-03b20280a3e1  externally provisioned
    examplecluster-control-plane-2  Running                      3h11m  openshift-control-plane-2  baremetalhost:///openshift-machine-api/openshift-control-plane-2/3354bdac-61d8-410f-be5b-6a395b056135  externally provisioned
    examplecluster-compute-0        Running                      165m   openshift-compute-0        baremetalhost:///openshift-machine-api/openshift-compute-0/3d685b81-7410-4bb3-80ec-13a31858241f        provisioned
    examplecluster-compute-1        Running                      165m   openshift-compute-1        baremetalhost:///openshift-machine-api/openshift-compute-1/0fdae6eb-2066-4241-91dc-e7ea72ab13b9        provisioned

  6. Delete the machine of the unhealthy member by running the following command:

    $ oc delete machine -n openshift-machine-api <machine_name>

    Replace <machine_name> with the machine name associated with the affected node.

    Example command

    $ oc delete machine -n openshift-machine-api examplecluster-control-plane-2

    참고

    After you remove the BareMetalHost and Machine objects, the machine controller automatically deletes the Node object.

  7. If deletion of the machine is delayed for any reason or the command is obstructed and delayed, force deletion by removing the machine object finalizer field.

    주의

    Do not interrupt machine deletion by pressing Ctrl+c. You must allow the command to proceed to completion. Open a new terminal window to edit and delete the finalizer fields.

    1. On a new terminal window, edit the machine configuration by running the following command:

      $ oc edit machine -n openshift-machine-api examplecluster-control-plane-2
    2. Delete the following fields in the Machine custom resource, and then save the updated file:

      finalizers:
      - machine.machine.openshift.io

      Example output

      machine.machine.openshift.io/examplecluster-control-plane-2 edited

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동