minikube icon indicating copy to clipboard operation
minikube copied to clipboard

Minikube Wont start on Fedora 37 with Docker Driver because Kubelet process does not start

Open amolgautam25 opened this issue 2 years ago • 11 comments

What Happened?

Fresh Installation of Fedora 37. Installed Docker , and installed Minikube. Docker seems to work fine , but minikube fails to start.

Reason: Cant connect to kubelet service. You may inspect logs further but from what i understand , kubelet service is not being installed correctly. I will attach logs to this issue.

After installing minikube, and after multiple failed attempts for a cluster creation i get this: [gamol@gamol-z01 ~]$ systemctl enable kubelet.service Failed to enable unit: Unit file kubelet.service does not exist.

[gamol@gamol-z01 ~]$ journalctl -xeu kubelet has no entries.

Which makes me believe that kubelet service was not installed properly.

I am on Fedora 37. Have tried with latest patches as well.

Attach the log file

minikube_error.log

Operating System

Redhat/Fedora

Driver

Docker

amolgautam25 avatar Dec 16 '22 03:12 amolgautam25

You need to run the systemd commands under minikube ssh (on the node), not on the host.

afbjorklund avatar Dec 16 '22 16:12 afbjorklund

Having the same issue. Fresh install of Fedora 37, Docker and minikube. Unable to start minikube.

andrfaren avatar Dec 27 '22 12:12 andrfaren

You need to run the systemd commands under minikube ssh (on the node), not on the host.

Doesn't minikube have to be running in order to run minikube ssh? The problem we're having is that minikube doesn't start in the first place.

andrfaren avatar Dec 27 '22 12:12 andrfaren

Sure, the self-destruct feature makes it harder to get logs (before it is deleted)

But it is still normal that there is no kubelet service in the host (only in the minikube "node")

afbjorklund avatar Dec 27 '22 13:12 afbjorklund

Tried steps in OP in fresh install of Ubuntu instead of Fedora and everything worked.

andrfaren avatar Dec 27 '22 15:12 andrfaren

Ran minikube v1.26.0-beta version. Works on Fedora 37. Seems like Fedora 37 and minikube 1.28.0 don't work together.

andrfaren avatar Dec 27 '22 15:12 andrfaren

I don't think anyone tried Fedora, could it be selinux ?

  • https://github.com/kubernetes/minikube/issues/3552

afbjorklund avatar Dec 27 '22 16:12 afbjorklund

I think this problem is related to Btrfs. I can reproduce the problem when doing a Fedora 37 install with default Btrfs setup, but when selecting Ext4 for the root file system during install, Minikube 1.28.0 works almost(https://github.com/kubernetes/minikube/issues/15573) as expected.

With Btrfs, kubelet fails to start with this error message:

minikube kubelet[14140]: E0102 16:22:03.156579   14140 run.go:74] "command failed" err="failed to set feature gates from initial flags-based config: cannot set feature gate LocalStorageCapacityIsolation to false, feature is locked to true"

mnk avatar Jan 02 '23 16:01 mnk

Might need some other workaround then, similar to:

  • https://github.com/kubernetes/minikube/pull/15336

afbjorklund avatar Jan 02 '23 17:01 afbjorklund

A minikube built from master as of today, seems to work fine on Fedora 37 with Btrfs and Kubernetes v1.25.3.

Until we have a new minikube release, a workaround is to run with Kubernetes version < 1.25:

minikube start --kubernetes-version=v1.24.9

mnk avatar Jan 02 '23 17:01 mnk

Thanks for looking into the issue. It seems this has been resolved. minikube version v1.29.0 works as expected on fedora 37.

amolgautam25 avatar Jan 29 '23 01:01 amolgautam25