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