--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: netdata: libvirtd error messages when starting vm
- From: Samuli Suonpää <suonpaa@diurnalis.fi>
- Date: Mon, 13 Feb 2023 13:29:36 +0200
- Message-id: <167628777619.20344.11217207327375599465.reportbug@domus.diurnalis.fi>
Package: netdata
Version: 1.37.1-2
Severity: minor
When netdata.service is running, starting a kvm/QEMU virtual machine
causes the following error messages to be printed in journal.
$ sudo systemctl --lines 20 status netdata
● netdata.service - netdata - Real-time performance monitoring
Loaded: loaded (/lib/systemd/system/netdata.service; enabled; preset: enabled)
Active: active (running) since Mon 2023-02-13 12:46:08 EET; 3min 16s ago
Docs: man:netdata
file:///usr/share/doc/netdata/html/index.html
https://github.com/netdata/netdata
Main PID: 5221 (netdata)
Tasks: 79 (limit: 77028)
Memory: 129.2M
CPU: 17.591s
CGroup: /system.slice/netdata.service
├─5221 /usr/sbin/netdata -D
├─5573 /usr/sbin/netdata --special-spawn-server
├─6001 /usr/bin/python3 /usr/lib/netdata/plugins.d/python.d.plugin 1
├─6002 /usr/lib/netdata/plugins.d/nfacct.plugin 1
├─6005 bash /usr/lib/netdata/plugins.d/tc-qos-helper.sh 1
├─6010 /usr/lib/netdata/plugins.d/apps.plugin 1
└─8646 /usr/sbin/libvirtd --timeout=120
Feb 13 12:46:08 domus systemd[1]: Started netdata.service - netdata - Real-time performance monitoring.
Feb 13 12:46:08 domus netdata[5221]: CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
Feb 13 12:46:08 domus netdata[5221]: 2023-02-13 12:46:08: netdata INFO : MAIN : CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Ru>
Feb 13 12:47:46 domus libvirtd[8646]: libvirt version: 9.0.0, package: 1 (Andrea Bolognani <eof@kiyuko.org> Sat, 28 Jan 2023 17:03:53 +0100)
Feb 13 12:47:46 domus libvirtd[8646]: hostname: domus
Feb 13 12:47:46 domus libvirtd[8646]: Unable to find 'dnsmasq' binary in $PATH: No such file or directory
Feb 13 12:47:46 domus libvirtd[8646]: Failed to open file '/sys/kernel/security/apparmor/profiles': Permission denied
Feb 13 12:47:46 domus libvirtd[8646]: Failed to read AppArmor profiles list '/sys/kernel/security/apparmor/profiles': Permission denied
Feb 13 12:47:46 domus libvirtd[8646]: Failed to open file '/sys/kernel/security/apparmor/profiles': Permission denied
Feb 13 12:47:46 domus libvirtd[8646]: Failed to read AppArmor profiles list '/sys/kernel/security/apparmor/profiles': Permission denied
Feb 13 12:47:46 domus libvirtd[8646]: Unable to open /dev/kvm: Permission denied
Feb 13 12:47:46 domus libvirtd[8646]: internal error: Unable to get session bus connection: Cannot autolaunch D-Bus without X11 $DISPLAY
Feb 13 12:47:46 domus libvirtd[8646]: Failed to open a VPD file '/sys/bus/pci/devices/0000:07:00.0/vpd': Operation not permitted
I have no idea what netdata it trying to do here. It seems to try to
run virsh and gather some information about the network, but failes.
Netdata and the virtual machine still work! Haven't noticed any problems
there. And the VM is visible in netdata.
I also do not understand the bit about not being able to find dnsmasq.
The binary exists in /usr/sbin/dnsmasq, though it really should not be
run when this VM starts, as it uses macvtap interface and gets address
directly from the router.
Disabling netdata.servive makes these go away.
The PCI device in question is my network interfae enp7s0.
I have two VM-hosts running Debian testing. Both are affected.
I am happy to debug this or provide more information, if that would
help.
I also tested by stopping netdata, starting virtual machine and then
starting netdata.service. This also triggers the same error messages.
They come to journal as soon as netdata.service is started.
Samuli
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (110, 'testing'), (100, 'unstable'), (95, 'experimental'), (80, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-3-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages netdata depends on:
ii netdata-core 1.37.1-2
ii netdata-plugins-bash 1.37.1-2
ii netdata-web 1.37.1-2
Versions of packages netdata recommends:
ii netdata-plugins-python 1.37.1-2
netdata suggests no packages.
-- no debconf information
--- End Message ---