RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2078817 - DBus error: The name com.redhat.SubscriptionManager was not provided by any .service files
Summary: DBus error: The name com.redhat.SubscriptionManager was not provided by any ....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: subscription-manager
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 9.1
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 2074228
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-26 09:51 UTC by Rehana
Modified: 2022-11-15 13:13 UTC (History)
5 users (show)

Fixed In Version: subscription-manager-1.29.29-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2074228
Environment:
Last Closed: 2022-11-15 11:19:30 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2864 0 None Merged ENT-4370: Drop old dbus_interface.py 2022-06-09 16:22:36 UTC
Red Hat Issue Tracker RHELPLAN-119952 0 None None None 2022-04-26 09:54:10 UTC
Red Hat Product Errata RHBA-2022:8341 0 None None None 2022-11-15 11:19:46 UTC

Description Rehana 2022-04-26 09:51:27 UTC
+++ This bug was initially created as a clone of Bug #2074228 +++

Description of problem:

Hello, I've seen an error emitted in dbus (busctl format of the output):

Type=method_call  Endian=l  Flags=0  Version=1  Priority=0 Cookie=2  Timestamp="Mon 2022-04-11 18:34:36.389210 UTC"
  Sender=:1.2227  Destination=org.freedesktop.DBus  Path=/org/freedesktop/DBus  Interface=org.freedesktop.DBus  Member=GetNameOwner
  UniqueName=:1.2227                                         
  MESSAGE "s" {                                                                                                    
          STRING "com.redhat.SubscriptionManager";                                                                
  };                                                                                                                                                                                                                                         
                                                                                                                  
‣ Type=error  Endian=l  Flags=1  Version=1  Priority=0 Cookie=2  ReplyCookie=2  Timestamp="Mon 2022-04-11 18:34:36.389240 UTC"
  Sender=org.freedesktop.DBus  Destination=:1.2227            
  ErrorName=org.freedesktop.DBus.Error.NameHasNoOwner  ErrorMessage="Could not get owner of name 'com.redhat.SubscriptionManager': no such name"
  MESSAGE "s" {                                                                                                      
          STRING "Could not get owner of name 'com.redhat.SubscriptionManager': no such name";                                     
  };                                                                                                                               
                                                                                                                    
‣ Type=method_call  Endian=l  Flags=0  Version=1  Priority=0 Cookie=3  Timestamp="Mon 2022-04-11 18:34:36.389484 UTC"                          
  Sender=:1.2227  Destination=org.freedesktop.DBus  Path=/org/freedesktop/DBus  Interface=org.freedesktop.DBus  Member=StartServiceByName
  UniqueName=:1.2227                                                                                                
  MESSAGE "su" {                                                                                                                      
          STRING "com.redhat.SubscriptionManager";                                                                                                        
          UINT32 0;                                                                                                  
  };                                                                                                                                                      
                                                               
‣ Type=error  Endian=l  Flags=1  Version=1  Priority=0 Cookie=3  ReplyCookie=3  Timestamp="Mon 2022-04-11 18:34:36.389521 UTC"
  Sender=org.freedesktop.DBus  Destination=:1.2227                                                                                             
  ErrorName=org.freedesktop.DBus.Error.ServiceUnknown  ErrorMessage="The name com.redhat.SubscriptionManager was not provided by any .service files"
  MESSAGE "s" {
          STRING "The name com.redhat.SubscriptionManager was not provided by any .service files";
  };

‣ Type=signal  Endian=l  Flags=1  Version=1  Priority=0 Cookie=38  Timestamp="Mon 2022-04-11 18:34:42.358005 UTC"
  Sender=org.freedesktop.DBus  Destination=:1.2227  Path=/org/freedesktop/DBus  Interface=org.freedesktop.DBus  Member=NameLost
  MESSAGE "s" {
          STRING ":1.2227";
  };

‣ Type=signal  Endian=l  Flags=1  Version=1  Priority=0 Cookie=4452  Timestamp="Mon 2022-04-11 18:34:42.358063 UTC"
  Sender=org.freedesktop.DBus  Path=/org/freedesktop/DBus  Interface=org.freedesktop.DBus  Member=NameOwnerChanged
  MESSAGE "sss" {
          STRING ":1.2227";
          STRING ":1.2227";
          STRING "";
  };




a version of subscription manager:

            "subscription management server: 3.2.22-1",
            "subscription management rules: 5.41",
            "subscription-manager: 1.28.29-2.el8"


I did:

   - name: set the proper candlepin server
      shell:
        cmd: "subscription-manager config --server.hostname={{rhsm.server.hostname}} --server.port={{rhsm.server.port}} --server.insecure={{rhsm.server.insecure}}"


    - name: start a dbus monitor on background
      shell:
        cmd: |
          dbus-monitor --system \
          > {{ dbus_monitor_tempfile.path }}
            
      async: 100
      poll: 0
      register: dbus_monitor_task

    - name: register a system using activation key
      command:
        cmd: "subscription-manager register --activationkey={{ activation_key }} --org={{ rhsm.org }}"
      ignore_errors: yes
      register: out
    - debug: var=out
      

    - name: attach a pool to the system
      command:
        cmd: "subscription-manager attach --auto"
      register: out
    - debug: var=out

    - name: Check on an async task
      async_status:
        jid: "{{ dbus_monitor_task.ansible_job_id }}"
      register: job_status
      until: job_status.finished
      retries: 2
      delay: 10
      ignore_errors: yes

    - name: emitted dbus events
      command: "cat {{ dbus_monitor_tempfile.path }}"
      register:
        emitted_dbus_events
        
    - debug: var=emitted_dbus_events.stdout_lines



messages appeared in the dbus:

   "emitted_dbus_events.stdout_lines": [
        "signal time=1649702065.783780 sender=org.freedesktop.DBus -> destination=:1.2225 serial=33 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired",
        "   string \":1.2225\"",
        "signal time=1649702065.783830 sender=org.freedesktop.DBus -> destination=:1.2225 serial=34 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost",
        "   string \":1.2225\"",
        "signal time=1649702065.783836 sender=org.freedesktop.DBus -> destination=(null destination) serial=4448 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged",
        "   string \":1.2225\"",
        "   string \":1.2225\"",
        "   string \"\"",
        "method call time=1649702067.324053 sender=:1.2226 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello",
        "method return time=1649702067.324075 sender=org.freedesktop.DBus -> destination=:1.2226 serial=1 reply_serial=1",
        "   string \":1.2226\"",
        "signal time=1649702067.324095 sender=org.freedesktop.DBus -> destination=(null destination) serial=4449 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged",
        "   string \":1.2226\"",
        "   string \"\"",
        "   string \":1.2226\"",
        "signal time=1649702067.324104 sender=org.freedesktop.DBus -> destination=:1.2226 serial=35 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired",
        "   string \":1.2226\"",
        "method call time=1649702067.325278 sender=:1.2226 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner",
        "   string \"com.redhat.SubscriptionManager\"",
        "error time=1649702067.325298 sender=org.freedesktop.DBus -> destination=:1.2226 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=2",
        "   string \"Could not get owner of name 'com.redhat.SubscriptionManager': no such name\"",
        "method call time=1649702067.325731 sender=:1.2226 -> destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName",
        "   string \"com.redhat.SubscriptionManager\"",
        "   uint32 0",
        "error time=1649702067.325744 sender=org.freedesktop.DBus -> destination=:1.2226 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=3",
        "   string \"The name com.redhat.SubscriptionManager was not provided by any .service files\"",
        "signal time=1649702074.585223 sender=org.freedesktop.DBus -> destination=:1.2226 serial=36 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost",
        "   string \":1.2226\"",
        "signal time=1649702074.585272 sender=org.freedesktop.DBus -> destination=(null destination) serial=4450 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged",
        "   string \":1.2226\"",
        "   string \":1.2226\"",
        "   string \"\"",
        "method call time=1649702076.388675 sender=:1.2227 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello",
        "method return time=1649702076.388694 sender=org.freedesktop.DBus -> destination=:1.2227 serial=1 reply_serial=1",
        "   string \":1.2227\"",
        "signal time=1649702076.388701 sender=org.freedesktop.DBus -> destination=(null destination) serial=4451 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged",
        "   string \":1.2227\"",
        "   string \"\"",
        "   string \":1.2227\"",
        "signal time=1649702076.388710 sender=org.freedesktop.DBus -> destination=:1.2227 serial=37 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired",
        "   string \":1.2227\"",
        "method call time=1649702076.389171 sender=:1.2227 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner",
        "   string \"com.redhat.SubscriptionManager\"",
        "error time=1649702076.389186 sender=org.freedesktop.DBus -> destination=:1.2227 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=2",
        "   string \"Could not get owner of name 'com.redhat.SubscriptionManager': no such name\"",
        "method call time=1649702076.389425 sender=:1.2227 -> destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName",
        "   string \"com.redhat.SubscriptionManager\"",
        "   uint32 0",
        "error time=1649702076.389457 sender=org.freedesktop.DBus -> destination=:1.2227 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=3",
        "   string \"The name com.redhat.SubscriptionManager was not provided by any .service files\"",
        "signal time=1649702082.357926 sender=org.freedesktop.DBus -> destination=:1.2227 serial=38 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost",
        "   string \":1.2227\"",
        "signal time=1649702082.357946 sender=org.freedesktop.DBus -> destination=(null destination) serial=4452 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged",
        "   string \":1.2227\"",
        "   string \":1.2227\"",
        "   string \"\""
    ]

