Package: dbus
Version: 1.12.16-1
Severity: normal
Dear Maintainer.
As subject says, if sssd can't reach dc, dbus get NoReply fail and succesfully
restarted aftervards with following consequences:
1. reload process lagging due sssd timeouts;
2. other daemons fail because 1 or dbus restart;
3. failed reload at packet install process may lead to overall install fail;
Because of automatic config reload, 1 is strikes at periodic manner.
The most notorious example of 2 is NetworkManager, which gets SIGTERM
(org.freedesktop.nm_dispatcher timeout), shutdown network and require manual
restart, despite the fact that dbus already restarted. Nice to have bunch of
isolated instances at midnight because of network spike (:
3 is theoretical and depends on packages postinstall scripts and hooks.
Steps to reproduce:
1a. Get minimal setup with some additional packages:
# debootstrap --arch=amd64
--include=network-manager,sssd,iio-sensor-proxy,ovirt-guest-agent,linux-image-amd64,grub-pc
stable /mnt
# #Do other stuff to boot from...
1b. Or add network-manager, sssd, iio-sensor-proxy and ovirt-guest-agent to
fresh setup. Last two will add policy with currently nonexistent users gdm and
geoclue. Skip sssd realm config. You may notice NoReply fail due setup.
2. Check NetworkManager status and restart if already dead.
3. Do systemctl reload dbus.service. Notice time taken.
4. Check NetworkManager again. Status change to 'dead' after step 3 or some
short time.
5. Check dbus journal. Notice org.freedesktop.nm_dispatcher activation fail,
NoReply and restart.
BONUS STAGE: remove one user policy (eg. purge ovirt-guest-agent OR
iio-sensor-proxy), restart NetworkManager and do dbus reload again. This time
NM not fail.
-- System Information:
Debian Release: 10.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dbus depends on:
ii adduser 3.118
ii libapparmor1 2.13.2-10
ii libaudit1 1:2.8.4-3
ii libc6 2.28-10
ii libcap-ng00.7.9-2
ii libdbus-1-3 1.12.16-1
ii libexpat1 2.2.6-2
ii libselinux1 2.8-1+b1
ii libsystemd0 241-5
dbus recommends no packages.
Versions of packages dbus suggests:
ii dbus-user-session [default-dbus-session-bus] 1.12.16-1
Versions of packages dbus is related to:
pn dbus-x11
ii systemd 241-5
ii systemd-sysv 241-5
-- no debconf information
-- Logs begin at Tue 2019-08-13 14:27:09 UTC, end at Tue 2019-08-13 17:45:55
UTC. --
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]:
NetworkManager-wait-online.service: Succeeded.
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]: Stopped Network Manager
Wait Online.
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]: Stopping Network Manager
Wait Online...
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]: Starting Network
Manager...
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.3909] NetworkManager (version 1.14.6) is starting... (after a
restart)
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.3917] Read config: /etc/NetworkManager/NetworkManager.conf (lib:
no-mac-addr-change.conf)
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]: Started Network Manager.
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]: Starting Network Manager
Wait Online...
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.4021] bus-manager: acquired D-Bus service
"org.freedesktop.NetworkManager"
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.4029] manager[0x55a91f88b020]: monitoring kernel firmware directory
'/lib/firmware'.
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.4031] monitoring ifupdown state file '/run/network/ifstate'.
Aug 13 17:43:29 test-dbus-fail.fake.domain dbus-daemon[7179]: [system]
Activating via systemd: service name='org.freedesktop.hostname1'
unit='dbus-org.freedesktop.hostname1.service' requested by ':1.8' (uid=0
pid=7338 comm="/usr/sbin/NetworkManager --no-daemon ")
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]: Starting Hostname
Service...
Aug 13 17:43:29 test-dbus-fail.fake.domain dbus-daemon[7179]: [system]
Successfully activated service 'org.freedesktop.hostname1'
Aug 13 17:43:29 test-dbus-fail.fake.domain systemd[1]: Started Hostname Service.
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.4680] hostname: hostname: using hostnamed
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.4681] hostname: hostname changed from (none) to
"test-dbus-fail.fake.domain"
Aug 13 17:43:29 test-dbus-fail.fake.domain NetworkManager[7338]:
[1565718209.4683] dns-mgr[0x5