Closed mattyb-dev closed 3 weeks ago
[root@mymachine etcd]# etcdctl --endpoints=http://10.125.77.181:2380/ member list -w table +------------------+---------+---------------------+---------------------------+---------------------------+------------+ | ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | IS LEARNER | +------------------+---------+---------------------+---------------------------+---------------------------+------------+ | d4dba89fb1f01b4d | started | specialname_1 | http://10.125.77.181:2380/ | http://10.125.77.181:2379/ | false | +------------------+---------+---------------------+---------------------------+---------------------------+------------+
Used old format of conf file, with ETCD_VARIABLE (not as per https://github.com/etcd-io/etcd/blob/main/etcd.conf.yml.sample) and it worked. So instructions VERY unclear about the format of the config file in 3.5
Bug report criteria
What happened?
The etcd daemon only listens on IP:2379 and/or IP:2380 when the advertise-client-urls, initial-advertise-peer-urls, listn-client-urls and listen-peer-urls variables are on the ExecStart line in the service file. Tried using ETCD_FORMAT and yaml format in the conf file
What did you expect to happen?
That the variables listed above would listen on the IP of the server instead of 127.0.0.1 if defined in the conf file
How can we reproduce it (as minimally and precisely as possible)?
RedHat 8 etcd 3.5.15 Try setting advertise-client-urls, initial-advertise-peer-urls, listen-client-urls and listen-peer-urls variables in the conf file. Then do netstat-an | egrep "2379|2380" and you'll see the ports are only for 127.0.0.1
Anything else we need to know?
SELINUX=permissive firewall-cmd used to open all ports used by etc.
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Relevant log output