--- Additional comment from Jan Stavel on 2022-04-12 09:30:37 UTC ---

I have started systemd service 'rhsm'.
I have replied the scenario.

The error "The name com.redhat.SubscriptionManager was not provided by any .service files" still appears.

The systemd service did not crash after I finish the scenario.

A list of messages appeared in dbus during the scenario run.



method call time=1649753910.010430 sender=:1.2273 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method return time=1649753910.010447 sender=org.freedesktop.DBus -> destination=:1.2273 serial=1 reply_serial=1
   string ":1.2273"
signal time=1649753910.010454 sender=org.freedesktop.DBus -> destination=(null destination) serial=4542 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.2273"
   string ""
   string ":1.2273"
signal time=1649753910.010463 sender=org.freedesktop.DBus -> destination=:1.2273 serial=128 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.2273"
method call time=1649753910.010948 sender=:1.2273 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "com.redhat.SubscriptionManager"
error time=1649753910.010976 sender=org.freedesktop.DBus -> destination=:1.2273 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=2
   string "Could not get owner of name 'com.redhat.SubscriptionManager': no such name"
method call time=1649753910.011337 sender=:1.2273 -> destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName
   string "com.redhat.SubscriptionManager"
   uint32 0
error time=1649753910.011350 sender=org.freedesktop.DBus -> destination=:1.2273 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=3
   string "The name com.redhat.SubscriptionManager was not provided by any .service files"
signal time=1649753911.570835 sender=:1.2267 -> destination=(null destination) serial=11 path=/com/redhat/RHSM1/Syspurpose; interface=com.redhat.RHSM1.Syspurpose; member=SyspurposeChanged
signal time=1649753911.723011 sender=:1.2267 -> destination=(null destination) serial=12 path=/com/redhat/RHSM1/Syspurpose; interface=com.redhat.RHSM1.Syspurpose; member=SyspurposeChanged
signal time=1649753912.872663 sender=:1.2267 -> destination=(null destination) serial=13 path=/com/redhat/RHSM1/Entitlement; interface=com.redhat.RHSM1.Entitlement; member=EntitlementChanged
signal time=1649753913.070471 sender=:1.2267 -> destination=(null destination) serial=14 path=/com/redhat/RHSM1/Entitlement; interface=com.redhat.RHSM1.Entitlement; member=EntitlementChanged
signal time=1649753916.301331 sender=org.freedesktop.DBus -> destination=:1.2273 serial=129 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.2273"
signal time=1649753916.301351 sender=org.freedesktop.DBus -> destination=(null destination) serial=4543 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.2273"
   string ":1.2273"
   string ""

--- Additional comment from Pino Toscano on 2022-04-13 11:42:10 UTC ---

The unused com.redhat.SubscriptionManager D-Bus interface was removed only in main with commit 599af9b3b487373a443d676fb0935a2ac800fffb, from the PR #2864 [1].
It should be easy to backport it to the subscription-manager-1.28 branch as well.

[1] https://github.com/candlepin/subscription-manager/pull/2864

Comment 1 Rehana 2022-04-26 09:53:45 UTC
//PR merged to main branch https://github.com/candlepin/subscription-manager/pull/2864 , moving to POST

Comment 2 Jan Stavel 2022-04-27 18:30:31 UTC
     "subscription management server: 3.2.22-1",
     "subscription management rules: 5.41",
     "subscription-manager: 1.29.26-3.el9_0"

