[root@localhost etcd]# ./etcdctl member list
client: etcd cluster is unavailable or misconfigured
[root@localhost etcd]# ./etcdctl member list
56812ae88262debe: name=node0 peerURLs=http://192.168.1.21:2380 clientURLs=http://192.168.1.21:2379 isLeader=true
65818045dfc0be0f: name=node1 peerURLs=http://192.168.1.22:2380 clientURLs=http://192.168.1.22:2379 isLeader=false
c04df6bf225b1040: name=node2 peerURLs=http://192.168.1.23:2380 clientURLs=http://192.168.1.23:2379 isLeader=false
[root@localhost etcd]# ./etcdctl member list
client: etcd cluster is unavailable or misconfigured
快速使用etcdctl member list 出现“etcd cluster is unavailable or misconfigured”,etcd的日志都比较旧(几分钟以前),是否正常。
大写的坑
加了debug参数,发现不指定endpoints时使用默认的(http://127.0.0.1:4001,http://...,4001端口好像是早期版本还是docker环境下使用的,而刚好本机4001端口有其他应用使用,导致了上述问题。
指定endpoint如下