Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-39390

Current dbus autoreload based on inotify doesn't work for systemd-resolved, Please add rpm file trigger

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0.beta
    • dbus-broker
    • None
    • None
    • Important
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 8
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      Currently, dbus-broker uses inotify to reload when the configuration is detected or changed automatically. This may cause problems, the great example of that is https://issues.redhat.com/browse/RHEL-37686.

      When installing systemd-resolved, which ships with dbus configuration, the existing mechanism fails because it expects the systemd-resolve user to exist, but it is created later in the transaction.

      dbus-broker-launch[552]: Invalid user-name in /usr/share/dbus-1/system.d/org.freedesktop.resolve1.conf +16: user="systemd-resolve"
      

      Steps to reproduce

      # use CentOS Stream 10
      dnf install systemd-resolved
      systemctl start systemd-resolved
      resolvectl status
      

      This should work, but it hangs because it is trying to connect to dbus. systemctl reload dbus fixes this issue.

      Potential Solution

      Please implement the rpm file trigger for dbus configuration similarly to the systemd file trigger.

      Useful links

              lnykryn@redhat.com Lukáš Nykrýn
              jamacku@redhat.com Jan Macku
              Lukáš Nykrýn Lukáš Nykrýn
              qe-baseos-daemons qe-baseos-daemons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: