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

systemd-logind does not reconnect to dbus after restarting dbus

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • CentOS Stream 9
    • systemd
    • None
    • Major
    • sst_cs_plumbers
    • ssg_core_services

    Description

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

      Deploying OpenStack RDO on CentOS Stream 9. As part of the deployment process, dbus is restarted at some point. Since then, services using pam as sudo or ssh takes long time, 2 minutes, which is the timeout with dbus.

      Please provide the package NVR for which bug is seen:

      systemd-252-21.el9.x86_64

      How reproducible:

      Always after restarting dbus with:

      $ sudo systemctl restart dbus

       

      Steps to reproduce

      1. In a CS9 system with the mentioned version of systemd restart dbus:

      $ sudo systemctl restart dbus

      2.  Try any command using sudo:

      $ sudo ps

      You can see that systemd-logind is not reconnected using "busctl list" command

       

      Expected results

       

      sudo or ssh should work fine after restarting dbus. Note that the same exact procedure worked fine with the same exact procedure.

      [cloud-user@amoralej-issue-dbus ~]$ rpm -q systemd
      systemd-252-18.el9.x86_64
      [cloud-user@amoralej-issue-dbus ~]$ busctl list|grep logind
      :1.5                                       1371 systemd-logind  root       :1.5          systemd-logind.service -       -
      org.freedesktop.login1                     1371 systemd-logind  root       :1.5          systemd-logind.service -       -
      [cloud-user@amoralej-issue-dbus ~]$ sudo systemctl restart dbus
      [cloud-user@amoralej-issue-dbus ~]$ busctl list|grep logind
      :1.3                                       1484 systemd-logind  root       :1.3          systemd-logind.service            -       -
      org.freedesktop.login1                     1484 systemd-logind  root       :1.3          systemd-logind.service            -       -
      [cloud-user@amoralej-issue-dbus ~]$ time ps
          PID TTY          TIME CMD
         1289 pts/0    00:00:00 bash
         1539 pts/0    00:00:00 ps

      real    0m0.008s
      user    0m0.001s
      sys    0m0.007s
      [cloud-user@amoralej-issue-dbus ~]

      Actual results

       

      [cloud-user@amoralej-issue-dbus ~]$ rpm -q systemd
      systemd-252-21.el9.x86_64
      [cloud-user@amoralej-issue-dbus ~]$ busctl list|grep logind
      :1.2                                        719 systemd-logind  root       :1.2          systemd-logind.service    -       -
      org.freedesktop.login1                      719 systemd-logind  root       :1.2          systemd-logind.service    -       -
      [cloud-user@amoralej-issue-dbus ~]$ sudo systemctl restart dbus
      [cloud-user@amoralej-issue-dbus ~]$ busctl list|grep logind
      [cloud-user@amoralej-issue-dbus ~]$ time sudo ps

          PID TTY          TIME CMD
         1385 pts/0    00:00:00 sudo
         1393 pts/0    00:00:00 ps

      real    2m0.125s
      user    0m0.006s
      sys    0m0.014s
      [cloud-user@amoralej-issue-dbus ~]

      Attachments

        Activity

          People

            systemd-maint systemd maint mailing list
            amoralej1@redhat.com Alfredo Moralejo
            systemd maint mailing list systemd maint mailing list
            Frantisek Sumsal Frantisek Sumsal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: