[lxc-users] cgmanager+lxc-attach

Tamas Papp tompos at martos.bme.hu
Sat Feb 22 07:17:55 UTC 2014


On 02/22/2014 06:25 AM, Serge Hallyn wrote:
> Ok, thanks Tamas - this is a bug in how the cgproxy starts up
> on an older kernel.
>
> As a workaround until I get it fixed, you can
>
> sudo stop cgproxy
> sudo stop cgmanager
> sudo rm -rf /sys/fs/cgroup/cgmanager*
>
> then in one terminal:
>
> sudo /sbin/cgmanager --debug
>
> and in another:
>
> sudo /sbin/cgproxy --debug
>

hi Serge,

Precise:

# rm /sys/fs/cgroup/cgmanager/ -r
# cgmanager --debug
cpuset was already mounted!
Mounted cpuset onto /run/cgmanager/fs/cpuset
set clone_children
cpu was already mounted!
Mounted cpu onto /run/cgmanager/fs/cpu
cpuacct was already mounted!
Mounted cpuacct onto /run/cgmanager/fs/cpuacct
memory was already mounted!
Mounted memory onto /run/cgmanager/fs/memory
set memory.use_hierarchy
devices was already mounted!
Mounted devices onto /run/cgmanager/fs/devices
freezer was already mounted!
Mounted freezer onto /run/cgmanager/fs/freezer
blkio was already mounted!
Mounted blkio onto /run/cgmanager/fs/blkio
perf_event was already mounted!
Mounted perf_event onto /run/cgmanager/fs/perf_event
hugetlb was already mounted!
Mounted hugetlb onto /run/cgmanager/fs/hugetlb
mounted 9 controllers



Connection from private client
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to cpuset:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to cpu:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to cpuacct:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to memory:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to devices:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to freezer:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to blkio:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to perf_event:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
29551 moved to hugetlb:/ by 29551's request
MovePid: Client fd is: 6 (pid=29551, uid=0, gid=0)
cgmanager: Bad requested cgroup path: /lxc/naming
Disconnected from private client


No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:    12.04
Codename:    precise
Linux naming-lxc04 3.8.0-32-generic #47~precise1-Ubuntu SMP Wed Oct 2
16:19:35 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

There is no cgproxy..



Saucy:

# cgmanager --debug
cpuset was already mounted!
Mounted cpuset onto /run/cgmanager/fs/cpuset
set clone_children
cpu was already mounted!
Mounted cpu onto /run/cgmanager/fs/cpu
cpuacct was already mounted!
Mounted cpuacct onto /run/cgmanager/fs/cpuacct
memory was already mounted!
Mounted memory onto /run/cgmanager/fs/memory
set memory.use_hierarchy
devices was already mounted!
Mounted devices onto /run/cgmanager/fs/devices
freezer was already mounted!
Mounted freezer onto /run/cgmanager/fs/freezer
blkio was already mounted!
Mounted blkio onto /run/cgmanager/fs/blkio
perf_event was already mounted!
Mounted perf_event onto /run/cgmanager/fs/perf_event
hugetlb was already mounted!
Mounted hugetlb onto /run/cgmanager/fs/hugetlb
mounted 9 controllers
Connection from private client
Connection from private client
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to cpuset:/ by 13110's request
cgmanager: got an error, type invalid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to cpu:/ by 13110's request
cgmanager: got an error, type move_pid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to cpuacct:/ by 13110's request
cgmanager: got an error, type move_pid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to memory:/ by 13110's request
cgmanager: got an error, type move_pid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to devices:/ by 13110's request
cgmanager: got an error, type move_pid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to freezer:/ by 13110's request
cgmanager: got an error, type move_pid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to blkio:/ by 13110's request
cgmanager: got an error, type invalid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to perf_event:/ by 13110's request
cgmanager: got an error, type move_pid
cgmanager: error Bad file descriptor
got creds pid 13110 (0:0)
got creds pid 13110 (0:0)
13110 moved to hugetlb:/ by 13110's request
cgmanager: got an error, type invalid
cgmanager: error Bad file descriptor




# cgproxy --debug
Connection from private client
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
MovePid: Client fd is: 8 (pid=13110, uid=0, gid=0)
cgproxy: uid 0 tried to escape its cgroup
Disconnected from private client




tamas


ps.: /bin/ls sometime list / sometime /root. I could not figure out the
logic. Is there any, or may it be another bug?


More information about the lxc-users mailing list