Unable to open '/sys/fs/cgroup/freezer/release_agent' for reading : No such file or directory

Hi There,

With LXC version 3.0.4. I am not getting why /sys/fs/cgroup/freezer//release_agent is not getting created though cgroup is enabled. Is there any know issue with this version? do I need to upgrade?
# lxc-info --version
3.0.4

585 581 0:53 / /sys/fs/cgroup ro,nosuid,nodev,noexec - tmpfs none ro,size=10240k,mode=755
586 585 0:26 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
587 585 0:30 / /sys/fs/cgroup/rdma rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,rdma
588 585 0:31 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,memory
589 585 0:32 / /sys/fs/cgroup/net_cls,net_prio rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,net_cls,net_prio
590 585 0:33 / /sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,hugetlb
591 585 0:34 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,cpu,cpuacct
592 585 0:35 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,devices
593 585 0:36 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,blkio
594 585 0:37 / /sys/fs/cgroup/pids rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,pids
595 585 0:38 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,cpuset
596 585 0:39 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,freezer
597 585 0:40 / /sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,perf_event

# ls -ltr /sys/fs/cgroup/freezer/
total 0
-rw-r--r-- 1 root root 0 Dec 13 09:21 cgroup.procs
-rw-r--r-- 1 root root 0 Dec 13 12:57 tasks
-rw-r--r-- 1 root root 0 Dec 13 12:57 notify_on_release
-rw-r--r-- 1 root root 0 Dec 13 12:57 freezer.state
-r--r--r-- 1 root root 0 Dec 13 12:57 freezer.self_freezing
-r--r--r-- 1 root root 0 Dec 13 12:57 freezer.parent_freezing
-rw-r--r-- 1 root root 0 Dec 13 12:57 cgroup.clone_children

Thanks,
Abhihsek

Chances are you’re just on a kernel that’s too old to have the release_agent feature.