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.
Created attachment 1275571[details]
The rhsm log
Description of problem:
Error message append to rhsm.log when try to register a system and auto-attach:
2017-05-02 13:53:23,154 [ERROR] subscription-manager-gui:5014:FindServiceLevelsThread @cache.py:131 - Unable to read cache: /var/lib/rhsm/cache/written_overrides.json
Version-Release number of selected component (if applicable):
[root@dhcp-128-20 rhsm]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.21-1
subscription management rules: 5.15.1
subscription-manager: 1.19.9-1.el7
python-rhsm: 1.19.5-1.el7
How reproducible:
always
Steps to Reproduce:
1.Install build RHEL-7.4-20170426.4
2.Open subscription-manager gui to register system and click auto-attach subscription
3.Check the rhsm.log and there is an error message
[root@dhcp-128-20 rhsm]# cat rhsm.log | grep -i "error"
2017-05-02 13:52:51,418 [WARNING] subscription-manager-gui:5014:RegisterConsumerThread @dmiinfo.py:86 - Error reading system DMI information: coercing to Unicode: need string or buffer, NoneType found
2017-05-02 13:53:23,154 [ERROR] subscription-manager-gui:5014:FindServiceLevelsThread @cache.py:131 - Unable to read cache: /var/lib/rhsm/cache/written_overrides.json <--------
2017-05-02 13:53:24,817 [WARNING] subscription-manager-gui:5014:FindServiceLevelsThread @dmiinfo.py:86 - Error reading system DMI information: coercing to Unicode: need string or buffer, NoneType found
Actual results:
As step3.
Expected results:
NO error message.Register system and auto-attach subscription successfully
Additional info:
Reproducer:
See the error in the log when click on auto-attach button of GUI
[root@dhcp71-112 ~]# tail -f /var/log/rhsm/rhsm.log | grep ERROR
2017-05-18 03:48:59,074 [ERROR] subscription-manager-gui:15950:FindServiceLevelsThread @cache.py:131 - Unable to read cache: /var/lib/rhsm/cache/written_overrides.json
[root@dhcp71-112 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.23-1
subscription management rules: 5.15.1
subscription-manager: 1.19.4-1.el7
python-rhsm: 1.19.2-1.el7
Verification:
No error message when I register and click on auto-attach button on GUI
[root@dhcp71-112 ~]# tail -f /var/log/rhsm/rhsm.log | grep ERROR
[root@dhcp71-112 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.23-1
subscription management rules: 5.15.1
subscription-manager: 1.19.14-1.el7
python-rhsm: 1.19.6-1.el7
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-2017:2083
Created attachment 1275571 [details] The rhsm log Description of problem: Error message append to rhsm.log when try to register a system and auto-attach: 2017-05-02 13:53:23,154 [ERROR] subscription-manager-gui:5014:FindServiceLevelsThread @cache.py:131 - Unable to read cache: /var/lib/rhsm/cache/written_overrides.json Version-Release number of selected component (if applicable): [root@dhcp-128-20 rhsm]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.21-1 subscription management rules: 5.15.1 subscription-manager: 1.19.9-1.el7 python-rhsm: 1.19.5-1.el7 How reproducible: always Steps to Reproduce: 1.Install build RHEL-7.4-20170426.4 2.Open subscription-manager gui to register system and click auto-attach subscription 3.Check the rhsm.log and there is an error message [root@dhcp-128-20 rhsm]# cat rhsm.log | grep -i "error" 2017-05-02 13:52:51,418 [WARNING] subscription-manager-gui:5014:RegisterConsumerThread @dmiinfo.py:86 - Error reading system DMI information: coercing to Unicode: need string or buffer, NoneType found 2017-05-02 13:53:23,154 [ERROR] subscription-manager-gui:5014:FindServiceLevelsThread @cache.py:131 - Unable to read cache: /var/lib/rhsm/cache/written_overrides.json <-------- 2017-05-02 13:53:24,817 [WARNING] subscription-manager-gui:5014:FindServiceLevelsThread @dmiinfo.py:86 - Error reading system DMI information: coercing to Unicode: need string or buffer, NoneType found Actual results: As step3. Expected results: NO error message.Register system and auto-attach subscription successfully Additional info: