Bug 1644798

Summary: [GSS](6.4.z) CLI/Admin Console does not prompt for a reload after adding a new server-group to server-scoped-roles.
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Saisha Naik <sanaik>
Component: CLI, Domain Management, Web ConsoleAssignee: Chao Wang <chaowan>
Status: CLOSED EOL QA Contact: Peter Mackay <pmackay>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4.21CC: bmaxwell, brian.stansberry, chaowan, jboss-set
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 12:45:21 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:

Description Saisha Naik 2018-10-31 15:51:17 UTC
Description of problem: CLI/Admin Console does not prompt for a reload after adding a new server-group to server-scoped-roles.


How reproducible: Always reproducible

Steps to Reproduce:
Enable RBAC for management console and follow below steps :
SuperUser Role : admin

1. Login to admin console using 'admin' user go to Administration --> Roles --> Scoped Roles --> Add --> maintainer-scope-role 

Base Role: Maintainer
Type: Server Group
Scope: main-server-group

save the changes.

2. Under "Users" add ldap user 'test' with above created scoped role Administration --> Users --> Add ---> test (include scoped role maintainer-scope-role)

Login using 'test' user under Domain --> Server Groups --> main-server-group is visible.

3. Login using 'admin' user and create server-group "new-server-group" with default profile and edit maintainer-scope-role to add "new-server-group" to the list of scope.

4. Logout and login with 'test' user "new-server-group" is not visible in the list of Server Groups.

With CLI :
After logging-in as 'test' user :

[domain@localhost:9999 /] /server-group=
main-server-group other-server-group

After restart the server group appears in the list

[domain@localhost:9999 /] /server-group=
main-server-group other-server-group third-server-group
Actual results:

Expected results: The CLI/Admin console does not prompt for a reload after adding the new server-group to the scoped-role and hence the changes aren't reflected when users belonging to 'scoped-role' login into admin console/CLI.

Expected results: The CLI/Admin console should prompt for a reload after adding the new server-group to the scoped-role.