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 - cockpit: "Oops" when connection to D-Bus fails
Summary: cockpit: "Oops" when connection to D-Bus fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-12 11:53 UTC by Marius Vollmer
Modified: 2020-11-04 01:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:38:42 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
warning message after I click on 'subscriptions' link (129.71 KB, image/png)
2020-07-15 08:01 UTC, Jan Stavel
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2114 0 None closed 1719709: cockpit - Improve behavior when connection to D-Bus fails 2020-07-15 07:58:37 UTC
Red Hat Product Errata RHBA-2020:4460 0 None None None 2020-11-04 01:38:57 UTC

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


Note You need to log in before you can comment on or make changes to this bug.