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 1775714 - rhsmd process never exits
Summary: rhsmd process never exits
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.7
Hardware: x86_64
OS: Linux
high
low
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
: 1775713 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-22 16:14 UTC by Taft Sanders
Modified: 2024-10-01 16:24 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:22:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2234 0 None closed 1775714: Do not install rhsmd and rhsm-icon on rhel8; ENT-1959 2020-12-15 01:57:59 UTC
Github candlepin subscription-manager pull 2255 0 None closed 1823523: Read from proc instead of using psutil 2020-12-15 01:57:59 UTC
Github candlepin subscription-manager pull 2263 0 None closed 1834792: Try to terminate rhsmd after timeout; ENT-2368 2020-12-15 01:57:59 UTC
Red Hat Product Errata RHBA-2020:3866 0 None None None 2020-09-29 19:23:17 UTC

Description Taft Sanders 2019-11-22 16:14:55 UTC
Description of problem:
with the initiation of subscription-manager, the rhsmd process is started on a server without a GUI and never exits

Version-Release number of selected component (if applicable):
RHEL 7.7
subscription-manager-1.24.13-1.el7.x86_64

How reproducible:
everytime

Steps to Reproduce:
1. run 'subscription-manager status'
2. check rhsmd process 'ps aux | grep rhsmd'
3.

Actual results:
process starts and never exits

Expected results:
as rhsmd is a dbus daemon meant to inform the rhsm-icon of new entitlement status, it should probably not be installed on servers without a GUI

Additional info:
little to no impact on servers

Comment 1 Craig Donnelly 2019-11-22 17:07:46 UTC
rhsmd is not specifically for informing rhsm-icon, but also other items within the subscription-manager chain. That is to say that this informs multiple (or available) pieces about changes in entitlement status (including via DBus API) to trigger notifications or actions.

That makes restating that this bug is that after running `subscription-manager status`, rhsmd is triggered and never ends (hangs).
This could be environmental based on networking, or there could be an issue with rhsmd's execution in this scenario (likely).

Comment 3 Chris Snyder 2019-11-25 20:58:30 UTC
*** Bug 1775713 has been marked as a duplicate of this bug. ***

Comment 4 Yong 2019-12-02 15:40:20 UTC
The impact is actaully severe. When rhsmd doesn't exits, it continues to talk to satellite server and drive up load. In large enviroment we can see degradation of performance over time.

Comment 13 Jiri Hnidek 2020-03-27 15:32:56 UTC
I can reproduce the the bug report for several cases.

1. case

When a system is not registered and I run status command, then I'm able to reproduce the bug report:

[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22311  0.0  0.0 215744   900 pts/1    S+   16:22   0:00 grep --color=auto rhsmd

[root@fedora30 candlepin]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Unknown

System Purpose Status: Unknown

[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22314 11.0  2.6 306412 54512 ?        Ss   16:22   0:00 /usr/bin/python3 /usr/libexec/rhsmd
root     22316  0.0  0.0 215744   896 pts/1    S+   16:22   0:00 grep --color=auto rhsmd

Interesting is that clean command stops rhsmd process

[root@fedora30 candlepin]# subscription-manager clean
All local data removed
[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22331  0.0  0.0 215744   892 pts/1    S+   16:23   0:00 grep --color=auto rhsmd


2. case

When system is compliant, then I can reproduce starting of rhsmd too:

[root@fedora30 candlepin]# subscription-manager register --username admin --password admin --org admin
Registering to: svice:8443/candlepin
The system has been registered with ID: 66091455-7d18-4b0a-88e2-f2d8976b40b6
The registered system name is: fedora30


[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22442  0.0  0.0 215744   832 pts/1    S+   16:24   0:00 grep --color=auto rhsmd
[root@fedora30 candlepin]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

SP Additional bits:
- Not supported by a valid subscription.

Fake OS Bits:
- Not supported by a valid subscription.

System Purpose Status: Mismatched
- The requested add-on "" is not provided by a currently consumed subscription.


[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22444  5.1  2.7 306412 54816 ?        Ss   16:24   0:00 /usr/bin/python3 /usr/libexec/rhsmd
root     22459  0.0  0.0 215744   896 pts/1    S+   16:24   0:00 grep --color=auto rhsmd


[root@fedora30 candlepin]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Fake OS Bits
Status:       Subscribed

Product Name: SP Additional bits
Status:       Subscribed


[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22556  0.0  0.0 215744   832 pts/1    S+   16:25   0:00 grep --color=auto rhsmd


It is interesting that attaching required pools using --auto option stops rhsmd too.


3. case

When system is current and I run status command, then only unregistering can stops rhsmd process:

[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22556  0.0  0.0 215744   832 pts/1    S+   16:25   0:00 grep --color=auto rhsmd


[root@fedora30 candlepin]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Mismatched
- The requested add-on "" is not provided by a currently consumed subscription.


[root@fedora30 candlepin]# ps aux | grep rhsmd
root     22634  8.2  2.7 306412 54960 ?        Ss   16:30   0:00 /usr/bin/python3 /usr/libexec/rhsmd
root     22647  0.0  0.0 215744   896 pts/1    S+   16:30   0:00 grep --color=auto rhsmd

Comment 14 Jiri Hnidek 2020-04-01 09:24:24 UTC
It is necessary to mention that rhsm-icon (part of subscription-manager-gui) cannot be running to be able to reproduce cases in step #13.

rhsm-icon is automatically started using XDG (/etc/xdg/autostart/rhsm-icon.desktop), when user uses desktop environment (GNOME/KDE) and is logged-in.

Comment 17 Shwetha Kallesh 2020-04-16 06:34:14 UTC
Moving bug to verified as I dont see rhsmd process running status or attach or register command

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.9.21-1
subscription management rules: 5.37
subscription-manager: 1.24.32

Case 1:

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
[root@hpe-dl380pgen8-02-vm-4 ~]# ps aux | grep rhsmd
root     26333  0.0  0.0 112808   936 pts/0    S+   18:10   0:00 grep --color=auto rhsmd
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Unknown

System Purpose Status: Unknown

[root@hpe-dl380pgen8-02-vm-4 ~]#  ps aux | grep rhsmd
root     26348  0.0  0.0 112808   936 pts/0    S+   18:11   0:00 grep --color=auto rhsmd

Case2:

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com --username qa --password redhatqa --auto-attach --force
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: 61a80d71-c29f-4cff-9e6c-1f3485627232
The registered system name is: hpe-dl380pgen8-02-vm-4.hpe2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux 7 Server High Touch Beta
Status:       Subscribed

Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

System Purpose Status: Not Specified

[root@hpe-dl380pgen8-02-vm-4 ~]#  ps aux | grep rhsmd
root     26463  0.0  0.0 112808   936 pts/0    S+   18:12   0:00 grep --color=auto rhsmd


Case 3:

[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager remove --all
1 local certificate has been deleted.
1 subscription removed at the server.
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

Red Hat Enterprise Linux Server:
- Not supported by a valid subscription.

Red Hat Enterprise Linux 7 Server High Touch Beta:
- Not supported by a valid subscription.

System Purpose Status: Not Specified

[root@hpe-dl380pgen8-02-vm-4 ~]#  ps aux | grep rhsmd
root     26499  0.0  0.0 112808   936 pts/0    R+   18:12   0:00 grep --color=auto rhsmd

Comment 19 Jiri Hnidek 2020-05-21 14:46:13 UTC
I'm adding another link to the PR that is related to this issue.

Comment 21 errata-xmlrpc 2020-09-29 19:22:47 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


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