DescriptionTakayoshi Kimura
2018-06-11 05:49:15 UTC
Description of problem:
Getting the following error during atomic-openshift-node startup and it keeps crashing:
> atomic-openshift-node[17197]: E0607 22:24:14.775652 17197 manager.go:263] Registration of the raw container factory failed: inotify_init: too many open files
> atomic-openshift-node[17197]: F0607 22:24:14.775792 17197 kubelet.go:1238] Failed to start cAdvisor inotify_init: too many open files
Similar issues reported to upstream:
inotify resources exhausted : possible leak in cAdvisor #10421
https://github.com/kubernetes/kubernetes/issues/10421
Failed to start cAdvisor inotify_init: too many open files #58081
https://github.com/kubernetes/kubernetes/issues/58081
inotify: fix memory leak in Watcher
https://github.com/golang/exp/commit/292a51b8d262487dab23a588950e8052d63d9113#diff-913c4cd2428ce8671839b1afb2699b25
Version-Release number of selected component (if applicable):
atomic-openshift-3.6.173.0.113-1.git.0.65fb9fb.el7.x86_64
How reproducible:
Always at customer env
Steps to Reproduce:
1.
2.
3.
Actual results:
atomic-openshift-node crashes with "too many open files"
Expected results:
No crash
Additional info:
Known workaround is to increase the /proc/sys/fs/inotify/max_user_watches value. In the upstream issue report, it's confirmed to work when setting the following kernel parameter in /etc/sysctl.conf:
fs.inotify.max_user_watches=1048576
inotify resources exhausted : possible leak in cAdvisor #10421
https://github.com/kubernetes/kubernetes/issues/10421
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:2339