Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1862408

Summary: unexpected message "CACHED_SYSPURPOSE: /var/lib/rhsm/cache/syspurpose.json"
Product: Red Hat Enterprise Linux 8 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: high Docs Contact:
Priority: high    
Version: 8.3CC: arpandey, cdonnell, jhnidek, redakkan, wpoteat
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 8.3Flags: pm-rhel: mirror+
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-11-04 01:39:41 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 John Sefler 2020-07-31 11:29:14 UTC
Description of problem:

There is a new unexpected message displayed in stdout while registering.
It looks like a debugging statement that is not important to the user.


Version-Release number of selected component (if applicable):
[root@hpe-dl380pgen8-02-vm-11 ~]# rpm -q subscription-manager
subscription-manager-1.27.11-1.el8.x86_64


How reproducible:


Steps to Reproduce:
[root@hpe-dl380pgen8-02-vm-11 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_auto_testuser
Password: 
CACHED_SYSPURPOSE: /var/lib/rhsm/cache/syspurpose.json
The system has been registered with ID: 960c545f-1de1-4289-865f-6515c7146c9e
The registered system name is: hpe-dl380pgen8-02-vm-11.hpe2.lab.eng.bos.redhat.com


Actual results:
 above

Expected results:
 "CACHED_SYSPURPOSE: /var/lib/rhsm/cache/syspurpose.json" is not useful

Additional info:

Comment 3 Archana Pandey 2020-08-07 10:00:23 UTC
Reproducing Issue on subscription-manager: 1.27.11-1.el8

Version-Release number of selected component (if applicable):
[root@archana-automation ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.1.16-1
subscription management rules: 5.40
subscription-manager: 1.27.11-1.el8

Steps to reproduce:
[root@archana-automation ~]#  subscription-manager register --username **** --password ****
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
CACHED_SYSPURPOSE: /var/lib/rhsm/cache/syspurpose.json                                       <<<<<<<<<<<<< extra info
The system has been registered with ID: 6e4889fc-600a-44f2-a5b3-16096844dcc2
The registered system name is: archana-automation

==========================================================================================

Issue Verification on latest build subscription-manager-1.27.13-1.el8.x86_64

Version-Release number of selected component (if applicable):

[root@ibm-x3650m4-01-vm-14 ~]# rpm -qa subscription-manager
subscription-manager-1.27.13-1.el8.x86_64

steps to verify:

[root@ibm-x3650m4-01-vm-14 ~]# subscription-manager register --username **** --password *****
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: f0d4b4c2-5387-4a2a-93cc-4a3ec62e728c                   <<<<<<<<< removed info about cached syspurpose
The registered system name is: ibm-x3650m4-01-vm-14.ibm2.lab.eng.bos.redhat.com
To use Red Hat Insights, install the insights-client package.
To opt out of Red Hat Insights, run "insights-client --unregister" or reregister with "--no-insights".


Verified : Unexpected message displayed in stdout while registering is removed

Comment 6 errata-xmlrpc 2020-11-04 01:39:41 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-2020:4460