news 2026/4/7 11:16:22

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/4/5 18:20:49

<span class=“js_title_inner“>阿里开源的一款数据同步工具 DataX,稳定又高效,嘎嘎好用!</span>

前言我们公司有个项目的数据量高达五千万,但是因为报表那块数据不太准确,业务库和报表库又是跨库操作,所以并不能使用 SQL 来进行同步。当时的打算是通过 mysqldump 或者存储的方式来进行同步,但是尝试后发现这些方案都不切实际&a…

作者头像 李华
网站建设 2026/3/30 22:14:42

救命神器9个降AIGC工具 千笔帮你快速降AI率

AI降重工具:让论文更自然,更安心 在当前学术写作中,越来越多的高校开始采用AIGC检测系统来评估论文的原创性。对于本科生而言,一篇由AI生成的论文,虽然内容完整、逻辑清晰,但往往因“AI痕迹”过重而被判定…

作者头像 李华
网站建设 2026/3/31 13:42:05

【小程序毕设全套源码+文档】基于微信小程序的同城钓鱼社交APP设计与实现(丰富项目+远程调试+讲解+定制)

博主介绍:✌️码农一枚 ,专注于大学生项目实战开发、讲解和毕业🚢文撰写修改等。全栈领域优质创作者,博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、小程序技术领域和毕业项目实战 ✌️技术范围:&am…

作者头像 李华
网站建设 2026/3/22 9:25:42

掌握XSS手动测试:软件测试从业者必备技能

XSS手动测试的必要性与挑战‌ 跨站脚本攻击(XSS)是Web应用安全的头号威胁之一,能在用户浏览器中执行恶意脚本,导致数据泄露或会话劫持。对于软件测试从业者,手动测试是识别XSS漏洞的关键手段,尤其在自动化…

作者头像 李华
网站建设 2026/4/1 4:01:28

5.19 Grafana Dashboard开发:自定义监控面板与变量使用技巧

5.19 Grafana Dashboard开发:自定义监控面板与变量使用技巧 引言 自定义Dashboard是Grafana的核心功能。通过变量和模板,可以创建灵活、可复用的监控面板。本文将详细介绍Dashboard开发的方法和技巧。 一、Dashboard变量 1.1 变量类型 Query:查询变量 Custom:自定义变量…

作者头像 李华