Bug 1249113

Summary: kube-apiserver fails to start on boot due to network being unavailable
Product: Red Hat Enterprise Linux 7 Reporter: Jake Hunsaker <jhunsaker>
Component: kubernetesAssignee: Derek Carr <decarr>
Status: CLOSED WONTFIX QA Contact: atomic-bugs <atomic-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 7.1CC: avagarwa, dornelas, eparis, jkrieger, rrajaram
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-27 22:26:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1186913, 1298243, 1420851    

Description Jake Hunsaker 2015-07-31 14:12:12 UTC
Description of problem:

During boot, the apiserver process may fail to start as it cannot bind to an IP address, resulting in this error:


 Unable to find suitable network address.error='Unable to select an IP.' . Will try again in 5 seconds. Set the public address directly to avoid this wait.


This looks like a race condition where apiserver is trying to get a network address before the interface is ready. By enabling NetworkManager-wait-online.service, we never see kube-apiserver to fail on boot with this message.

Version-Release number of selected component (if applicable):

atomic 7.1.3-1
kubernetes-0.17.1-4.el7


How reproducible:
Reliably


Steps to Reproduce:
1. Have NM control the NICs on the host
2. Reboot
3.

Actual results:
kube-apiserver will fail to start on boot (even after retrying several times), but can be started manually without issue.

Expected results:
kube-apiserver should start normally on boot with no manual intervention

Additional info:

Comment 4 Eric Paris 2015-09-23 15:30:04 UTC
*** Bug 1240563 has been marked as a duplicate of this bug. ***

Comment 5 Derrick Ornelas 2018-08-27 22:26:30 UTC
As of Red Hat Enterprise Linux 7.5, the kubernetes packages shipped in the RHEL Extras channel are deprecated, and Red Hat no longer supports the manual installation and configuration of kubernetes on RHEL. OpenShift Container Platform is Red Hat’s fully supported distribution of Kubernetes.