master api failed due to connect to etcd refused

Latest response

Hi,
I tried to install openshift-enterprise 3.11 on one single node with two NICs.
etcd container started successfully and master api failed to started.
Found following log in master-api log,

I0924 22:58:20.297866       1 plugins.go:84] Registered admission plugin "PodPreset"
I0924 22:58:20.297875       1 plugins.go:84] Registered admission plugin "PodTolerationRestriction"
I0924 22:58:20.297885       1 plugins.go:84] Registered admission plugin "ResourceQuota"
I0924 22:58:20.297894       1 plugins.go:84] Registered admission plugin "PodSecurityPolicy"
I0924 22:58:20.297901       1 plugins.go:84] Registered admission plugin "Priority"
I0924 22:58:20.297908       1 plugins.go:84] Registered admission plugin "SecurityContextDeny"
I0924 22:58:20.297927       1 plugins.go:84] Registered admission plugin "ServiceAccount"
I0924 22:58:20.297934       1 plugins.go:84] Registered admission plugin "DefaultStorageClass"
I0924 22:58:20.297941       1 plugins.go:84] Registered admission plugin "PersistentVolumeClaimResize"
I0924 22:58:20.297948       1 plugins.go:84] Registered admission plugin "StorageObjectInUseProtection"
F0924 22:58:50.301065       1 start_api.go:68] dial tcp 172.16.211.60:2379: connect: connection refused

logs in etcd container:

2019-09-24 20:34:25.267282 I | etcdserver: advertise client URLs = https://9.30.119.88:2379
2019-09-24 20:34:25.267291 I | etcdserver: initial advertise peer URLs = https://9.30.119.88:2380
2019-09-24 20:34:25.267318 I | etcdserver: initial cluster = buzz1.fyre.ibm.com=https://9.30.119.88:2380
2019-09-24 20:34:25.271655 I | etcdserver: starting member 9b85c8d12305d256 in cluster 1d7f9f2198813e8c
2019-09-24 20:34:25.271703 I | raft: 9b85c8d12305d256 became follower at term 0
2019-09-24 20:34:25.271722 I | raft: newRaft 9b85c8d12305d256 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2019-09-24 20:34:25.271727 I | raft: 9b85c8d12305d256 became follower at term 1
2019-09-24 20:34:25.285913 W | auth: simple token is not cryptographically signed
2019-09-24 20:34:25.292035 I | etcdserver: starting server... [version: 3.2.22, cluster version: to_be_decided]
2019-09-24 20:34:25.292674 I | etcdserver: 9b85c8d12305d256 as single-node; fast-forwarding 4 ticks (election ticks 5)
2019-09-24 20:34:25.292743 I | embed: ClientTLS: cert = /etc/etcd/server.crt, key = /etc/etcd/server.key, ca = , trusted-ca = /etc/etcd/ca.crt, client-cert-auth = true
2019-09-24 20:34:25.293054 I | etcdserver/membership: added member 9b85c8d12305d256 [https://9.30.119.88:2380] to cluster 1d7f9f2198813e8c
2019-09-24 20:34:26.272070 I | raft: 9b85c8d12305d256 is starting a new election at term 1
2019-09-24 20:34:26.272167 I | raft: 9b85c8d12305d256 became candidate at term 2
2019-09-24 20:34:26.272206 I | raft: 9b85c8d12305d256 received MsgVoteResp from 9b85c8d12305d256 at term 2
2019-09-24 20:34:26.272226 I | raft: 9b85c8d12305d256 became leader at term 2
2019-09-24 20:34:26.272234 I | raft: raft.node: 9b85c8d12305d256 elected leader 9b85c8d12305d256 at term 2
2019-09-24 20:34:26.272617 I | etcdserver: published {Name:buzz1.fyre.ibm.com ClientURLs:[https://9.30.119.88:2379]} to cluster 1d7f9f2198813e8c
2019-09-24 20:34:26.272734 I | etcdserver: setting up the initial cluster version to 3.2
2019-09-24 20:34:26.272774 I | embed: ready to serve client requests
2019-09-24 20:34:26.273020 I | embed: serving client requests on 9.30.119.88:2379
2019-09-24 20:34:26.274011 N | etcdserver/membership: set the initial cluster version to 3.2
2019-09-24 20:34:26.274069 I | etcdserver/api: enabled capabilities for version 3.2

output from "ifconfig -a":
[root@buzz1 openshift-ansible]# ifconfig -a
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
ether 02:42:d0:74:98:c6 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.211.60 netmask 255.255.0.0 broadcast 172.16.255.255
ether 00:16:3e:01:d3:3c txqueuelen 1000 (Ethernet)
RX packets 19994481 bytes 2780261854 (2.5 GiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 3220 bytes 285148 (278.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 9.30.119.88 netmask 255.255.252.0 broadcast 9.30.119.255
ether 00:00:09:1e:77:58 txqueuelen 1000 (Ethernet)
RX packets 308744 bytes 319369670 (304.5 MiB)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 124636 bytes 15097082 (14.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 423233 bytes 216825068 (206.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 423233 bytes 216825068 (206.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Any additional information needed please let me know.

Thanks.

Responses