LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-21-2022, 02:11 AM   #1
z_haseeb
Member
 
Registered: Jun 2008
Posts: 137

Rep: Reputation: 1
Error: unhealthy cluster | ETC node is not adding


ISSUE FACING
[root@PostgreSQL-HA1 etcd]#
[root@PostgreSQL-HA1 etcd]# ETCDCTL_API=3 etcdctl --endpoints http://192.168.2.174:2379,http://192.../192.168.2.181 member list
3466554c14b862ba, started, PostgreSQL-HA1, http://192.168.2.174:2380, http://192.168.2.174:2379
c3309c4b9c698f42, started, PostgreSQL-HA2, http://192.168.2.177:2380, http://192.168.2.177:2379

[root@PostgreSQL-HA1 etcd]# ETCDCTL_API=3 etcdctl --endpoints http://192.168.2.174:2379,http://192.../192.168.2.181 endpoint health
http://192.168.2.174:2379 is healthy: successfully committed proposal: took = 2.724403ms
http://192.168.2.177:2379 is healthy: successfully committed proposal: took = 2.72823ms
http://192.168.2.181 is unhealthy: failed to connect: dial tcp: address 192.168.2.181: missing port in address
Error: unhealthy cluster


HOST FILE FROM ALL THREE NODES
[root@PostgreSQL-HA3 etcd]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.2.174 PostgreSQL-HA1
192.168.2.177 PostgreSQL-HA2
192.168.2.181 PostgreSQL-HA3


ETCD CONFIGURATION FROM ALL THREE NODES
/etc/etcd/etcd.conf #(NODE-3)
ETCD_LISTEN_PEER_URLS="http://192.168.2.181:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.2.181:2379"
ETCD_NAME="PostgreSQL-HA3"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.2.181:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.2.181:2379"
ETCD_INITIAL_CLUSTER="PostgreSQL-HA1=http://192.168.2.174:2380,PostgreSQL-HA2=http://192.168.2.177:2380,PostgreSQL-HA3=http://192.168.2.181:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
ETCD_INITIAL_CLUSTER_STATE="new"

/etc/etcd/etcd.conf #(NODE-2)
ETCD_LISTEN_PEER_URLS="http://192.168.2.177:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.2.177:2379"
ETCD_NAME="PostgreSQL-HA2"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.2.177:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.2.177:2379"
ETCD_INITIAL_CLUSTER="PostgreSQL-HA1=http://192.168.2.174:2380,PostgreSQL-HA2=http://192.168.2.177:2380,PostgreSQL-HA3=http://192.168.2.181:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
ETCD_INITIAL_CLUSTER_STATE="new"

/etc/etcd/etcd.conf #(NODE-1)
ETCD_LISTEN_PEER_URLS="http://192.168.2.174:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.2.174:2379"
ETCD_NAME="PostgreSQL-HA1"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.2.174:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.2.174:2379"
ETCD_INITIAL_CLUSTER="PostgreSQL-HA1=http://192.168.2.174:2380,PostgreSQL-HA2=http://192.168.2.177:2380,PostgreSQL-HA3=http://192.168.2.181:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
ETCD_INITIAL_CLUSTER_STATE="new"


ETC SERVICE STATUS

etcd service is running on all nodes when I run systemctl status etcd

Firewall & selinux are disabled

Last edited by z_haseeb; 09-21-2022 at 02:24 AM.
 
Old 09-21-2022, 04:28 AM   #2
z_haseeb
Member
 
Registered: Jun 2008
Posts: 137

Original Poster
Rep: Reputation: 1
I got a bit success. the 3rd node I was trying to add after creating the cluster. Now I am able to add the new node but unable to see the cluster as healthy

[root@PostgreSQL-HA2 ~]# ETCDCTL_API=3 etcdctl --endpoints http://192.168.2.174:2379,http://192.../192.168.2.181 member list
3466554c14b862ba, started, PostgreSQL-HA1, http://192.168.2.174:2380, http://192.168.2.174:2379
a457597fc069735a, started, PostgreSQL-HA3, http://192.168.2.181:2380, http://192.168.2.181:2379
c3309c4b9c698f42, started, PostgreSQL-HA2, http://192.168.2.177:2380, http://192.168.2.177:2379


[root@PostgreSQL-HA2 ~]# ETCDCTL_API=3 etcdctl --endpoints http://192.168.2.174:2379,http://192.../192.168.2.181 endpoint health
http://192.168.2.177:2379 is healthy: successfully committed proposal: took = 2.16678ms
http://192.168.2.174:2379 is healthy: successfully committed proposal: took = 1.887412ms
http://192.168.2.181 is unhealthy: failed to connect: dial tcp: address 192.168.2.181: missing port in address
Error: unhealthy cluster
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysqld node of mysql cluster system not connecting to management node coal-fire-ice Linux - Server 1 07-27-2015 08:33 AM
rhel 2 node cluster: resources do not move to second node when node halted tapuhi Linux - Software 1 03-01-2015 10:41 AM
node recovery when the node becomes fault by using another node to replace it jerinc Linux - Wireless Networking 0 02-21-2014 05:44 PM
How to transfer the services from node 1 to node 2 ,if node 1 is directly turned off sankarg304 Linux - Server 1 12-12-2012 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration