** Description changed: + ==================================== + SRU Justification + Impact: xenial containers cannot be rebooted + Fix: shorten the fuse directory entry caching time, and make lxc (when using lxcfs) wait at least that amount of time during reboot. + Test case: + lxc-create -t download -n x1 -- -d ubuntu -r xenial -a amd64 + lxc-start -n x1 + lxc-attach -n x1 -- rebot + sleep 10s + lxc-attach -n x1 -- ifconfig -a + (Note this requires lxc 1.1.5 which is currently in wily-proposed + in order to work at all) + ==================================== + 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 + 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.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
** Changed in: lxcfs (Ubuntu Wily) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1514690 Title: rebooting container with systemd >= 226 fails to create /lxc/adt- xenial/init.scope control group To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxcfs/+bug/1514690/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs