From c4d18185d2c3388ae3bdce4cd1319b90f4f1d297 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Tue, 7 Dec 2021 15:46:49 +0100 Subject: [PATCH] Exec libvirtd in a transient scope The nova_libvirt entry script nova_libvirt_launcher.sh starts libvirtd in the determenistic /system.slice/tripleo_nova_libvirt.service scope. That puts newly started qemu instances into the same cgroup scope: ... 2:pids:/system.slice/tripleo_nova_libvirt.service 1:name=systemd:/system.slice/tripleo_nova_libvirt.service Given the changed KillMode to control-cgroup, those must be started in another scope, in order to survive restarting of libvirt daemon or nova_libvirt container. Ensure that by starting libvirtd in a transient scope. Change-Id: Ib79bb77c62223cc2e54d92a19e02c1ad8cb8b12a Closes-bug: #1953503 Related: rhbz#2010135 Signed-off-by: Bogdan Dobrelya (cherry picked from commit 9d06a3c7e2414e9a5075d15617dcdab328c030c0) --- deployment/nova/nova-libvirt-container-puppet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/nova/nova-libvirt-container-puppet.yaml b/deployment/nova/nova-libvirt-container-puppet.yaml index a87b959353..657849c041 100644 --- a/deployment/nova/nova-libvirt-container-puppet.yaml +++ b/deployment/nova/nova-libvirt-container-puppet.yaml @@ -661,7 +661,7 @@ outputs: if [[ -f /usr/lib/systemd/kvm-setup ]]; then /usr/lib/systemd/kvm-setup fi - /usr/sbin/libvirtd LIBVIRTD_ARGS + exec systemd-run --scope --slice=system /usr/sbin/libvirtd LIBVIRTD_ARGS params: LIBVIRTD_ARGS: if: