我在centOS7中安装openshift原点。
我安装了ansible,但etcd无法启动,我重启了主机,启用了重启停止etcd(systemctl),但没有工作,请有人帮助我。
[root@master ~]# systemctl status etcd etcd.service - Etcd Server Loaded: loaded (/etc/systemd/system/etcd.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Sun 2019-06-23 12:37:06 EDT; 3min 7s ago Process: 20960 ExecStart=/bin/bash -c GOMAXPROCS=$(nproc) /usr/bin/etcd --name="${ETCD_NAME}" --data-dir="${ETCD_DATA_DIR}" --listen-client-urls="${ETCD_LISTEN_CLIENT_URLS}" (code=exited, status=1/FAILURE) Main PID: 20960 (code=exited, status=1/FAILURE) Jun 23 12:37:06 master.openshift.example.com systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE Jun 23 12:37:06 master.openshift.example.com systemd[1]: Failed to start Etcd Server. Jun 23 12:37:06 master.openshift.example.com systemd[1]: Unit etcd.service entered failed state. Jun 23 12:37:06 master.openshift.example.com systemd[1]: etcd.service failed. Jun 23 12:37:06 master.openshift.example.com systemd[1]: etcd.service holdoff time over, scheduling restart. Jun 23 12:37:06 master.openshift.example.com systemd[1]: Stopped Etcd Server. Jun 23 12:37:06 master.openshift.example.com systemd[1]: start request repeated too quickly for etcd.service Jun 23 12:37:06 master.openshift.example.com systemd[1]: Failed to start Etcd Server. Jun 23 12:37:06 master.openshift.example.com systemd[1]: Unit etcd.service entered failed state. Jun 23 12:37:06 master.openshift.example.com systemd[1]: etcd.service failed.
如何运行etcd.service
如果没有其他办法,请尝试删除 etcd 并重新安装。请参考各产品文档,删除或添加。