microshift icon indicating copy to clipboard operation
microshift copied to clipboard

USHIFT-22: Microshift will not boot if the host has no assigned IP address / ethernet connection

Open mangelajo opened this issue 3 years ago • 5 comments

What happened:

Booting microshift with ethernet disconnected failed

What you expected to happen:

To boot and services to come up.

How to reproduce it (as minimally and precisely as possible):

Start a system with ethernet link down, try to start microshift.

Anything else we need to know?:

Environment:

  • Microshift version (use microshift version): MicroShift Version: 4.8.0-0.microshift-2021-11-19-115908-14-g18aff6b Base OKD Version: 4.8.0-0.okd-2021-10-10-030117

  • Hardware configuration:

  • OS (e.g: cat /etc/os-release):

  • Kernel (e.g. uname -a):

  • Others:

Relevant Logs

ene 11 18:18:37 jetson-tx2.local systemd[1]: Started MicroShift.
ene 11 18:18:37 jetson-tx2.local microshift[7819]: time="2022-01-11T18:18:37+01:00" level=fatal msg="failed to get host IP: no default r
ene 11 18:18:37 jetson-tx2.local systemd[1]: microshift.service: Main process exited, code=exited, status=1/FAILURE
ene 11 18:18:37 jetson-tx2.local systemd[1]: microshift.service: Failed with result 'exit-code'.

mangelajo avatar Jan 12 '22 09:01 mangelajo

Jan 21 14:10:52 microshift.local microshift[4888]: time="2022-01-21T14:10:52Z" level=info msg="kube-apiserver stopped: kube-apiserver configuration error: Unable to find suitable network address.error='no default routes found in \"/proc/net/route\" or \"/proc/net/ipv6_route\"'. Try to set the AdvertiseAddress directly or provide a valid BindAddress to fix this."
Jan 21 14:11:52 microshift.local microshift[4888]: time="2022-01-21T14:11:52Z" level=warning msg="kube-apiserver readiness check timed out: <nil>"

now this ^

We need to pass down the address to the kube-api server, instead of letting itself guess it.

mangelajo avatar Jan 21 '22 14:01 mangelajo

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar May 18 '22 00:05 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Jun 17 '22 00:06 openshift-bot

/remove-lifecycle rotten

ggiguash avatar Jun 28 '22 14:06 ggiguash

/retitle USHIFT-22: Microshift will not boot if the host has no assigned IP address / ethernet connection

ggiguash avatar Aug 28 '22 12:08 ggiguash

MicroShift is able to run without internet connection, but it needs to have an IP address assigned since node needs to have an IP, kubelet/kube-api requires that IP address to run.

zshi-redhat avatar Oct 25 '22 08:10 zshi-redhat

/retitle USHIFT-22: microshift will not boot if the host has no internet connection

zshi-redhat avatar Oct 25 '22 08:10 zshi-redhat

/close

zshi-redhat avatar Oct 25 '22 08:10 zshi-redhat

@zshi-redhat: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Oct 25 '22 08:10 openshift-ci[bot]