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 1828186 - /etc/cron.daily/rhsmd fails to recognize rhsmd.processtimeout configuration [rhel-7.8.z]
Summary: /etc/cron.daily/rhsmd fails to recognize rhsmd.processtimeout configuration [...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1827711
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-27 09:17 UTC by RAD team bot copy to z-stream
Modified: 2020-05-12 18:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1827711
Environment:
Last Closed: 2020-05-12 18:40:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2101 0 None None None 2020-05-12 18:40:25 UTC

Description RAD team bot copy to z-stream 2020-04-27 09:17:16 UTC
This bug has been copied from bug #1827711 and has been proposed to be backported to 7.8 z-stream (EUS).

Comment 4 John Sefler 2020-04-27 22:28:06 UTC
Verifying Version...

[root@intel-chiefriver-02 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.8 (Maipo)
[root@intel-chiefriver-02 ~]# rpm -q subscription-manager
subscription-manager-1.24.26-3.el7_8.x86_64
[root@intel-chiefriver-02 ~]# rpm -q --changelog subscription-manager | grep 1828186
- 1828186: Make rhsmd cron read 'processTimeout' case-insensitive
[root@intel-chiefriver-02 ~]# 

To demonstrate that this bug is fixed (as originally reported in Bug 1827708 on a RHEL-8.2 machine), we will show that as a result of an upgrade to RHEL-7.8 (steps not shown) the /etc/rhsm/rhsm.conf file may be absent of a "processTimeout" configuration.  Despite its absence, we can use subscription-manager config tool to change the value of the default "processtimeout" value (from 300 seconds) to a different value and it will be honored.

[root@intel-chiefriver-02 ~]# grep --ignore-case "processTimeout" /etc/rhsm/rhsm.conf
[root@intel-chiefriver-02 ~]# 
[root@intel-chiefriver-02 ~]# subscription-manager config | grep --ignore-case "processTimeout"
   processtimeout = [300]
[root@intel-chiefriver-02 ~]# 
[root@intel-chiefriver-02 ~]# subscription-manager config --rhsmd.processtimeout=120
[root@intel-chiefriver-02 ~]# 
[root@intel-chiefriver-02 ~]# subscription-manager config | grep --ignore-case "processTimeout"
   processtimeout = 120
[root@intel-chiefriver-02 ~]# 
[root@intel-chiefriver-02 ~]# grep --ignore-case "processTimeout" /etc/rhsm/rhsm.conf
processtimeout = 120
[root@intel-chiefriver-02 ~]# 
[root@intel-chiefriver-02 ~]# time /etc/cron.daily/rhsmd

real	2m0.024s     <==== VERIFIED: The process exited after a 120 second timeout as newly configured
user	0m0.198s
sys	0m0.058s
[root@intel-chiefriver-02 ~]#

VERIFIED: We invoked "subscription-manager config --rhsmd.processtimeout=120" on an upgraded RHEL7 system to change the default "processtimeout" which was honored by the /etc/cron.daily/rhsmd job.


Note: The fix for this bug was a simple code change in /etc/cron.daily/rhsmd to introduce an "--ignore-case" option to the first line of code in /etc/cron.daily/rhsmd.  Let's look at that line of code on this rhel7.8 system....

[root@intel-chiefriver-02 ~]# head -n5 /etc/cron.daily/rhsmd 
#!/bin/sh
# nightly run of rhsmd to log entitlement expiration/validity errors to syslog
# this is a cron job because it doesn't need to 'phone home'. should that
# change, look into calling the dbus interface from rhsmcertd instead.
config=$(grep -iE "^processTimeout" /etc/rhsm/rhsm.conf | grep -Po "[0-9]+")
               ^
               ^
               That is the one character fix for "--ignore-case".

Comment 6 errata-xmlrpc 2020-05-12 18:40:21 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, 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:2101


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