[systemd-bugs] [Bug 68370] New: systemd-nspawn -b doesn't cleanup machine slice if systemd inside container

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 21 00:08:07 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=68370

          Priority: medium
            Bug ID: 68370
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd-nspawn -b doesn't cleanup machine slice if
                    systemd inside container
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: maxposedon at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

systemd-nspawn doesn't clean all machine slices, so restarting doesn't work
(see below). After removing slice in /sys/fs/cgroup, it starts fine.

m_melnikau-M11xR3 kvms # systemd-nspawn -D /media/gsoho -b
systemd 206 running in system mode. (+PAM +LIBWRAP -AUDIT -SELINUX +IMA
-SYSVINIT -LIBCRYPTSETUP -GCRYPT +ACL -XZ)
Detected virtualization 'systemd-nspawn'.
Welcome to Gentoo/Linux!
...
All filesystems unmounted.
Storage is finalized.
Container has been shut down.

m_melnikau-M11xR3 kvms # systemd-nspawn -D /media/gsoho -b
Spawning namespace container on /media/gsoho (console is /dev/pts/4).
Init process in the container running as PID 4706.
Failed to register machine: File exists
Container failed with error code 239.

m_melnikau-M11xR3 kvms # wc -l
/sys/fs/cgroup/systemd/system.slice/machine-gsoho.scope/tasks
0 /sys/fs/cgroup/systemd/system.slice/machine-gsoho.scope/tasks

m_melnikau-M11xR3 kvms # rmdir
/sys/fs/cgroup/systemd/system.slice/machine-gsoho.scope/system.slice/systemd-journald.service/

m_melnikau-M11xR3 kvms # wc -l
/sys/fs/cgroup/systemd/system.slice/machine-gsoho.scope/tasks                   
wc: /sys/fs/cgroup/systemd/system.slice/machine-gsoho.scope/tasks: No such file
or directory

# systemd-nspawn -D /media/gsoho -b                                             
...
Welcome to Gentoo/Linux!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130821/21cde9e2/attachment.html>


More information about the systemd-bugs mailing list