Description of problem: When I try to access the "Subscriptions" page in Cockpit implemented by the subscription-manager-cockpit package I see the following in my Javascript console and an "Ooops!" in Cockpit TypeError: f.GetStatus is not a function [Learn More] index.js:6767:13 g.getSubscriptionStatus/< http://localhost:9090/cockpit/$eb4f5852d1b00a9fff605fa4200d449f45b9f7af/subscriptions/index.js:6767:13 P http://localhost:9090/cockpit/$eb4f5852d1b00a9fff605fa4200d449f45b9f7af/base1/cockpit.js:874:31 T/< http://localhost:9090/cockpit/$eb4f5852d1b00a9fff605fa4200d449f45b9f7af/base1/cockpit.js:886:17 j http://localhost:9090/cockpit/$eb4f5852d1b00a9fff605fa4200d449f45b9f7af/base1/cockpit.js:803:17 Version-Release number of selected component (if applicable): cockpit-162-1.fc27.x86_64 subscription-manager-cockpit-1.21.1-1.fc27.noarch subscription-manager-1.21.1-1.fc27.x86_64 How reproducible: Every time. Steps to Reproduce: 1. yum install cockpit subscription-manager-cockpit 2. Log into Cockpit 3. Click on 'Subscriptions' Actual results: Oops! shown Expected results: Show the subscription status, even if blank in Fedora.
If I recall correctly, can be worked around by refreshing the page.
I just filed 1555384 about the D-Bus interface being broken (trivial fix). This might be the root cause for this failure, but of course the UI shoudl also react better to an absent subscription-manager than oopsing.
I validate that
I don't believe that 1555384 is the root cause for this failure. My testing shows that even if the d-bus interfaces are fixed and work normally, this error still persists. The following busctl calls are successful: $ busctl call com.redhat.RHSM1 /com/redhat/RHSM1/Entitlement com.redhat.RHSM1.Entitlement GetStatus ss '' en-USs "{\"status\": \"Current\", \"reasons\": {}, \"valid\": true}" $ busctl call com.redhat.RHSM1 /com/redhat/RHSM1/Config com.redhat.RHSM1.Config GetAll s en-US a{sv} 4 "server" a{ss} 11 "proxy_password" "" "server_timeout" "180" "proxy_user" "" "port" "443" "insecure" "0" "prefix" "/subscription" "proxy_hostname" "" "proxy_port" "" "ssl_verify_depth" "3" "hostname" "subscription.rhsm.redhat.com" "no_proxy" "" "rhsm" a{ss} 14 "inotify" "1" "auto_enable_yum_plugins" "1" "repomd_gpg_url" "" "ca_cert_dir" "/etc/rhsm/ca/" "repo_ca_cert" "/etc/rhsm/ca/redhat-uep.pem" "full_refresh_on_yum" "0" "plugindir" "/usr/share/rhsm-plugins" "entitlementcertdir" "/etc/pki/entitlement" "consumercertdir" "/etc/pki/consumer" "pluginconfdir" "/etc/rhsm/pluginconf.d" "manage_repos" "1" "productcertdir" "/etc/pki/product" "baseurl" "https://cdn.redhat.com" "report_package_profile" "1" "rhsmcertd" a{ss} 3 "autoattachinterval" "1440" "splay" "1" "certcheckinterval" "240" "logging" a{ss} 1 "default_log_level" "INFO" $ busctl call com.redhat.SubscriptionManager /EntitlementStatus com.redhat.SubscriptionManager.EntitlementStatus check_status i 0 But the cockpit addon still cannot access them, with the following errors: subscriptions-client.js:452 Uncaught TypeError: configService.GetAll is not a function at Function.<anonymous> (subscriptions-client.js:452) at P (cockpit.js:877) at cockpit.js:889 at j (cockpit.js:806) subscriptions-client.js:431 Uncaught TypeError: entitlementService.GetStatus is not a function at Function.<anonymous> (subscriptions-client.js:431) at P (cockpit.js:877) at cockpit.js:889 at j (cockpit.js:806)
As it turns out, this error's root cause can be either of these: * The rhsm service is not running. (reloading the page should force it to run) * The user did not check the checkbox "Reuse my password for privileged tasks" on the login page.
subscription-manager-1.24.2-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-075821dc8f
subscription-manager-1.24.2-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a675aa39fc
subscription-manager-1.24.2-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-91ba32a0ff
subscription-manager-1.24.2-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-075821dc8f
subscription-manager-1.24.2-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-91ba32a0ff
subscription-manager-1.24.2-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a675aa39fc
subscription-manager-1.24.2-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
subscription-manager-1.24.2-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
subscription-manager-1.24.2-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.