Bug 1834792

Summary: traceback while registering , unregistering and importing certs
Product: Red Hat Enterprise Linux 7 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.9CC: bkearney, candlepin-bugs, jhnidek, jsefler, jstavel, pvlasin, redakkan, wpoteat
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:24:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Shwetha Kallesh 2020-05-12 12:36:53 UTC
Description of problem:
traceback while registering , clean,unregistering and importing certs

Version-Release number of selected component (if applicable):
[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.9.27-1
subscription management rules: 5.37
subscription-manager: 1.24.37


How reproducible:


Steps to Reproduce:
[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_auto_syspurpose001
Password: 
The system has been registered with ID: 2cc88fcb-c5b6-490d-9e67-636d1d748c55
The registered system name is: hpe-dl380pgen8-02-vm-1.hpe2.lab.eng.bos.redhat.com
ERROR:dbus.proxies:Introspect error on :1.24:/EntitlementStatus: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
ERROR:subscription_manager.dbus_interface:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.24 was not provided by any .service files
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/dbus_interface.py", line 64, in _update
    ignore_reply=self.has_main_loop)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.24 was not provided by any .service files


[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager clean
All local data removed
ERROR:dbus.proxies:Introspect error on :1.31:/EntitlementStatus: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
ERROR:subscription_manager.dbus_interface:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.31 was not provided by any .service files
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/dbus_interface.py", line 64, in _update
    ignore_reply=self.has_main_loop)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.31 was not provided by any .service files


[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager import --cert /root/cert.pem 
Successfully imported certificate cert.pem
ERROR:dbus.proxies:Introspect error on :1.33:/EntitlementStatus: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
ERROR:subscription_manager.dbus_interface:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.33 was not provided by any .service files
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/dbus_interface.py", line 64, in _update
    ignore_reply=self.has_main_loop)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.33 was not provided by any .service files


Actual results:
traceback 

Expected results:
there shouldnot be any traceback

Additional info:

Comment 5 Rehana 2020-05-21 08:15:46 UTC
*** Bug 1838446 has been marked as a duplicate of this bug. ***

Comment 9 Shwetha Kallesh 2020-05-28 07:27:51 UTC
verification:

[root@intel-chiefriver-02 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.9.27-1
subscription management rules: 5.37
subscription-manager: 1.24.38-1.el7

Dont see any traceback while performing various actions using various sub-man coomand , hence moving bug to verified

[root@intel-chiefriver-02 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_auto_syspurpose001
Password: 
The system has been registered with ID: 4d3e9b11-03ae-487f-b984-22a3aceb80be
The registered system name is: intel-chiefriver-02.khw2.lab.eng.bos.redhat.com
[root@intel-chiefriver-02 ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed


[root@intel-chiefriver-02 ~]# subscription-manager clean
All local data removed
[root@intel-chiefriver-02 ~]# subscription-manager import --cert /root/cert.pem 
Successfully imported certificate cert.pem
[root@intel-chiefriver-02 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-lb-for-rhel-7-server-htb-rpms
Repo Name: Red Hat Enterprise Linux Load Balancer (for RHEL 7 Server) HTB (RPMs)
Repo URL:  https://cdn.redhat.com/content/htb/rhel/server/7/$basearch/loadbalancer/os
Enabled:   0

Repo ID:   rhel-7-server-rt-htb-source-rpms
Repo Name: Red Hat Enterprise Linux for Real Time HTB (RHEL 7 Server) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/htb/rhel/server/7/$basearch/rt/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-extras-htb-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras HTB (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/htb/rhel/server/7/$basearch/extras/debug
Enabled:   0

Repo ID:   rhel-7-server-htb-rpms
Repo Name: Red Hat Enterprise Linux 7 Server HTB (RPMs)
Repo URL:  https://cdn.redhat.com/content/htb/rhel/server/7/$basearch/os
Enabled:   1

[root@intel-chiefriver-02 ~]# subscription-manager repos --enable rhel-7-server-extras-htb-debug-rpms
Repository 'rhel-7-server-extras-htb-debug-rpms' is enabled for this system.

Comment 11 errata-xmlrpc 2020-09-29 19:24:22 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 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-2020:3866