kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.22k stars 4.87k forks source link

Minikube fails to start/update podman container #13816

Closed tleepa closed 2 years ago

tleepa commented 2 years ago

What Happened?

😄  minikube v1.25.2 on Fedora 35
✨  Using the podman driver based on existing profile
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
E0320 19:00:40.399470   94643 cache.go:203] Error downloading kic artifacts:  not yet implemented, see issue #8426
🏃  Updating the running podman "minikube" container ...

❌  Exiting due to RUNTIME_ENABLE: generateCRIOConfig: /bin/bash -c "sudo sed -e 's|^.*pause_image = .*$|pause_image = "k8s.gcr.io/pause:3.6"|' -i /etc/crio/crio.conf.d/02-crio.conf": Process exited with status 2
stdout:

stderr:
sed: can't read /etc/crio/crio.conf.d/02-crio.conf: No such file or directory

Config:

{
    "Name": "minikube",
    "KeepContext": false,
    "EmbedCerts": false,
    "MinikubeISO": "",
    "KicBaseImage": "gcr.io/k8s-minikube/kicbase:v0.0.28@sha256:4780f1897569d2bf77aafb3d133a08d42b4fe61127f06fcfc90c2c5d902d893c",
    "Memory": 6900,
    "CPUs": 2,
    "DiskSize": 20000,
    "VMDriver": "",
    "Driver": "podman",
    "HyperkitVpnKitSock": "",
    "HyperkitVSockPorts": [],
    "DockerEnv": null,
    "ContainerVolumeMounts": null,
    "InsecureRegistry": null,
    "RegistryMirror": [],
    "HostOnlyCIDR": "192.168.59.1/24",
    "HypervVirtualSwitch": "",
    "HypervUseExternalSwitch": false,
    "HypervExternalAdapter": "",
    "KVMNetwork": "default",
    "KVMQemuURI": "qemu:///system",
    "KVMGPU": false,
    "KVMHidden": false,
    "KVMNUMACount": 1,
    "DockerOpt": null,
    "DisableDriverMounts": false,
    "NFSShare": [],
    "NFSSharesRoot": "/nfsshares",
    "UUID": "",
    "NoVTXCheck": false,
    "DNSProxy": false,
    "HostDNSResolver": true,
    "HostOnlyNicType": "virtio",
    "NatNicType": "virtio",
    "SSHIPAddress": "",
    "SSHUser": "root",
    "SSHKey": "",
    "SSHPort": 22,
    "KubernetesConfig": {
        "KubernetesVersion": "v1.23.3",
        "ClusterName": "minikube",
        "Namespace": "default",
        "APIServerName": "minikubeCA",
        "APIServerNames": null,
        "APIServerIPs": null,
        "DNSDomain": "cluster.local",
        "ContainerRuntime": "crio",
        "CRISocket": "",
        "NetworkPlugin": "cni",
        "FeatureGates": "LocalStorageCapacityIsolation=false",
        "ServiceCIDR": "10.96.0.0/12",
        "ImageRepository": "",
        "LoadBalancerStartIP": "",
        "LoadBalancerEndIP": "",
        "CustomIngressCert": "",
        "ExtraOptions": [
            {
                "Component": "kubelet",
                "Key": "cgroup-driver",
                "Value": "systemd"
            },
            {
                "Component": "kubelet",
                "Key": "housekeeping-interval",
                "Value": "5m"
            }
        ],
        "ShouldLoadCachedImages": true,
        "EnableDefaultCNI": false,
        "CNI": "",
        "NodeIP": "",
        "NodePort": 8443,
        "NodeName": ""
    },
    "Nodes": [
        {
            "Name": "",
            "IP": "192.168.49.2",
            "Port": 8443,
            "KubernetesVersion": "v1.23.3",
            "ContainerRuntime": "crio",
            "ControlPlane": true,
            "Worker": true
        }
    ],
    "Addons": {
        "ambassador": false,
        "auto-pause": false,
        "csi-hostpath-driver": false,
        "dashboard": false,
        "default-storageclass": true,
        "efk": false,
        "freshpod": false,
        "gcp-auth": false,
        "gvisor": false,
        "helm-tiller": false,
        "ingress": true,
        "ingress-dns": false,
        "istio": false,
        "istio-provisioner": false,
        "kubevirt": false,
        "logviewer": false,
        "metallb": false,
        "metrics-server": false,
        "nvidia-driver-installer": false,
        "nvidia-gpu-device-plugin": false,
        "olm": false,
        "pod-security-policy": false,
        "portainer": true,
        "registry": false,
        "registry-aliases": false,
        "registry-creds": false,
        "storage-provisioner": true,
        "storage-provisioner-gluster": false,
        "volumesnapshots": false
    },
    "CustomAddonImages": {
        "IngressController": "ingress-nginx/controller:v1.0.4@sha256:545cff00370f28363dad31e3b59a94ba377854d3a11f18988f5f9e56841ef9ef",
        "KubeWebhookCertgenCreate": "k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.1.1@sha256:64d8c73dca984af206adf9d6d7e46aa550362b1d7a01f3a0a91b20cc67868660",
        "KubeWebhookCertgenPatch": "k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.1.1@sha256:64d8c73dca984af206adf9d6d7e46aa550362b1d7a01f3a0a91b20cc67868660"
    },
    "CustomAddonRegistries": {},
    "VerifyComponents": {
        "apiserver": true,
        "system_pods": true
    },
    "StartHostTimeout": 360000000000,
    "ScheduledStop": null,
    "ExposedPorts": [],
    "ListenAddress": "",
    "Network": "",
    "MultiNodeRequested": false,
    "ExtraDisks": 0,
    "CertExpiration": 94608000000000000,
    "Mount": false,
    "MountString": "/home/leepa:/minikube-host",
    "Mount9PVersion": "",
    "MountGID": "",
    "MountIP": "",
    "MountMSize": 0,
    "MountOptions": null,
    "MountPort": 0,
    "MountType": "",
    "MountUID": "",
    "BinaryMirror": "",
    "DisableOptimizations": false
}

I had it running fine in January. I am aware that some components were updated since (e.g. kernel, minikube itself) but I don't even know what to start with.

Let me know if I can provide more info.

Attach the log file

logs.txt

Operating System

Redhat/Fedora

Driver

Podman

RA489 commented 2 years ago

/kind support

mnaser commented 2 years ago

I believe the root cause is the following:

https://github.com/kubernetes/minikube/pull/13531/files

tleepa commented 2 years ago

I have deleted the cluster, created new one and minikube is working fine. I guess this issue can be closed.