Bug 1403983

Summary: After performing an upgrade, no role workers start on new appliances
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Joe Rafaniello <jrafanie>
Status: CLOSED ERRATA QA Contact: Jan Krocil <jkrocil>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: abellott, cpelland, jhardy, ncarboni, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.7.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.7.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1402943 Environment:
Last Closed: 2017-02-27 19:27:40 UTC Type: ---
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: 1402943    
Bug Blocks:    

Comment 2 CFME Bot 2017-01-09 18:46:00 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/db36d94a8db938e5f6221561b65c83502f3f528b

commit db36d94a8db938e5f6221561b65c83502f3f528b
Author:     Nick Carboni <ncarboni>
AuthorDate: Thu Dec 8 17:15:23 2016 -0500
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Jan 9 13:42:36 2017 -0500

    Merge pull request #13065 from jrafanie/fix_master_server_failover_race_condition
    
    Fix master server failover race condition
    (cherry picked from commit 1eafadd79813e7472d12fca8842fa12ac60bd6ee)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1403983

 app/models/miq_server/server_monitor.rb       | 20 ++++++-----
 spec/models/miq_server/server_monitor_spec.rb | 49 +++++++++++++++++++++++++++
 2 files changed, 61 insertions(+), 8 deletions(-)

Comment 3 Jan Krocil 2017-01-27 10:38:33 UTC
Verified fixed in 5.7.1.0 - 5.7.1.0.20170124142149_8a5f4d5.

Tested scenario:
 - 3 appliances (A, B, C)
 1. A set up with internal DB
 2. A stopped
 3. B set up with external DB, pointed at A (same region)
 4. B's UI came up, active as master [OK]
 5. C set up with external DB, pointed at A (same region)
 6. C's UI didn't come up, master inactive [OK]
 7. B stopped
 8. C's UI came up, active as master [OK]

Comment 4 errata-xmlrpc 2017-02-27 19:27:40 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://rhn.redhat.com/errata/RHSA-2017-0320.html