6.6.4. 验证失败的节点已被删除
在继续创建替换 control plane 节点前,请验证失败的节点是否已成功删除。
流程
运行以下命令验证机器是否已删除:
$ oc get machines -n openshift-machine-api -o wide输出示例
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-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运行以下命令验证节点是否已删除:
$ oc get nodes输出示例
NAME STATUS ROLES AGE VERSION openshift-control-plane-0 Ready master 3h24m v1.35.4 openshift-control-plane-1 Ready master 3h24m v1.35.4 openshift-compute-0 Ready worker 176m v1.35.4 openshift-compute-1 Ready worker 176m v1.35.4等待所有集群 Operator 完成推出更改。运行以下命令来监控进度:
$ watch oc get co