← Back to team overview

touch-packages team mailing list archive

[Bug 1514690] Re: rebooting container with systemd >= 226 fails to create /lxc/adt-xenial/init.scope control group

 

With cgfs i actually wasn't able to start the container in the first
place.  I've now fixed at least that.

it wasn't the mkdir which was failing, but the subsequent attempt to
attach itself to it.  That's because while cgmanager used to chown the
child files after creating a directory for us, cgfs wasn't doing that.

Now I'm at least at the point you were at - i can boot, but reboot
hangs, almost the same way:

Failed to create /lxc/x1/init.scope control group: No such file or directory
Failed to allocate manager object: No such file or directory
[!!!!!!] Failed to allocate manager object, freezing.

Note the error is not ENOENT.  When I check the rootfs after the fact,
there is no init.scope directory...

Debug statement in lxcfs suggests that no mkdir was ever called.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1514690

Title:
  rebooting container with systemd >= 226 fails to create /lxc/adt-
  xenial/init.scope control group

Status in lxc package in Ubuntu:
  Triaged

Bug description:
  Even after fixing bug 1497420 rebooting containers with systemd >= 226
  (i. e. with supporting unified cgroups) does not work. Build a
  standard xenial container (using the ubuntu template; e. g. "adt-
  build-lxc ubuntu xenial"), start it:

    sudo lxc-start -n adt-xenial -F

  then log in and run "sudo reboot". It shuts down, but reboot fails
  with

  Rebooting.
  systemd 227 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
  Detected virtualization lxc.
  Detected architecture x86-64.

  Welcome to Ubuntu 16.04!

  Set hostname to <adt-xenial.new>.
  Failed to install release agent, ignoring: No such file or directory
  Failed to create /lxc/adt-xenial/init.scope control group: No such file or directory
  Failed to allocate manager object: No such file or directory
  [!!!!!!] Failed to allocate manager object, freezing.
  Freezing execution.

  During that time, I get the following errors:

  Nov 09 08:42:31 donald cgmanager[864]: cgmanager: Invalid path /run/cgmanager/fs/none,name=systemd///lxc/adt-xenial/init.scope (No such file or directory)
  Nov 09 08:42:31 donald cgmanager[864]: cgmanager:list_children_main: Could not determine the requested cgroup (name=systemd:lxc/adt-xenial/init.scope)
  Nov 09 08:42:31 donald cgmanager[864]: cgmanager: Invalid path /run/cgmanager/fs/none,name=systemd///lxc/adt-xenial/init.scope (No such file or directory)
  Nov 09 08:42:31 donald cgmanager[864]: cgmanager:list_keys_main: Could not determine the requested cgroup (name=systemd:lxc/adt-xenial/init.scope)
  Nov 09 08:42:31 donald lxcfs[882]: ** (process:882): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListChildren failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info.
  Nov 09 08:42:31 donald lxcfs[882]: ** (process:882): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info.h

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: lxc 1.1.5-0ubuntu1
  ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
  Uname: Linux 4.2.0-16-generic x86_64
  ApportVersion: 2.19.2-0ubuntu5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Nov 10 06:30:28 2015
  EcryptfsInUse: Yes
  SourcePackage: lxc
  UpgradeStatus: No upgrade log present (probably fresh install)
  defaults.conf:
   lxc.network.type = veth
   lxc.network.link = lxcbr0
   lxc.network.flags = up
   lxc.network.hwaddr = 00:16:3e:xx:xx:xx
  lxc.conf: lxc.lxcpath = /srv/lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1514690/+subscriptions


References