Rancher container can't properly start under openSUSE
by astronaut from LinuxQuestions.org on (#5JJ63)
I have openSUSE tumbleweed distro, Code:docker run hello-world works and I wanted to start rancher container with docker Code:docker run --privileged -d -p 80:80 -p 443:443 rancher/rancher (from https://rancher.com/quick-start/) unfortunately it dies quickly before everything will start
Code:2021-06-02 09:15:53.792818 W | etcdserver: read-only range request "key:\"/registry/mutatingwebhookconfigurations/\" range_end:\"/registry/mutatingwebhookconfigurations0\" limit:10000 " with result "range_response_count:0 size:4" took too long (129.258969ms) to execute
2021-06-02 09:15:53.792872 W | etcdserver: read-only range request "key:\"/registry/ingressclasses/\" range_end:\"/registry/ingressclasses0\" count_only:true " with result "range_response_count:0 size:4" took too long (206.946955ms) to execute
2021-06-02 09:15:53.792922 W | etcdserver: read-only range request "key:\"/registry/endpointslices/\" range_end:\"/registry/endpointslices0\" count_only:true " with result "range_response_count:0 size:4" took too long (212.836235ms) to execute
W0602 09:15:53.870554 42 genericapiserver.go:412] Skipping API batch/v2alpha1 because it has no resources.
W0602 09:15:53.891406 42 genericapiserver.go:412] Skipping API discovery.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.925055 42 genericapiserver.go:412] Skipping API node.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.963677 42 genericapiserver.go:412] Skipping API rbac.authorization.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.970304 42 genericapiserver.go:412] Skipping API scheduling.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.995137 42 genericapiserver.go:412] Skipping API storage.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:54.018074 42 genericapiserver.go:412] Skipping API apps/v1beta2 because it has no resources.
W0602 09:15:54.018097 42 genericapiserver.go:412] Skipping API apps/v1beta1 because it has no resources.
I0602 09:15:54.033751 42 plugins.go:158] Loaded 12 mutating admission controller(s) successfully in the following order: NamespaceLifecycle,LimitRanger,ServiceAccount,NodeRestriction,TaintNodesByCondition,Priority,DefaultTolerationSeconds,DefaultStorageClass,StorageObjectInUseProtection,RuntimeClass,DefaultIngressClass,MutatingAdmissionWebhook.
I0602 09:15:54.033783 42 plugins.go:161] Loaded 10 validating admission controller(s) successfully in the following order: LimitRanger,ServiceAccount,Priority,PersistentVolumeClaimResize,RuntimeClass,CertificateApproval,CertificateSigning,CertificateSubjectRestriction,ValidatingAdmissionWebhook,ResourceQuota.
time="2021-06-02T09:15:54.049015256Z" level=info msg="Running kube-scheduler --address=127.0.0.1 --bind-address=127.0.0.1 --kubeconfig=/var/lib/rancher/k3s/server/cred/scheduler.kubeconfig --port=10251 --profiling=false --secure-port=0"
time="2021-06-02T09:15:54.049109823Z" level=info msg="Waiting for API server to become available"
I0602 09:15:54.049402 42 registry.go:173] Registering SelectorSpread plugin
I0602 09:15:54.049425 42 registry.go:173] Registering SelectorSpread plugin
time="2021-06-02T09:15:54.049915397Z" level=info msg="Running kube-controller-manager --address=127.0.0.1 --allocate-node-cidrs=true --bind-address=127.0.0.1 --cluster-cidr=10.42.0.0/16 --cluster-signing-cert-file=/var/lib/rancher/k3s/server/tls/client-ca.crt --cluster-signing-key-file=/var/lib/rancher/k3s/server/tls/client-ca.key --kubeconfig=/var/lib/rancher/k3s/server/cred/controller.kubeconfig --port=10252 --profiling=false --root-ca-file=/var/lib/rancher/k3s/server/tls/server-ca.crt --secure-port=0 --service-account-private-key-file=/var/lib/rancher/k3s/server/tls/service.key --use-service-account-credentials=true"
time="2021-06-02T09:15:54.051765589Z" level=info msg="Node token is available at /var/lib/rancher/k3s/server/token"
time="2021-06-02T09:15:54.051852881Z" level=info msg="To join node to cluster: k3s agent -s https://172.17.0.2:6443 -t ${NODE_TOKEN}"
time="2021-06-02T09:15:54.053295687Z" level=info msg="Wrote kubeconfig /etc/rancher/k3s/k3s.yaml"
time="2021-06-02T09:15:54.053324842Z" level=info msg="Run: k3s kubectl"
time="2021-06-02T09:15:54.053451506Z" level=warning msg="Failed to find cpuset cgroup, you may need to add \"cgroup_enable=cpuset\" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)"
time="2021-06-02T09:15:54.053477904Z" level=error msg="Failed to find memory cgroup, you may need to add \"cgroup_memory=1 cgroup_enable=memory\" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)"
time="2021-06-02T09:15:54.053508647Z" level=fatal msg="failed to find memory cgroup, you may need to add \"cgroup_memory=1 cgroup_enable=memory\" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)"
2021/06/02 09:15:54 [FATAL] k3s exited with: exit status 1Tumbleweed is not supported by rancher but LEAP is - so my idea is that maybe I did something wrong or it's simple problem that can be fixed quickly. Any ideas or reading materials related to this error are very welcome
Code:2021-06-02 09:15:53.792818 W | etcdserver: read-only range request "key:\"/registry/mutatingwebhookconfigurations/\" range_end:\"/registry/mutatingwebhookconfigurations0\" limit:10000 " with result "range_response_count:0 size:4" took too long (129.258969ms) to execute
2021-06-02 09:15:53.792872 W | etcdserver: read-only range request "key:\"/registry/ingressclasses/\" range_end:\"/registry/ingressclasses0\" count_only:true " with result "range_response_count:0 size:4" took too long (206.946955ms) to execute
2021-06-02 09:15:53.792922 W | etcdserver: read-only range request "key:\"/registry/endpointslices/\" range_end:\"/registry/endpointslices0\" count_only:true " with result "range_response_count:0 size:4" took too long (212.836235ms) to execute
W0602 09:15:53.870554 42 genericapiserver.go:412] Skipping API batch/v2alpha1 because it has no resources.
W0602 09:15:53.891406 42 genericapiserver.go:412] Skipping API discovery.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.925055 42 genericapiserver.go:412] Skipping API node.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.963677 42 genericapiserver.go:412] Skipping API rbac.authorization.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.970304 42 genericapiserver.go:412] Skipping API scheduling.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:53.995137 42 genericapiserver.go:412] Skipping API storage.k8s.io/v1alpha1 because it has no resources.
W0602 09:15:54.018074 42 genericapiserver.go:412] Skipping API apps/v1beta2 because it has no resources.
W0602 09:15:54.018097 42 genericapiserver.go:412] Skipping API apps/v1beta1 because it has no resources.
I0602 09:15:54.033751 42 plugins.go:158] Loaded 12 mutating admission controller(s) successfully in the following order: NamespaceLifecycle,LimitRanger,ServiceAccount,NodeRestriction,TaintNodesByCondition,Priority,DefaultTolerationSeconds,DefaultStorageClass,StorageObjectInUseProtection,RuntimeClass,DefaultIngressClass,MutatingAdmissionWebhook.
I0602 09:15:54.033783 42 plugins.go:161] Loaded 10 validating admission controller(s) successfully in the following order: LimitRanger,ServiceAccount,Priority,PersistentVolumeClaimResize,RuntimeClass,CertificateApproval,CertificateSigning,CertificateSubjectRestriction,ValidatingAdmissionWebhook,ResourceQuota.
time="2021-06-02T09:15:54.049015256Z" level=info msg="Running kube-scheduler --address=127.0.0.1 --bind-address=127.0.0.1 --kubeconfig=/var/lib/rancher/k3s/server/cred/scheduler.kubeconfig --port=10251 --profiling=false --secure-port=0"
time="2021-06-02T09:15:54.049109823Z" level=info msg="Waiting for API server to become available"
I0602 09:15:54.049402 42 registry.go:173] Registering SelectorSpread plugin
I0602 09:15:54.049425 42 registry.go:173] Registering SelectorSpread plugin
time="2021-06-02T09:15:54.049915397Z" level=info msg="Running kube-controller-manager --address=127.0.0.1 --allocate-node-cidrs=true --bind-address=127.0.0.1 --cluster-cidr=10.42.0.0/16 --cluster-signing-cert-file=/var/lib/rancher/k3s/server/tls/client-ca.crt --cluster-signing-key-file=/var/lib/rancher/k3s/server/tls/client-ca.key --kubeconfig=/var/lib/rancher/k3s/server/cred/controller.kubeconfig --port=10252 --profiling=false --root-ca-file=/var/lib/rancher/k3s/server/tls/server-ca.crt --secure-port=0 --service-account-private-key-file=/var/lib/rancher/k3s/server/tls/service.key --use-service-account-credentials=true"
time="2021-06-02T09:15:54.051765589Z" level=info msg="Node token is available at /var/lib/rancher/k3s/server/token"
time="2021-06-02T09:15:54.051852881Z" level=info msg="To join node to cluster: k3s agent -s https://172.17.0.2:6443 -t ${NODE_TOKEN}"
time="2021-06-02T09:15:54.053295687Z" level=info msg="Wrote kubeconfig /etc/rancher/k3s/k3s.yaml"
time="2021-06-02T09:15:54.053324842Z" level=info msg="Run: k3s kubectl"
time="2021-06-02T09:15:54.053451506Z" level=warning msg="Failed to find cpuset cgroup, you may need to add \"cgroup_enable=cpuset\" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)"
time="2021-06-02T09:15:54.053477904Z" level=error msg="Failed to find memory cgroup, you may need to add \"cgroup_memory=1 cgroup_enable=memory\" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)"
time="2021-06-02T09:15:54.053508647Z" level=fatal msg="failed to find memory cgroup, you may need to add \"cgroup_memory=1 cgroup_enable=memory\" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)"
2021/06/02 09:15:54 [FATAL] k3s exited with: exit status 1Tumbleweed is not supported by rancher but LEAP is - so my idea is that maybe I did something wrong or it's simple problem that can be fixed quickly. Any ideas or reading materials related to this error are very welcome