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 1719709

Summary: cockpit: "Oops" when connection to D-Bus fails
Product: Red Hat Enterprise Linux 8 Reporter: Marius Vollmer <mvollmer>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: csnyder, jhnidek, jsefler, jstavel, wpoteat
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: 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:38:42 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:
Attachments:
Description Flags
warning message after I click on 'subscriptions' link none

Description Marius Vollmer 2019-06-12 11:53:43 UTC
Description of problem:

When logging into Cockpit as a non-wheel user, the connection to the D-Bus API of rhsmd will fail.  This results in a JavaScript exception:

TypeError: entitlementService.GetStatus is not a function  
    getSubscriptionStatus subscriptions-client.js:468
    safeDBusCall subscriptions-client.js:129
    process_queue cockpit.js:1296
    schedule_process_queue cockpit.js:1309
    later_drain cockpit.js:1188

If this exception is avoided by not making the call, the page shows "Retrieving subscription status" and a spinner infinitely.

If this is avoided by correcting the condition that determines when to show the spinner, the page says "Couldn't get system subscription status. Please ensure subscription-manager is installed."

Rather, it should say "The current user isn't allowed to access system subscription status."  The text for this is already in the code, but the failure code is not propagated all the way to where it needs to be.

Version-Release number of selected component (if applicable):
subscription-manager-cockpit-1.23.8-35.el8.noarch

How reproducible:
Always

Comment 2 Marius Vollmer 2019-08-20 06:27:12 UTC
A fix for this has been merged into the upstream code: https://github.com/candlepin/subscription-manager/pull/2114

Comment 5 Jan Stavel 2020-07-15 08:00:22 UTC
I have logged into cockpit using 'common-user' account.
I verify that cockpit displays message 'The current user isn't allowed to access system subscription status.

Access denied'

and no 'Oops' message appeared.

Screenshot attached.

Comment 6 Jan Stavel 2020-07-15 08:01:12 UTC
Created attachment 1701161 [details]
warning message after I click on 'subscriptions' link

Comment 9 errata-xmlrpc 2020-11-04 01:38:42 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