Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

etcd v3.2 fails to start with multiple peer urls #8383

Closed
jsoriano opened this issue Aug 9, 2017 · 2 comments · Fixed by #8414
Closed

etcd v3.2 fails to start with multiple peer urls #8383

jsoriano opened this issue Aug 9, 2017 · 2 comments · Fixed by #8414
Labels
Milestone

Comments

@jsoriano
Copy link

jsoriano commented Aug 9, 2017

Bug/question

Before etcd v3.2 multiple peer urls could be configured (e.g. ETCD_LISTEN_PEER_URLS=http://$private_ipv4:2380,http://$private_ipv4:7001).
But starting on 3.2.0 if a cluster is started or upgraded to this version with multiple peer urls it is continuously starting elections and it never reaches the healthy state (see coreos/bugs#2095), what is confusing.

As the flag is still plural we could think that it should still be supported. If it's not going to be supported I think it should fail to start with multiple peer urls.

@gyuho
Copy link
Contributor

gyuho commented Aug 9, 2017

Can you provide full logs? Not just leader election parts.

@heyitsanthony
Copy link
Contributor

confirmed via procfile:

etcd1: bin/etcd --name infra1 --listen-client-urls http://127.0.0.1:2379 --advertise-client-urls http://127.0.0.1:2379 --listen-peer-urls http://127.0.0.1:12380,http://127.0.0.1:12381 --initial-advertise-peer-urls http://127.0.0.1:12380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof
etcd2: bin/etcd --name infra2 --listen-client-urls http://127.0.0.1:22379 --advertise-client-urls http://127.0.0.1:22379 --listen-peer-urls http://127.0.0.1:22380,http://127.0.0.1:22381 --initial-advertise-peer-urls http://127.0.0.1:22380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof
etcd3: bin/etcd --name infra3 --listen-client-urls http://127.0.0.1:32379 --advertise-client-urls http://127.0.0.1:32379 --listen-peer-urls http://127.0.0.1:32380,http://127.0.0.1:32381 --initial-advertise-peer-urls http://127.0.0.1:32380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Development

Successfully merging a pull request may close this issue.

3 participants