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

sysctl: cannot stat /proc/sys/fs/may_detach_mounts: No such file or directory #348

Open
jijianwen opened this issue Aug 24, 2021 · 0 comments

Comments

@jijianwen
Copy link

When I followed instructions on README to create a HA Kubernetes cluster with two worker nodes and OVN-Kubernetes in Raft mode as a CNI, I got errors as below by running 'ansible-playbook -i inventory/vms.local.generated playbooks/kube-install-ovn.yml':

TASK [cri-o-install : set fs.may_detach_mounts] *******************************************************************
fatal: [kube-master2]: FAILED! => {"changed": false, "msg": "Failed to reload sysctl: sysctl: cannot stat /proc/sys/fs/may_detach_mounts: No such file or directory\n"}
fatal: [kube-node-2]: FAILED! => {"changed": false, "msg": "Failed to reload sysctl: sysctl: cannot stat /proc/sys/fs/may_detach_mounts: No such file or directory\n"}
fatal: [kube-master1]: FAILED! => {"changed": false, "msg": "Failed to reload sysctl: sysctl: cannot stat /proc/sys/fs/may_detach_mounts: No such file or directory\n"}
fatal: [kube-node-1]: FAILED! => {"changed": false, "msg": "Failed to reload sysctl: sysctl: cannot stat /proc/sys/fs/may_detach_mounts: No such file or directory\n"}
fatal: [kube-master3]: FAILED! => {"changed": false, "msg": "Failed to reload sysctl: sysctl: cannot stat /proc/sys/fs/may_detach_mounts: No such file or directory\n"}

I logged in kube-master1, found the running kernel is 5.13.12-1.el7.elrepo.x86_64. It seems fs.may_detach_mounts is not available on that kernel but available on 3.10.0-957.27.2.el7.x86_64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant