Bug 1341290

Summary: Server Roles do not take effect without restart
Product: Red Hat CloudForms Management Engine Reporter: Krain Arnold <krain>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: hkataria, jhardy, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.7.0   
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: 2016-06-01 13:25:53 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: 1310121    

Description Krain Arnold 2016-05-31 17:34:33 UTC
Description of problem:
Under Settings/Configuration the Server Control Server Roles selections do not change the actual server roles without an appliance restart.

Version-Release number of selected component (if applicable):
5.6.0.8-rc1.20160524155303_f2a5a50

How reproducible:
100%

Steps to Reproduce:
1. Navigate to settings/configuration
2. Turn off every single role, even the UI


Actual results:
Nothing.

Expected results:
The role's selected should be enabled, and the roles not selected should be disabled.

Additional info:

When the appliance is first configured, the roles enabled are: database_operations,event,reporting,scheduler,smartstate,ems_operations,ems_inventory,user_interface,websocket,web_services,automate

You can see this in vmdb/config/settings.yml and by running rake evm:status

If you change all the roles in the UI, this doesn't change. If you restart the evm service, it takes effect, visible by running evm:status, although settings.yml never changes. (It's also obvious when it starts working since, if you disable all the roles, you can still happily move about the UI. Once the roles take effect after the restart that breaks obviously.) This is true for disabling as well as enabling roles, so for example, at the moment it is impossible to enable C&U without restarting the appliance.

Comment 2 Harpreet Kataria 2016-05-31 19:17:57 UTC
I think the same fix for https://bugzilla.redhat.com/show_bug.cgi?id=1339702 might fix this issue as well.

Comment 3 Harpreet Kataria 2016-06-01 13:25:53 UTC
https://github.com/ManageIQ/manageiq/pull/9068

Please retest with next build.

*** This bug has been marked as a duplicate of bug 1339702 ***