Bug 1040928

Summary: User with default permissions sees his assigned resources as DOWN
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: Core Server, UI, Resource GroupingAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.2CC: hrupp, jkremser, loleary, spinder
Target Milestone: GA   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:37:10 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: 1012435    

Description Filip Brychta 2013-12-12 10:56:45 UTC
Description of problem:
$Summary

Version-Release number of selected component (if applicable):
Version :	
3.2.0.GA
Build Number :	
7b00246:6d13523

How reproducible:
Always

Steps to Reproduce:
1. Create a Compatible Group containing all platforms
2. Create a role with default permissions and previously created group as an Assigned Resource Group
3. Create a user with previous role assigned
4. Log in as the user created in previous step
5. Navigate to some platform resource

Actual results:
The platform resource is available for ~15 s and then it is show as DOWN. When you refresh the page (F5) it is available again for ~15 s. Availability on Monitoring tab is correct and shows the resource as UP all the time. There are NO errors neither in the agent nor server logs. So the only problem seems to be the incorrect availability icon (availability_red_24.png)

Expected results:
The platform resource is shown as UP (availability_green_24.png)

Comment 2 Jirka Kremser 2013-12-12 15:54:15 UTC
branch:  release/jon3.2.x
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=734da85cf
time:    2013-12-12 16:51:50 +0100
commit:  734da85cf753c74045ea91c27713ceccefe1a005
author:  Jirka Kremser - jkremser
message: [BZ 1040928] - User with default permissions sees his assigned resources
         as DOWN - using the subjectManager.getOverlord() instead of the
         actual subject, because the live resource availability should
         not require the MANAGE_SETTINGS permission. (cherry picked from
         commit 60d6b811fd4e2d56f2f591dbc77d4d592fdfab5b)

Comment 3 Simeon Pinder 2013-12-12 18:49:18 UTC
Moving this to ON_QA as there is a new brew build available to test with:
https://brewweb.devel.redhat.com//buildinfo?buildID=318676

Comment 4 Filip Brychta 2013-12-13 07:33:58 UTC
Verified on
Version :	
3.2.0.GA
Build Number :	
dcb8b6f:734bd56