etcd: couldn't find local name "controller" in the initial cluster configuration

asked 2018-05-16 22:28:42 -0500

Francisco gravatar image

hello, I'm installing openstack in a virtual machine with virtualbox with centos 7 operating system, when I'm installing etcd it generates me the following error message.

  etcd: could not find local name "controller" in the initial cluster configuration

I'm searching the web but I can not find anything.

my configuration is:

# [Member]
# ETCD_CORS=""
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
# ETCD_WAL_DIR=""
ETCD_LISTEN_PEER_URLS="http://10.0.0.11:2380"
ETCD_LISTEN_CLIENT_URLS="http://10.0.0.11:2379"
# ETCD_MAX_SNAPSHOTS="5"
# ETCD_MAX_WALS="5"
ETCD_NAME="controller"
# [Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://10.0.0.11:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://10.0.0.11:2379"
# ETCD_DISCOVERY=""
# ETCD_DISCOVERY_FALLBACK="proxy"
# ETCD_DISCOVERY_PROXY=""
# ETCD_DISCOVERY_SRV=""
ETCD_INITIAL_CLUSTER="default=http: //10.0.0.11: 2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"

I would appreciate help.

edit retag flag offensive close merge delete

Comments

Same problem here. I am trying to follow the Rocky install tutorial on Centos 7. The above message appears in /var/log/messages and is followed by

systemd: etcd.service: main process exited, code=exited, status=1/FAILURE

Has anybody seen this, and resolved it?

Bernd Bausch gravatar imageBernd Bausch ( 2018-09-17 00:07:25 -0500 )edit

My mistake. In /etc/etcd/etcd.conf, I had:

ETCD_INITIAL_CLUSTER="default=http://10.0.0.10:2380"

Changed default to controller, and it works.

Bernd Bausch gravatar imageBernd Bausch ( 2018-09-17 00:54:44 -0500 )edit