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 2059631 - typo for "rhsmcertd" in /etc/rhsm/rhsm.conf
Summary: typo for "rhsmcertd" in /etc/rhsm/rhsm.conf
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
low
low
Target Milestone: rc
: 9.1
Assignee: Pino Toscano
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-01 15:09 UTC by John Sefler
Modified: 2022-11-15 13:13 UTC (History)
2 users (show)

Fixed In Version: subscription-manager-1.29.29-1.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
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 2994 0 None Merged 2059631: rhsm.conf: fix typo in comment 2022-03-04 10:25:25 UTC
Red Hat Issue Tracker RHELPLAN-114128 0 None None None 2022-03-01 15:13:21 UTC
Red Hat Product Errata RHBA-2022:8341 0 None None None 2022-11-15 11:19:46 UTC

Description John Sefler 2022-03-01 15:09:24 UTC
Description of problem:
The description word "rhsmcerd" found in the rhsm.conf file is a typo and should be corrected to "rhsmcertd".


Version-Release number of selected component (if applicable):
[root@koza-2 ~]# rpm -q subscription-manager
subscription-manager-1.29.26-1.el9.x86_64
[root@ibm-x3650m4-01-vm-12 ~]# rpm -q subscription-manager
subscription-manager-1.28.28-1.el8.x86_64  <=== also affects rhel8 build

How reproducible:


Steps to Reproduce:
[root@koza-2 ~]# grep "rhsmcerd" /etc/rhsm/rhsm.conf -A3
# Set to 1, when rhsmcerd will try to do automatic registration.
# Setting this option make sense only on machines running on public
# clouds. Currently only AWS, Azure and GCP are supported
auto_registration = 0



Actual results:
# Set to 1, when rhsmcerd will try to do automatic registration.
                 ^^^^^^^^

Expected results:
# Set to 1, when rhsmcertd will try to do automatic registration.
                 ^^^^^^^^^



Additional info:

Comment 1 Zdenek Petracek 2022-04-19 09:32:10 UTC
Version:
[root@kvm-02-guest10 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.22-1
subscription management rules: 5.41
subscription-manager: 1.29.26-3.el9_0


Pre verifying:
[root@kvm-02-guest10 ~]# wget https://prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com/view/QE-RPMs/job/rhsm_RHEL9.1/lastSuccessfulBuild/artifact/rpms/x86_64/subscription-manager.rpm --no-check-certificate
pms/x86_64/subscription-manager.rpm --no-check-certificate
--2022-04-19 11:25:41--  https://prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com/view/QE-RPMs/job/rhsm_RHEL9.1/lastSuccessfulBuild/artifact/rpms/x86_64/subscription-manager.rpm
Resolving prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com (prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com)... 10.0.180.86
Connecting to prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com (prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com)|10.0.180.86|:443... connected.
WARNING: The certificate of ‘prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com’ is not trusted.
WARNING: The certificate of ‘prod-jenkins-csb-rhsm.apps.ocp-c1.prod.psi.redhat.com’ doesn't have a known issuer.
HTTP request sent, awaiting response... 200 OK
Length: 792477 (774K) [application/x-rpm]
Saving to: ‘subscription-manager.rpm’

subscription-manager.rpm      100%[=================================================>] 773.90K   833KB/s    in 0.9s    

2022-04-19 11:25:43 (833 KB/s) - ‘subscription-manager.rpm’ saved [792477/792477]

[root@kvm-02-guest10 ~]# rpm2cpio subscription-manager.rpm | cpio -idmv --no-absolute-filenames
.
.
.
6835 blocks

[root@kvm-02-guest10 ~]# grep -nH 'Set to 1' etc/rhsm/rhsm.conf
etc/rhsm/rhsm.conf:14:# Set to 1 to disable certificate validation:
etc/rhsm/rhsm.conf:93:# Set to 1 when rhsmcertd should attempt automatic registration.

--> typo corrected, PASSED

Comment 5 Rehana 2022-07-15 12:07:00 UTC
Verifying on : 
=============

# subscription-manager version
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

# rpm -qa subscription-manager --changelog | grep 2059631
- 2059631: rhsm.conf: fix typo in comment (ptoscano)
- 2059631: rhsm.conf: fix typo in comment (ptoscano)

# grep "rhsmcerd" /etc/rhsm/rhsm.conf -A3
ˆ^No match for the typo 

# grep -nH 'Set to 1' /etc/rhsm/rhsm.conf
/etc/rhsm/rhsm.conf:14:# Set to 1 to disable certificate validation:
/etc/rhsm/rhsm.conf:96:# Set to 1 when rhsmcertd should attempt automatic registration.

ˆ^String is fixed . Moving the bug to verified !!

Comment 7 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.