Bug 1957615 - Kubelet bound to incorrect IPs when using 2 interfaces, referring to incorrect NICs in 4.6.x
Summary: Kubelet bound to incorrect IPs when using 2 interfaces, referring to incorrec...
Keywords:
Status: CLOSED DUPLICATE of bug 1949827
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Machine Config Operator
Version: 4.6
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Yu Qi Zhang
QA Contact: Michael Nguyen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-06 07:17 UTC by Neeraj
Modified: 2021-06-29 23:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-06 16:13:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Neeraj 2021-05-06 07:17:53 UTC
Version:
- OCP 4.6

$ openshift-install version
- 4.6

Platform:

- Baremetal on vmware

Please specify:
- UPI 

What happened?

- Installation is getting failed as the kubelet is not taking the correct IP address.
- Using 2 network interfaces 
- 
- Hostname is resolving to 1st interface IP address. Hence, when setting the hostname via nmtui or via kernel arguments, it's not taking it and, default set as localhost after boot.
- After debugging a lot, it was found that kubelet is taking 2nd interface IP address. Due to this, the etcd pods is getting 2nd interface IP address and hence, scaling of the etcd is failing on masters.

- File name with incorrect IP:
   /etc/systemd/system/kubelet.service.d/20-nodenet.conf

What did you expect to happen?

- It must take 1st IP address and installation should work smoothly

How to reproduce it (as minimally and precisely as possible)?
- Boot the master with 2 interfaces without bonding "IP ns IP ns" or using nmtui set hostnames and IP address. After booting you will see the errors in etcd as IP is incorrect and file contains 2nd interface IP.


Note You need to log in before you can comment on or make changes to this bug.