Your message dated Sat, 4 Feb 2017 18:12:30 +0100
with message-id <[email protected]>
and subject line Re: Bug#850212: lxc: lxc init script should depend on 
cgroupfs-mount
has caused the Debian Bug report #850212,
regarding lxc: On "sysv-init", fail to initialize cgroup since "cgmanager" 
support dropped.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
850212: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850212
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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,


Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Version: 1:2.0.7-1

Hi,

On Thu, Jan 05, 2017 at 12:21:59PM +0900, Benda Xu wrote:
> Package: lxc
> Version: 1:2.0.6-1~bpo8+1
> Severity: important
> 
> Dear Maintainer,
> 
> lxc requires cgroupfs to be properly mounted.  This task is either done by
> cgroupfs-mount init script or systemd.  The former does nothing if started
> by systemd:
> 
>   # Test for systemd and bail (we have to test before sourcing 
> init-functions, or systemd hijacks us)
>   # We bail because systemd already mounts cgroups sanely, so we just 
> silently pretend we were successful in mounting them here
>   if [ -d /run/systemd/system ]; then
>       exit 0
>   fi
> 
> Therefore adding cgroupfs-mount to the service dependency of lxc fix startup
> issue on non-systemd systems.
> 
>   ### BEGIN INIT INFO
>   # Provides: lxc
>   # Required-Start: $syslog $remote_fs cgroupfs-mount
>   # Required-Stop: $syslog $remote_fs cgroupfs-mount

This is done in 2.0.7 via Should-Start/Stop, thanks for the suggestion.

Evgeni

--- End Message ---

Reply via email to