sysdig icon indicating copy to clipboard operation
sysdig copied to clipboard

Can't identify LXC containers due to new /sys/fs/cgroup/cpuset/lxc path

Open JoeMattie opened this issue 7 years ago • 5 comments

LXC v3.11 (and possibly older) splits

/sys/fs/cgroup/cpuset/lxc into /sys/fs/cgroup/cpuset/lxc.monitor and /sys/fs/cgroup/cpuset/lxc.payload

As sysdig is expecting to find '/lxc/' in the path, it is no longer able to identify LXC containers.

Relevant line

JoeMattie avatar Mar 26 '19 16:03 JoeMattie

Is there any lxc documentation about the difference between lxc.monitor and lxc.payload? I assume we would only care about the lxc.payload containers?

mfdii avatar Mar 26 '19 17:03 mfdii

Not that I've found.

@stgraber might be able to shed some light on this.

Can confirm that sysdig seems to work after changing the path to '/lxc.payload/', working on a PR now.

This is not likely a complete fix however, as @stgraber commented here that

Also worth noting that on cgroupv2 the path may look even more different so those tools probably should be made a bit smarter.

JoeMattie avatar Mar 26 '19 17:03 JoeMattie

Thanks for working on the PR. In order to support older versions of LXC the parsing logic would need to be able to find /lxc/ and /lcx.payload/ / /lxc.monitor/ containers

mfdii avatar Mar 26 '19 17:03 mfdii

Related (same) issue: https://github.com/draios/sysdig/issues/1289

JoeMattie avatar Mar 26 '19 19:03 JoeMattie

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 22 '23 08:02 github-actions[bot]