kubernetes: cAdvisor leaking journalctl processes

Extracted from https://github.com/kubernetes/kubernetes/pull/23491#issuecomment-251777767

This appears to be leaking journalctl processes originating here: https://github.com/kubernetes/kubernetes/blob/master/vendor/github.com/google/cadvisor/utils/oomparser/oomparser.go#L169

https://github.com/kubernetes/kubernetes/pull/23491 set kubelet unit files to restart just the kubelet process and this ends up orphaning and leaking journalctl processes launched by cAdvisor. AFAIK, this behavior can leak many other processes like du, ls, mount, etc.

@kubernetes/sig-node we need to fix this.

I recommend reverting https://github.com/kubernetes/kubernetes/pull/23491 to begin with as suggested by @wwwtyro

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (21 by maintainers)

Commits related to this issue

Most upvoted comments

We should use kmsg instead of journald / sd-journal since cadvisor only cares about oom messages IMO.

Duplicating my work from https://github.com/kubernetes/node-problem-detector/pull/41 against cadvisor should fix this, and I’ve been planning to do that regardless.