[Bug 1455828] Re: machinctl/systemd-nspawn containers/processes end in wrong slice
Martin Pitt
martin.pitt at ubuntu.com
Tue Jun 2 10:57:46 UTC 2015
Hm, when I do this it seems to be correct:
$ sudo systemd-nspawn -b -D /tmp/schroot-wily-systemd/
"machinectl status schroot-wily-systemd" shows
Unit: machine-schroot\x2dwily\x2dsystemd.scope
├─12745 /lib/systemd/systemd
[...]
and systemd-cgls shows
├─machine.slice
│ └─machine-schroot\x2dwily\x2dsystemd.scope
│ ├─12745 /lib/systemd/systemd
│ └─system.slice
[...]
If I run nspawn with --slice foo.slice I get
├─foo.slice
│ └─machine-schroot\x2dwily\x2dsystemd.scope
│ ├─12876 /lib/systemd/systemd
[...]
>From what command is the output in the description?
** Changed in: systemd (Ubuntu)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1455828
Title:
machinctl/systemd-nspawn containers/processes end in wrong slice
Status in systemd package in Ubuntu:
Incomplete
Bug description:
Starting a Container via systemd-nspawn it is supposed to run in the machine.slice.
While on Fedora 21 (systemd 216) it works like expected.
In Unbuntu 15.04 (systemd 219)
Slice=system-systemd\x5cx2dnspawn.slice
ControlGroup=/system.slice/system-systemd\x5cx2dnspawn.slice/systemd-nspawn at jessie02.service
On Fedora 21:
Slice=machine.slice
ControlGroup=/machine.slice/machine-jessie.scope
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1455828/+subscriptions
More information about the foundations-bugs
mailing list