-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etcdv3: Add two new member failed. #8847
Comments
Your |
I can not start the new etcd member. the first one always can be added, but the health check show it is unreachable and can not start service, the second one can not be added.
|
When you start the new member after this, initial cluster count should be 4, not 5. |
Looks like that if I edit the initial cluster count to 5 on the new added two members and then add member and start service one by one will fail. |
I have a question here. Why ETCD report below error if we run “etcdctl member add” to increase two ETCD server to a 3-member cluster? BTW, The cluster is healthy without starting fourth node. |
Add new members procedure:
ETCD_INITIAL_CLUSTER="node0=http://192.168.3.30:2380,node1=http://192.168.3.31:2380,node2=http://192.168.3.40:2380,node3=http://192.168.3.44:2380,node4=http://192.168.3.45:2380"
ETCD_INITIAL_CLUSTER_STATE="existing"
[root@bvnf-demo-app-4 ~]# etcdctl --endpoints http://192.168.3.30:2379 member add bvnf-demo-app-4 http://192.168.3.44:2380
Added member named bvnf-demo-app-4 with ID 50af961773cd8148 to cluster
ETCD_NAME="bvnf-demo-app-4"
ETCD_INITIAL_CLUSTER="bvnf-demo-app-4=http://192.168.3.44:2380,bvnf-demo-oam-1=http://192.168.3.31:2380,bvnf-demo-oam-0=http://192.168.3.30:2380,bvnf-demo-app-0=http://192.168.3.40:2380"
ETCD_INITIAL_CLUSTER_STATE="existing"
4. Add another new member on the fifth node, failed.
[root@bvnf-demo-app-5 ~]# etcdctl --endpoints http://192.168.3.30:2379 member add bvnf-demo-app-5 http://192.168.3.45:2380
client: etcd cluster is unavailable or misconfigured; error #0: client: etcd member http://192.168.3.30:2379 has no leader
; error #1: client: etcd member http://192.168.3.31:2379 has no leader
; error #2: client: etcd member http://192.168.3.40:2379 has no leader
The text was updated successfully, but these errors were encountered: