Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1492569

Summary: Red Hat Insights widget on dashboard shows undefined method `query_error'
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: RH Cloud - InsightsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, lphiri, tbrisker
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman-redhat_access-2.0.9-1, rubygem-redhat_access_lib-1.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 13:35:56 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
screenshot of UI
none
screenshot of UI showing error none

Description Nikhil Kathole 2017-09-18 07:56:25 UTC
Created attachment 1327238 [details]
screenshot of UI

Description of problem:Red Hat Insights widget on dashboard shows error "undefined method `query_error' for "Unable to get rule summary.":String".

Version-Release number of selected component (if applicable): satellite 6.3 snap 16


How reproducible:always


Steps to Reproduce:
1. Import a manifest under Content -> Red Hat subscriptions
2. Navigate to Monitor -> Dashboard

Actual results:
Red Hat Insights widget shows error "undefined method `query_error' for "Unable to get rule summary.":String" and production.log shows 500 internal server error.

Expected results:
Error should get handled.

Additional info:

Comment 5 Lindani Phiri 2017-09-26 02:55:02 UTC
Resolved as side effect of an existing PR.

Comment 7 Nikhil Kathole 2017-10-09 09:30:00 UTC
Version Tested:
Satellite-6.3 Snap 19

# rpm -qa | grep foreman-redhat_access
tfm-rubygem-foreman-redhat_access-2.0.8-1.el7sat.noarch

After uploading  manifest in comment #3, Red Hat Insights widget shows "There was an error retrieving Insights data" and production.log shows

RedhatAccess::Telemetry::PortalClient: Caught HTTP error when proxying call to tapi: 400 Bad Request

Is this expected behaviour?

Comment 9 Nikhil Kathole 2017-10-09 09:37:02 UTC
Created attachment 1336265 [details]
screenshot of UI showing error

Comment 12 Nikhil Kathole 2017-10-10 14:19:03 UTC
Failed QA

Thanks Lindani, moving it to assigned.

Comment 13 Nikhil Kathole 2017-10-24 07:48:19 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 21

# rpm -qa | grep foreman-redhat_access
tfm-rubygem-foreman-redhat_access-2.0.10-1.el7sat.noarch

After uploading  manifest in comment #3, no error found on dashboard Red Hat Insights widget.