[Pkg-libvirt-maintainers] Bug#898104: missing .service parameters
Michail Bachmann
m.bachmann at cms.hu-berlin.de
Wed Feb 13 09:29:19 GMT 2019
Package: libvirt-daemon-system
Version: 5.0.0-1
Followup-For: Bug #898104
Dear Maintainer,
not the original reporter, but I have similar problem when stopping the daemon,
as needrestart will not realize the daemon was already restarted.
The daemon itself is stopped correctly, but the started dnsmasq processes are
remaining running in the cgroup:
----8<----8<----
root at amber:~# systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-02-13 09:58:43 CET; 3s ago
Docs: man:libvirtd(8)
https://libvirt.org
Main PID: 19690 (libvirtd)
Tasks: 20 (limit: 32768)
Memory: 16.5M
CGroup: /system.slice/libvirtd.service
├─19690 /usr/sbin/libvirtd
├─19780 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/transfer_net.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelp
├─19787 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
└─19788 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
root at amber:~# systemctl stop libvirtd.service
root at amber:~# systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2019-02-13 09:59:48 CET; 1s ago
Docs: man:libvirtd(8)
https://libvirt.org
Process: 19690 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited, status=0/SUCCESS)
Main PID: 19690 (code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 32768)
Memory: 8.5M
CGroup: /system.slice/libvirtd.service
├─19780 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/transfer_net.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelp
├─19787 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
└─19788 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
---->8---->8----
When I change the KillMode setting in the service file to the default "control-group" it works as expected:
----8<----8<----
root at amber:~# systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-02-13 10:14:51 CET; 3s ago
Docs: man:libvirtd(8)
https://libvirt.org
Main PID: 20882 (libvirtd)
Tasks: 20 (limit: 32768)
Memory: 28.5M
CGroup: /system.slice/libvirtd.service
├─20882 /usr/sbin/libvirtd
├─20977 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/transfer_net.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelp
├─20984 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
└─20985 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
root at amber:~# systemctl stop libvirtd.service
root at amber:~# systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2019-02-13 10:15:07 CET; 1s ago
Docs: man:libvirtd(8)
https://libvirt.org
Process: 20882 ExecStart=/usr/sbin/libvirtd $libvirtd_opts (code=exited, status=0/SUCCESS)
Main PID: 20882 (code=exited, status=0/SUCCESS)
---->8---->8----
Maybe I am missing something, because I don't understand why the default
setting of KillMode was changed, thus causing the faulty behaviour.
Regards
Michail Bachmann
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libvirt-daemon-system depends on:
ii adduser 3.118
ii debconf [debconf-2.0] 1.5.70
ii gettext-base 0.19.8.1-9
ii iptables 1.8.2-3
ii libacl1 2.2.52-3+b1
ii libapparmor1 2.13.2-7
ii libaudit1 1:2.8.4-2
ii libblkid1 2.33.1-0.1
ii libc6 2.28-7
ii libcap-ng0 0.7.9-2
ii libdbus-1-3 1.12.12-1
ii libdevmapper1.02.1 2:1.02.155-2
ii libgnutls30 3.6.6-2
ii libnl-3-200 3.4.0-1
ii libnl-route-3-200 3.4.0-1
ii libnuma1 2.0.12-1
ii libselinux1 2.8-1+b1
ii libvirt-clients 5.0.0-1
ii libvirt-daemon 5.0.0-1
ii libvirt0 5.0.0-1
ii libxml2 2.9.4+dfsg1-7+b3
ii libyajl2 2.1.0-3
ii logrotate 3.14.0-4
ii lsb-base 10.2018112800
ii policykit-1 0.105-25
Versions of packages libvirt-daemon-system recommends:
ii dmidecode 3.2-1
ii dnsmasq-base [dnsmasq-base] 2.80-1
ii ebtables 2.0.10.4+snapshot20181205-2
ii iproute2 4.20.0-2
ii parted 3.2-24
Versions of packages libvirt-daemon-system suggests:
ii apparmor 2.13.2-7
ii auditd 1:2.8.4-2
pn nfs-common <none>
pn open-iscsi <none>
ii pm-utils 1.4.1-18
pn radvd <none>
ii systemd 240-5
pn systemtap <none>
pn zfsutils <none>
-- Configuration Files:
/etc/libvirt/libvirtd.conf changed [not included]
/etc/libvirt/nwfilter/allow-arp.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/allow-arp.xml'
/etc/libvirt/nwfilter/allow-dhcp-server.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/allow-dhcp-server.xml'
/etc/libvirt/nwfilter/allow-dhcp.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/allow-dhcp.xml'
/etc/libvirt/nwfilter/allow-incoming-ipv4.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/allow-incoming-ipv4.xml'
/etc/libvirt/nwfilter/allow-ipv4.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/allow-ipv4.xml'
/etc/libvirt/nwfilter/clean-traffic-gateway.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/clean-traffic-gateway.xml'
/etc/libvirt/nwfilter/clean-traffic.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/clean-traffic.xml'
/etc/libvirt/nwfilter/no-arp-ip-spoofing.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-arp-ip-spoofing.xml'
/etc/libvirt/nwfilter/no-arp-mac-spoofing.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-arp-mac-spoofing.xml'
/etc/libvirt/nwfilter/no-arp-spoofing.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-arp-spoofing.xml'
/etc/libvirt/nwfilter/no-ip-multicast.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-ip-multicast.xml'
/etc/libvirt/nwfilter/no-ip-spoofing.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-ip-spoofing.xml'
/etc/libvirt/nwfilter/no-mac-broadcast.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-mac-broadcast.xml'
/etc/libvirt/nwfilter/no-mac-spoofing.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-mac-spoofing.xml'
/etc/libvirt/nwfilter/no-other-l2-traffic.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-other-l2-traffic.xml'
/etc/libvirt/nwfilter/no-other-rarp-traffic.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/no-other-rarp-traffic.xml'
/etc/libvirt/nwfilter/qemu-announce-self-rarp.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/qemu-announce-self-rarp.xml'
/etc/libvirt/nwfilter/qemu-announce-self.xml [Errno 13] Permission denied: '/etc/libvirt/nwfilter/qemu-announce-self.xml'
/etc/libvirt/qemu.conf [Errno 13] Permission denied: '/etc/libvirt/qemu.conf'
/etc/libvirt/qemu/networks/default.xml [Errno 13] Permission denied: '/etc/libvirt/qemu/networks/default.xml'
-- debconf information excluded
-- debsums errors found:
debsums: changed file /lib/systemd/system/libvirtd.service (from libvirt-daemon-system package)
More information about the Pkg-libvirt-maintainers
mailing list