This is a list of dbus events appeared during registration of the system:

 Type=signal  Endian=l  Flags=1  Version=1 Cookie=8  Timestamp="Wed 2022-04-27 18:26:08.612429 UTC"
  Sender=:1.53  Path=/com/redhat/RHSM1/Consumer  Interface=com.redhat.RHSM1.Consumer  Member=ConsumerChanged
  UniqueName=:1.53
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=9  Timestamp="Wed 2022-04-27 18:26:09.301516 UTC"
  Sender=:1.53  Path=/com/redhat/RHSM1/Consumer  Interface=com.redhat.RHSM1.Consumer  Member=ConsumerChanged
  UniqueName=:1.53
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=10  Timestamp="Wed 2022-04-27 18:26:09.973185 UTC"
  Sender=:1.53  Path=/com/redhat/RHSM1/Syspurpose  Interface=com.redhat.RHSM1.Syspurpose  Member=SyspurposeChanged
  UniqueName=:1.53
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=11  Timestamp="Wed 2022-04-27 18:26:24.693548 UTC"
  Sender=:1.53  Path=/com/redhat/RHSM1/Syspurpose  Interface=com.redhat.RHSM1.Syspurpose  Member=SyspurposeChanged
  UniqueName=:1.53
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=12  Timestamp="Wed 2022-04-27 18:26:25.347480 UTC"
  Sender=:1.53  Path=/com/redhat/RHSM1/Syspurpose  Interface=com.redhat.RHSM1.Syspurpose  Member=SyspurposeChanged
  UniqueName=:1.53
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=13  Timestamp="Wed 2022-04-27 18:26:29.804039 UTC"
  Sender=:1.53  Path=/com/redhat/RHSM1/Entitlement  Interface=com.redhat.RHSM1.Entitlement  Member=EntitlementChanged
  UniqueName=:1.53
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=14  Timestamp="Wed 2022-04-27 18:26:30.484787 UTC"
  Sender=:1.53  Path=/com/redhat/RHSM1/Entitlement  Interface=com.redhat.RHSM1.Entitlement  Member=EntitlementChanged
  UniqueName=:1.53
  MESSAGE "" {
  };

Comment 5 Jan Stavel 2022-07-22 20:16:56 UTC
I've added ansible playbook to simulate this case.

Comment 6 Jan Stavel 2022-07-22 20:21:22 UTC
TASK [Version of installed subscription-manager] **************************************************************************************************************************************************************
  msg: |-
    server type: This system is currently not registered.
    subscription management server: 4.0.18-2
    subscription management rules: 5.41
    subscription-manager: 1.29.29-1.el9

No error message in dbus appeared.


see details in the attached ansible playbook.

a list of emitted events appeared in dbus:

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=21  Timestamp="Fri 2022-07-22 19:00:49.037094 UTC"
  Sender=:1.62  Path=/com/redhat/RHSM1/Consumer  Interface=com.redhat.RHSM1.Consumer  Member=ConsumerChanged
  UniqueName=:1.62
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=22  Timestamp="Fri 2022-07-22 19:00:49.142369 UTC"
  Sender=:1.62  Path=/com/redhat/RHSM1/Consumer  Interface=com.redhat.RHSM1.Consumer  Member=ConsumerChanged
  UniqueName=:1.62
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=23  Timestamp="Fri 2022-07-22 19:00:49.213523 UTC"
  Sender=:1.62  Path=/com/redhat/RHSM1/Syspurpose  Interface=com.redhat.RHSM1.Syspurpose  Member=SyspurposeChanged
  UniqueName=:1.62
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=24  Timestamp="Fri 2022-07-22 19:00:55.616806 UTC"
  Sender=:1.62  Path=/com/redhat/RHSM1/Syspurpose  Interface=com.redhat.RHSM1.Syspurpose  Member=SyspurposeChanged
  UniqueName=:1.62
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=25  Timestamp="Fri 2022-07-22 19:00:55.665024 UTC"
  Sender=:1.62  Path=/com/redhat/RHSM1/Syspurpose  Interface=com.redhat.RHSM1.Syspurpose  Member=SyspurposeChanged
  UniqueName=:1.62
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=26  Timestamp="Fri 2022-07-22 19:00:56.235058 UTC"
  Sender=:1.62  Path=/com/redhat/RHSM1/Entitlement  Interface=com.redhat.RHSM1.Entitlement  Member=EntitlementChanged
  UniqueName=:1.62
  MESSAGE "" {
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=27  Timestamp="Fri 2022-07-22 19:00:56.294192 UTC"
  Sender=:1.62  Path=/com/redhat/RHSM1/Entitlement  Interface=com.redhat.RHSM1.Entitlement  Member=EntitlementChanged
  UniqueName=:1.62
  MESSAGE "" {
  };

Comment 8 errata-xmlrpc 2022-11-15 11:19:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (subscription-manager bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8341


Note You need to log in before you can comment on or make changes to this bug.