gtamas / etcdmanager

A cross-platform GUI and ETCD client
https://etcdmanager.io
MIT License
479 stars 60 forks source link

[BUG] Cluster View not properly reflecting the status of the nodes #74

Open sebastianricaldoni opened 3 years ago

sebastianricaldoni commented 3 years ago

Describe the bug I'm running a 3-node cluster using docker image When I stop one of the containers (etcd1) I don't see that node as being down.

To Reproduce

Setup the cluster

$ HTTPIP=http://<YOUR_IP>
$ CLUSTER="etcd0=$HTTPIP:2380,etcd1=$HTTPIP:2480,etcd2=$HTTPIP:2580"
$ ARGS="etcd -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-state new -initial-cluster $CLUSTER"
$ IMG="quay.io/coreos/etcd:v3.4.14"
$ docker run -d -p 2379:2379 -p 2380:2380 --name etcd0 $IMG $ARGS -name etcd0 -advertise-peer-urls $HTTPIP:2380
$ docker run -d -p 2479:2379 -p 2380:2380 --name etcd1 $IMG $ARGS -name etcd1 -advertise-peer-urls $HTTPIP:2480
$ docker run -d -p 2579:2379 -p 2380:2380 --name etcd2 $IMG $ARGS -name etcd2 -advertise-peer-urls $HTTPIP:2580

It should look something like this image

Open ETCD Manager and point to the cluster

Note Make sure to click on the Status button for each node in order to get the green check ✅ image

Stop one of the nodes

$ docker stop etcd2
$ docker ps

image

Go back to ETCD Manager and check the status again

image

Expected behavior As described above, I'm expecting the etcd2 node to show as down or some sort of UI hint. I'm currently in discovery mode checking on how etcd works, mainly aspects such as high availability (HA) and fault tolerance (FT). This means I could be missing some key / critical aspect as on how etcd works, specially around clustering?

Screenshots Supplied above

Desktop (please complete the following information):

gtamas commented 3 years ago

Thanks for reporting this. Yes this has to be fixed. it'll be part of the next release. I'll do it as soon as I can

gabesztx commented 3 years ago

Ezt nem teljesen értem Tamás.

Tamas Geschitz @.***> ezt írta (időpont: 2021. jún. 7., H, 19:37):

Thanks for reporting this. Yes this has to be fixed. it'll be part of the next release. I'll do it as soon as I can

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gtamas/etcdmanager/issues/74#issuecomment-856132073, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVYJF6TPEDNGSMAL2TWDILTRT7V3ANCNFSM4VCMFPMA .

gtamas commented 3 years ago

Egyenlore nem volt idom ezzel foglalkozni, de hamarosan talan lesz idon erre a projektre. Addig is PR-eket is szivesen fogadok, ha valaki szeretne segiteni :) Csak kommenteljetek ide ha valakit erdekelne.

gtamas commented 3 years ago

Currently I have little for this project but I will get back to it as soon as I can.

In the meantime, PRs are welcome :) If anyone wants to help, please contact me!. Comment below and mention me.

Thanks in advance!