[pkg-lxc-devel] Bug#844086: lxc: On "sysv-init", fail to initialize cgroup since "cgmanager" support dropped.
Thibaut Chèze
lxc.reportbug.debian.thibaut at kribleur.fr
Sat Nov 12 10:35:21 UTC 2016
Package: lxc
Version: 1:2.0.5-3
Severity: important
Tags: newcomer
Found: 1:2.0.5-1
Notfound: 1:2.0.4-1
Hi,
After an upgrade from /1:2.0.4-1/, lxc containers fails to start on
/SysV init/.
It seems that it is following the removal of "cgmanager" support.
A workaround is to install the "cgroupfs-mount" package or manually
mount /cgroups/.
Could you add some information to help ? Maybe update dependencies
(recommended or suggested, like previously "cgmanager") on "systemd" or
"cgroupfs-mount" for /cgroups/ settings.
Note: On my system, "systemd" is installed (required by other services),
but is not used as /init/.
-- Before "cgroupfs-mount" installation:
--- lxc-start logs:
lxc-start: cgroups/cgfs.c: cgfs_init: 2288 cgroupfs failed to detect
cgroup metadata
lxc-start: start.c: lxc_spawn: 1094 failed initializing cgroup support
lxc-start: start.c:
__lxc_start: 1354 failed to spawn 'test-container'
lxc-start: tools/lxc_start.c: main: 344 The container
failed to start.
--- lxc-checkconfig outputs:
Kernel configuration not found at /proc/config.gz; searching...
Kernel configuration found at /boot/config-4.7.0-1-amd64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
--- Control groups ---
Cgroup: enabled
Cgroup namespace: required
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
Bridges: enabled
Advanced netfilter: enabled
CONFIG_NF_NAT_IPV4: enabled
CONFIG_NF_NAT_IPV6: enabled
CONFIG_IP_NF_TARGET_MASQUERADE: enabled
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled
FUSE (for use with lxcfs): enabled
--- Checkpoint/Restore ---
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities: enabled
Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
-- After "cgroupfs-mount" installation:
--- lxc-checkconfig outputs:
Kernel configuration not found at /proc/config.gz; searching...
Kernel configuration found at /boot/config-4.7.0-1-amd64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
Bridges: enabled
Advanced netfilter: enabled
CONFIG_NF_NAT_IPV4: enabled
CONFIG_NF_NAT_IPV6: enabled
CONFIG_IP_NF_TARGET_MASQUERADE: enabled
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled
FUSE (for use with lxcfs): enabled
--- Checkpoint/Restore ---
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities: enabled
Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
--- Added mount entries:
cgroup on /sys/fs/cgroup/cpuset type cgroup
(rw,relatime,cpuset,release_agent=/run/cgmanager/agents/cgm-release-agent.cpuset,clone_children)
cgroup on /sys/fs/cgroup/cpu type cgroup
(rw,relatime,cpu,release_agent=/run/cgmanager/agents/cgm-release-agent.cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup
(rw,relatime,cpuacct,release_agent=/run/cgmanager/agents/cgm-release-agent.cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup
(rw,relatime,blkio,release_agent=/run/cgmanager/agents/cgm-release-agent.blkio)
cgroup on /sys/fs/cgroup/memory type cgroup
(rw,relatime,memory,release_agent=/run/cgmanager/agents/cgm-release-agent.memory)
cgroup on /sys/fs/cgroup/devices type cgroup
(rw,relatime,devices,release_agent=/run/cgmanager/agents/cgm-release-agent.devices)
cgroup on /sys/fs/cgroup/freezer type cgroup
(rw,relatime,freezer,release_agent=/run/cgmanager/agents/cgm-release-agent.freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup
(rw,relatime,net_cls,release_agent=/run/cgmanager/agents/cgm-release-agent.net_cls)
cgroup on /sys/fs/cgroup/perf_event type cgroup
(rw,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event)
cgroup on /sys/fs/cgroup/net_prio type cgroup
(rw,relatime,net_prio,release_agent=/run/cgmanager/agents/cgm-release-agent.net_prio)
cgroup on /sys/fs/cgroup/pids type cgroup
(rw,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids)
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (600, 'testing'), (400, 'stable-updates'), (400,
'proposed-updates'), (400, 'stable'), (300, 'oldstable-updates'), (300,
'oldstable-proposed-updates'), (300, 'oldstable'), (200, 'unstable'),
(100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages lxc depends on:
ii init-system-helpers 1.46
ii libapparmor1 2.10.95-5
ii libc6 2.24-5
ii libcap2 1:2.25-1
ii liblxc1 1:2.0.5-3
ii libseccomp2 2.3.1-2
ii libselinux1 2.6-1
ii lsb-base 9.20161101
ii python3-lxc 1:2.0.5-3
pn python3:any <none>
Versions of packages lxc recommends:
ii bridge-utils 1.5-9
ii debootstrap 1.0.86
ii dirmngr 2.1.15-4
pn dnsmasq-base <none>
ii gnupg 2.1.15-4
ii iptables 1.6.0-4
pn libpam-cgfs <none>
pn lxcfs <none>
ii openssl 1.0.2j-1
ii rsync 3.1.2-1
ii uidmap 1:4.2-3.2
Versions of packages lxc suggests:
ii apparmor 2.10.95-5
pn btrfs-tools <none>
ii lvm2 2.02.164-1
-- no debconf information
Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-lxc-devel/attachments/20161112/87f7be6d/attachment.sig>
More information about the Pkg-lxc-devel
mailing list