Etcd IP misconfigured due to multiple network interfaces on etcd nodes.
Issue
EtcdIP can get misconfigured ifetcdnodes have multiple network interfaces.- When
etcdnodes have two interfaces and IPs,etcdshould useOpenshiftIP. - Example: The
etcdcluster should use 10.2.X.x which isOpenshiftIP, but for oneetcdmember is using 10.9.X.X OR peerURLs for thisetcdmember is using 10.2.X.X and clientURLs is using 10.9.X.X.
# etcdctl2 member list
xx: name=master0.abc.com peerURLs=https://10.9.X.X:2380 clientURLs=https://10.9.X.X:2379 isLeader=false <---[The peerURLs and clientURLs are using 10.9.X.X]
yy: name=master1.abc.com peerURLs=https://10.2.X.Y:2380 clientURLs=https://10.2.X.Y:2379 isLeader=true
zz: name=master2.abc.com peerURLs=https://10.2.X.Z:2380 clientURLs=https://10.2.X.Z:2379 isLeader=false
[OR]
# etcdctl2 member list
xx: name=master0.abc.com peerURLs=https://10.2.X.X:2380 clientURLs=https://10.9.X.X:2379 isLeader=false <---[The peerURLs is using 10.2.X.X and clientURLs is using 10.9.X.X]
yy: name=master1.abc.com peerURLs=https://10.2.X.Y:2380 clientURLs=https://10.2.X.Y:2379 isLeader=true
zz: name=master2.abc.com peerURLs=https://10.2.X.Z:2380 clientURLs=https://10.2.X.Z:2379 isLeader=false
# etcdctl2 cluster-health
member xx is unreachable: [https://10.9.X.X:2379] are all unreachable
member yy is healthy: got healthy result from https://10.2.X.Y:2379
member zz is healthy: got healthy result from https://10.2.X.Z:2379
Environment
- OpenShift Container Platform (OCP)
- 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.