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.
Description of problem:
This is NOT a repeatable error and is probably due to a candlepin server problem in stage. Nevertheless there was a traceback and maybe an improvement can be made. The error was logged during a nightly automation run.
ssh root.eng.bos.redhat.com subscription-manager subscribe --auto --servicelevel=STANDARD
Stdout:
Service level set to: STANDARD
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for IBM POWER
Status: Unknown
Stderr:
Traceback (most recent call last):
File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 373, in on_ent_dir_changed
self.on_change()
File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 363, in on_change
self.load()
File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 116, in load
self._parse_server_status()
File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 135, in _parse_server_status
status = self.get_compliance_status()
File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 333, in get_compliance_status
return status_cache.load_status(self.cp_provider.get_consumer_auth_cp(), self.identity.uuid)
File "/usr/share/rhsm/subscription_manager/cache.py", line 216, in load_status
self._sync_with_server(uep, uuid)
File "/usr/share/rhsm/subscription_manager/cache.py", line 201, in _sync_with_server
self.server_status = uep.getCompliance(uuid)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 817, in getCompliance
return self.conn.request_get(method)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 541, in request_get
return self._request("GET", method)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 469, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 490, in validateResponse
log.error("JSON parsing error: %s" % e.msg)
AttributeError: 'exceptions.ValueError' object has no attribute 'msg'
ExitCode: 1
Version-Release number of selected component (if applicable):
subscription-manager-1.9.11-1.el6.ppc64
How reproducible:
not
Steps to Reproduce:
1.
2.
3.
Actual results:
above
Expected results:
Additional info:
1d98c49e53d39398d09a40e9ea7005a687f3284b
1008808: json ValueErrors have no .msg attribute
In cases where we expect a json body on an error
response, we try to parse it, and catch any exceptions
if it's not valid and ignore. Except we were attempting
to log the ValueError.msg, which doesn't exist, raising
an AttributeError.
*** This bug has been marked as a duplicate of bug 1008808 ***
Description of problem: This is NOT a repeatable error and is probably due to a candlepin server problem in stage. Nevertheless there was a traceback and maybe an improvement can be made. The error was logged during a nightly automation run. ssh root.eng.bos.redhat.com subscription-manager subscribe --auto --servicelevel=STANDARD Stdout: Service level set to: STANDARD Installed Product Current Status: Product Name: Red Hat Enterprise Linux for IBM POWER Status: Unknown Stderr: Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 373, in on_ent_dir_changed self.on_change() File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 363, in on_change self.load() File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 116, in load self._parse_server_status() File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 135, in _parse_server_status status = self.get_compliance_status() File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 333, in get_compliance_status return status_cache.load_status(self.cp_provider.get_consumer_auth_cp(), self.identity.uuid) File "/usr/share/rhsm/subscription_manager/cache.py", line 216, in load_status self._sync_with_server(uep, uuid) File "/usr/share/rhsm/subscription_manager/cache.py", line 201, in _sync_with_server self.server_status = uep.getCompliance(uuid) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 817, in getCompliance return self.conn.request_get(method) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 541, in request_get return self._request("GET", method) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 469, in _request self.validateResponse(result, request_type, handler) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 490, in validateResponse log.error("JSON parsing error: %s" % e.msg) AttributeError: 'exceptions.ValueError' object has no attribute 'msg' ExitCode: 1 Version-Release number of selected component (if applicable): subscription-manager-1.9.11-1.el6.ppc64 How reproducible: not Steps to Reproduce: 1. 2. 3. Actual results: above Expected results: Additional info: