Bug 1325738

Summary: Server role selection/deselection not being honored
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: ApplianceAssignee: Joe Rafaniello <jrafanie>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: abellott, cpelland, gtanzill, jhardy, obarenbo
Target Milestone: Beta 2   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: worker
Fixed In Version: 5.6.0.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:48:02 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:

Description Nandini Chandra 2016-04-11 04:37:20 UTC
Description of problem:
-----------------------
After a server role is selected/deselected, the corresponding worker thread refuses to start/stop.


Version-Release number of selected component (if applicable):
------------------------
5.6


How reproducible:
-----------------
Always


Steps to Reproduce:
------------------
1.Select a server role and save the configuration setting.Observe that the worker role refuses to start.
2.Alternatively, deselect a server role and observe that the corresponding worker refuses to stop.


Actual results:
---------------
After a server role is selected/deselected, the corresponding worker thread refuses to start/stop.


Expected results:
-----------------
After a server role is selected/deselected, the corresponding worker thread should start/stop.


Additional info:
----------------

Comment 2 Nandini Chandra 2016-04-14 00:35:27 UTC
This issue exists in Beta 2 as well.I'm unable to start the C&U worker threads because of this issue.This issue is blocking C&U testing.

Comment 5 CFME Bot 2016-04-19 01:57:21 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/29695c7bbbb0a1930052ec2a25b0dcc498b0bc77

commit 29695c7bbbb0a1930052ec2a25b0dcc498b0bc77
Author:     Joe Rafaniello <jrafanie>
AuthorDate: Mon Apr 18 14:19:19 2016 -0400
Commit:     Joe Rafaniello <jrafanie>
CommitDate: Mon Apr 18 17:08:19 2016 -0400

    Clear the my_server cache so we can detect role changes faster.
    
    With a cached MiqServer, sync_needed? fails to detect changes to active roles
    within a reasonable amount of time.
    
    The default cache_with_timeout value is 5 minutes.
    
    With this change, we'll refetch the my_server with each iteration of the monitor
    loop.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1325738

 app/models/miq_server/worker_management/monitor.rb | 3 +++
 1 file changed, 3 insertions(+)

Comment 6 Nandini Chandra 2016-04-22 17:44:22 UTC
Verified in 5.6.0.4-beta2.3

Comment 8 errata-xmlrpc 2016-06-29 15:48:02 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/RHBA-2016:1348