news 2026/11/1 8:38:50

openshift 4.20.12安装报错 1 waitforceo.go:69] waiting on condition EtcdRunningInCluster in etcd CR /clus

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
openshift 4.20.12安装报错 1 waitforceo.go:69] waiting on condition EtcdRunningInCluster in etcd CR /clus

openshift 4.20.12安装报错:

1 waitforceo.go:69] waiting on condition EtcdRunningInCluster in etcd CR /cluster to be True

google搜索显示如下:

The message "waiting on condition EtcdRunningInCluster in etcd CR /cluster to be True" indicates that the Kubernetes (specifically OpenShift, where this message is common) operator is waiting for the etcd cluster to successfully form and become healthy. This is a normal part of the bootstrapping process, but if it persists, it typically points to underlying network configuration, DNS, or load balancer issues preventing the etcd members from communicating correctly.

Common Causes and Troubleshooting Steps

If this message repeats for an extended period (e.g., more than 15-30 minutes), the cluster installation may have stalled due to one of the following reasons:

1. Network Configuration and DNS Issues

The most frequent cause is incorrect DNS configuration or a misconfigured load balancer, which prevents the etcd members from finding each other or the API server.

  • Verify DNS Records:Ensure that all control plane (master) nodes can resolve theapi-intandapiURLs to the correct load balancer or virtual IP addresses, and that the load balancer is correctly forwarding traffic to the master nodes.
  • Check Load Balancer Health:Confirm that your load balancer (e.g., HAProxy) is running, configured correctly with all etcd member IPs/hostnames, and that firewall rules allow traffic on the necessary ports (typically 2379/2380 for etcd peer/client communication, and 6443 for the Kubernetes API).

2. Incorrect Member Information

If the installation was previously attempted and failed, etcd members might still be trying to connect to old peer addresses stored in their data directories.

  • Clean up old data:If you are re-running an installation on the same hosts, you may need to delete the etcd data directory (commonly/var/lib/etcd/member) on each etcd host to force a fresh cluster formation. The operator/orchestration tool should then rebuild the directory.

3. Resource Constraints

Insufficient CPU or memory on the bootstrap or control plane nodes can prevent essential services from starting up correctly.

  • Check System Resources:Ensure your nodes meet the minimum system requirements for the specific Kubernetes/OpenShift version you are installing. Use tools liketoporhtopto monitor resource usage.

4. Certificate Issues

Problems with SSL/TLS certificates can prevent secure communication between etcd members.

  • Review Logs:Check the detailed logs of the etcd operator or the etcd service itself using commands likejournalctl -u etcdor by using theoc adm must-gathercommand (in OpenShift) to look for certificate-related errors (e.g., "x509: certificate signed by unknown authority").

Next Steps

To troubleshoot effectively:

  1. Access detailed logsfrom the bootstrap process and the etcd service on the control plane nodes.
  2. Verify your networking setupagainst the official OpenShift documentation or the relevant Kubernetes project's installation guide.
  3. Ensure all prerequisitesregarding DNS, load balancing, and required resources are met.

根据Google提供的信息,根据我的实际情况,我判断是内存不够造成的。所以重新安装。

重新安装后,错误不再出现。

安装后的环境如下所示:

[root@bastion install]# oc get nodes

NAME STATUS ROLES AGE VERSION

master0.prod.cpd.com Ready control-plane,master 41m v1.33.6

master1.prod.cpd.com Ready control-plane,master 40m v1.33.6

master2.prod.cpd.com Ready control-plane,master 41m v1.33.6

worker1.prod.cpd.com Ready worker 20m v1.33.6

worker2.prod.cpd.com Ready worker 20m v1.33.6

worker3.prod.cpd.com Ready worker 20m v1.33.6

[root@bastion install]#

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/10/31 21:46:18

<span class=“js_title_inner“>2025 年度语言:C#</span>

TIOBE原文链接:https://www.tiobe.com/tiobe-index/这是2026年1月的TIOBE编程语言指数总结,核心信息如下:2025年度语言:C#当选,是三年里第二次获此称号,靠排名年度涨幅最大;它早跟进新趋势&…

作者头像 李华
网站建设 2026/10/30 18:32:44

学术导航仪:书匠策AI如何重构期刊论文写作的“时空坐标系”

在学术江湖中,期刊论文是科研成果的“硬通货”,但写作过程却像一场“迷宫探险”——选题撞车、文献过载、逻辑混乱、格式踩雷……每一个环节都可能让研究者陷入“无限返工”的循环。如今,一款名为书匠策AI的智能工具(官网&#xf…

作者头像 李华
网站建设 2026/10/31 13:06:24

<span class=“js_title_inner“>mise 安装及使用指南</span>

介绍mise(发音同 “mice”)是一款用 Rust 编写的高性能多运行时版本管理器,它能够帮助开发者在单个工具中统一管理多种编程语言和工具的版本。核心价值多语言统一管理:支持 Node.js、Python、Ruby、Go、Java、Rust 等多种语言和工…

作者头像 李华
网站建设 2026/10/31 6:09:33

智泊AI官网:与时俱进!大模型应用开发重磅上线!

01.为什么要学AI智能应用开发? 自ChatGPT横空出世,AI的发展便进入了前所未有的快车道。特别是随着DeepSeek等国产大模型的崛起,越来越多的公司正将AI深度融入业务,积极推动传统软件的智能化的模型,开发新型的智能应用…

作者头像 李华
网站建设 2026/10/27 12:26:05

如何合理地估算线程池大小?

1. 引言:线程池的重要性与挑战1.1 现代并发编程的演进在多核处理器成为主流的今天,并发编程从"奢侈选项"变为"必备技能"。根据Amdahl定律,系统的加速比受限于程序中串行部分的比例,但现代应用大多数任务都可以…

作者头像 李华