Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubeadm Pre-flight check fails for cgroupsv2 (CGROUPS_CPUSET: missing) #2571

Closed
alexcpn opened this issue Sep 20, 2021 · 6 comments
Closed
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@alexcpn
Copy link

alexcpn commented Sep 20, 2021

Not sure if this is an OS thing or Kubeadm related.

Versions

kubeadm version (use kubeadm version):

  • kubeadm version: &version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2",

Environment:

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2",
  • Cloud provider or hardware configuration:
  • Google Cloud VM
  • OS (e.g. from /etc/os-release):
  • Debian Buster
  • Kernel (e.g. uname -a):
  • Linux instance-1 4.19.0-17-cloud-amd64 kubeadm join on slave node fails preflight checks #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux
  • Others:

What happened?

Tried to do Kubeadm init

config.yaml

apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
cgroupDriver: containerd
---
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
networking:
  podSubnet: "10.244.0.0/16"

root@instance-1:/home/alexcpn# mount | grep '^cgroup' | awk '{print $1}' | uniq
cgroup2
root@instance-1:/home/alexcpn# kubeadm init --config config.yaml
[init] Using Kubernetes version: v1.22.2
[preflight] Running pre-flight checks
[preflight] The system verification failed. Printing the output from the verification:
KERNEL_VERSION: 4.19.0-17-cloud-amd64
CONFIG_NAMESPACES: enabled
CONFIG_NET_NS: enabled
CONFIG_PID_NS: enabled
CONFIG_IPC_NS: enabled
CONFIG_UTS_NS: enabled
CONFIG_CGROUPS: enabled
CONFIG_CGROUP_CPUACCT: enabled
CONFIG_CGROUP_DEVICE: enabled
CONFIG_CGROUP_FREEZER: enabled
CONFIG_CGROUP_PIDS: enabled
CONFIG_CGROUP_SCHED: enabled
CONFIG_CPUSETS: enabled
CONFIG_MEMCG: enabled
CONFIG_INET: enabled
CONFIG_EXT4_FS: enabled (as module)
CONFIG_PROC_FS: enabled
CONFIG_NETFILTER_XT_TARGET_REDIRECT: enabled (as module)
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled (as module)
CONFIG_FAIR_GROUP_SCHED: enabled
CONFIG_OVERLAY_FS: enabled (as module)
CONFIG_AUFS_FS: not set - Required for aufs.
CONFIG_BLK_DEV_DM: enabled (as module)
CONFIG_CFS_BANDWIDTH: enabled
CONFIG_CGROUP_HUGETLB: not set - Required for hugetlb cgroup.
CONFIG_SECCOMP: enabled
CONFIG_SECCOMP_FILTER: enabled
OS: Linux
CGROUPS_CPU: enabled
CGROUPS_CPUSET: missing
CGROUPS_DEVICES: enabled
CGROUPS_FREEZER: enabled
CGROUPS_MEMORY: enabled
CGROUPS_PIDS: enabled
CGROUPS_HUGETLB: missing
        [WARNING SystemVerification]: missing optional cgroups: hugetlb
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR SystemVerification]: missing required cgroups: cpuset
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

System is running CGroupsv2

root@instance-1:/home/alexcpn# ls /sys/fs/cgroup/
cgroup.controllers  cgroup.max.descendants  cgroup.stat             cgroup.threads  kubepods      user.slice
cgroup.max.depth    cgroup.procs            cgroup.subtree_control  init.scope      system.slice
root@instance-1:/home/alexcpn# 

What you expected to happen?

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

Anything else we need to know?

@neolit123
Copy link
Member

neolit123 commented Sep 20, 2021 via email

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Sep 20, 2021
@alexcpn alexcpn closed this as completed Sep 20, 2021
@alexcpn
Copy link
Author

alexcpn commented Sep 20, 2021

It worked with Ubuntu 21.04, with Cgroupsv2 enabled.

@suravarapusuryakiran
Copy link

Hi Guys,

i'm facing exactly similar issue on debian NUC.! but in my case i can't switch to any other other distro.! how can i solve it in debian 4.19 or do i need any kernal update. all are passing except Cgroup.cpusets

@neolit123
Copy link
Member

neolit123 commented Mar 22, 2022 via email

@suravarapusuryakiran
Copy link

i'm getting error while joining the node into cluster. on the otherhand i can see cgroup is enabled .
similar to above output all are enabled in cgroups .! but it still says CPUset is the one only missing.

i'm clueless

@neolit123
Copy link
Member

neolit123 commented Mar 22, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants