news 2026/6/15 16:46:19

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/5/22 4:47:47

智能多功能AI配音系统源码,支持导出行业标准的MP3格式

温馨提示:文末有资源获取方式在内容为王的时代,优质配音是提升作品感染力的关键。然而,专业配音的高成本与长周期往往让创作者望而却步。此刻,一款集创新技术与用户友好设计于一身的智能配音系统源码应运而生。它如同一个可随时启…

作者头像 李华
网站建设 2026/6/15 15:00:36

十年老牌Wi-Fi黑客工具实测:依然有效!

我测试了一个10年前的Wi-Fi黑客工具,它依然有效! 警告:仅供教育(和怀旧)目的! 大约十年前,即2016年,一个不起眼的开源项目出现在GitHub上:由SpacehuhnTech开发的ESP8266 …

作者头像 李华
网站建设 2026/5/15 22:47:56

一文详解ITIL 4 与 ITILV5之间核心差异、更新及改进

一个新的 ITIL 版本发布通常不会引起这么多疑问,但这一次确实引发了广泛关注。ITIL 4 曾帮助许多组织摆脱了僵化的、以流程为中心的工作方式,将注意力从遵循固定步骤转向关注价值和成果。对于许多团队来说,这种转变是必要且迟到的。然而&…

作者头像 李华
网站建设 2026/6/15 8:43:20

极限编程作业链接集锦

第七组 代码规范与冲刺任务-CSDN博客 软件工程团队作业——冲刺计划2-CSDN博客 #软件工程团队作业——冲刺计划3-CSDN博客 软件工程团队作业——冲刺计划4-CSDN博客 软件工程团队作业——冲刺计划5-CSDN博客 软件工程团队作业——测试博文-CSDN博客

作者头像 李华