Bug 1549518

Summary: System page is being refreshed every 5s with insights enabled and non satellite admin user
Product: Red Hat Satellite 5 Reporter: Kenny Tordeurs <ktordeur>
Component: redhat-access-plugin-sat5Assignee: Lindani Phiri <lphiri>
Status: CLOSED ERRATA QA Contact: Radovan Drazny <rdrazny>
Severity: high Docs Contact:
Priority: high    
Version: 580CC: ckyrouac, faranda, ggainey, jdobes, jhutar, lphiri, rdrazny, robwilli, tkasparek, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: redhat-access-plugin-sat5-2.1.0-57.el6sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-15 21:46:38 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:
Bug Depends On:    
Bug Blocks: 1450111    

Description Kenny Tordeurs 2018-02-27 10:39:37 UTC
Description of problem:
If using any user that is not a Satellite administrator the "Red Hat access insights" keeps being refreshed on the Systems page every 5 seconds which prevents any usage of that page.

Version-Release number of selected component (if applicable):
# rpm -qa | grep satellite
satellite-schema-5.8.0.40-1.el6sat.noarch
satellite-repo-5.8.0.2-2.el6sat.noarch
satellite-branding-5.8.0.8-1.el6sat.noarch
satellite-doc-indexes-5.8.0-1.el6sat.noarch


How reproducible:
100%

Steps to Reproduce:
1. Create a user with following roles: Organization Administrator, Channel Administrator, Configuration Administrator, System Group Administrator, Activation Key Administrator
2. Login with the user 
3. Go to Systems page https://satellite.example.com/rhn/systems/SystemList.do

Actual results:
with non-Satellite admin user, keeps "Loading Red Hat Insights" on the top of the Systems page and it's refreshed every 5 seconds which makes the page completely useless.

Expected results:
Same behavior as for the Satellite admin user, the page not constantly being refreshed every 5s.

Additional info:

Comment 15 Lindani Phiri 2018-03-07 17:48:04 UTC
Patch is available in brew:

https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=660451

Comment 24 Radovan Drazny 2018-04-03 12:59:44 UTC
Verified using the reproducer from the initial report with redhat-access-plugin-sat5-2.1.0-56.el6sat. The problem was present on https://<sat-server>/rhn/systems/Insights.do, for all "non-Red Hat Satellite Administrator" users, including admin users of both default and non-default orgs. 
After updating to redhat-access-plugin-sat5-2.1.0-57.el6sat, the pages worked as expected, and I haven't encountered any automatic refreshes.

VERIFIED

Comment 30 errata-xmlrpc 2018-05-15 21:46:38 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, 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/RHEA-2018:1565