[lxc-users] cgmanager: cgm_list_children for controller=systemd, cgroup_path=user failed: invalid request

Smart Goldman ytlec2014 at gmail.com
Sat Jan 17 01:26:39 UTC 2015


2015-01-17 5:31 GMT+09:00 Serge Hallyn <serge.hallyn at ubuntu.com>:

> Operation not permitted?  That's unexpected.  Are you running a custom
> kernel or custom selinux policy?

Yes, mine is ubuntu system provided by a VPS service of
https://crissic.net/los-angeles_vps_pre-launch
I think it's a possibility. I may need to ask the provider about it..
Although I do not think this information will be helpful, this is my kernel
version.
root at okapi:~# uname -a
Linux okapi 2.6.32-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 x86_64
x86_64 x86_64 GNU/Linux
I think I've never changed the kernel by myself.

> I do think removing cgroup-bin
>
> sudo apt-get purge cgroup-bin
>
> will fix the mounting of the name=beancounter etc hierarchies.

I had removed cgroup-bin.
But unfortunately it looks like it was not fixed.

Each file after removing cgroup-bin, reboot and re-login is now as follows:

root at okapi:~# cat /proc/self/cgroup
4:name=systemd:/
3:freezer,devices,name=container:/12042
2:cpuacct,cpu,cpuset,name=fairsched:/12042
1:blkio,name=beancounter:/12042

root at okapi:~# tail -n 13 /var/log/upstart/cgmanager.log
Mounted systemd onto /run/cgmanager/fs/none,name=systemd
Mounted container onto /run/cgmanager/fs/none,name=container
Mounted fairsched onto /run/cgmanager/fs/none,name=fairsched
Mounted beancounter onto /run/cgmanager/fs/none,name=beancounter
found 4 controllers
buf is /run/cgmanager/agents/cgm-release-agent.systemd
buf is /run/cgmanager/agents/cgm-release-agent.container
buf is /run/cgmanager/agents/cgm-release-agent.fairsched
buf is /run/cgmanager/agents/cgm-release-agent.beancounter
Mounted systemd onto /run/cgmanager/fs/none,name=systemd
cgmanager: Failed mounting /run/cgmanager/fs/none,name=container: Operation
not permitted
cgmanager: Failed mounting cgroups
cgmanager: Failed to set up cgroup mounts

root at okapi:~# tail -n 10 /var/log/auth.log
Jan 17 00:31:48 okapi sudo:     root : TTY=pts/0 ; PWD=/root ; USER=root ;
COMMAND=/usr/bin/apt-get -y purge cgroup-bin
Jan 17 00:31:48 okapi sudo: pam_unix(sudo:session): session opened for user
root by root(uid=0)
Jan 17 00:31:55 okapi sudo: pam_unix(sudo:session): session closed for user
root
Jan 17 00:32:53 okapi systemd-logind[326]: New seat seat0.
Jan 17 00:32:54 okapi sshd[492]: Server listening on 0.0.0.0 port 22.
Jan 17 00:32:54 okapi sshd[492]: Server listening on :: port 22.
Jan 17 00:34:09 okapi sshd[897]: Accepted password for root from
119.105.136.26 port 56815 ssh2
Jan 17 00:34:09 okapi sshd[897]: pam_unix(sshd:session): session opened for
user root by (uid=0)
Jan 17 00:34:09 okapi systemd-logind[326]: Failed to create cgroup
name=systemd:/user/0.user: No such file or directory
Jan 17 00:34:09 okapi sshd[897]: pam_systemd(sshd:session): Failed to
create session: No such file or directory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150117/2d922d67/attachment.html>


More information about the lxc-users mailing list