Bug 1415332

Summary: A critical section read of the worker's heartbeat information was not protected with a mutex
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Joe Rafaniello <jrafanie>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: abellott, jhardy, obarenbo, simaishi
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: 1415290 Environment:
Last Closed: 2017-02-27 19:29:56 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: 1415290    
Bug Blocks:    

Comment 2 CFME Bot 2017-01-20 22:15:54 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/6814026a233df44b8f194869d059ee078236a0fa

commit 6814026a233df44b8f194869d059ee078236a0fa
Author:     Jason Frey <fryguy9>
AuthorDate: Sat Dec 10 23:30:32 2016 -0500
Commit:     Satoe Imaishi <simaishi>
CommitDate: Fri Jan 20 17:12:16 2017 -0500

    Merge pull request #12932 from jrafanie/wrap_critical_section_with_read_lock
    
    Worker heartbeating: Wrap critical section with read lock
    (cherry picked from commit bb18704733652ab3c38c3c1d3e21e886f07d381a)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1415332

 .../miq_server/worker_management/heartbeat.rb      | 26 +++++++++++++++++-----
 .../miq_server/worker_management/heartbeat_spec.rb | 19 ++++++++++++++++
 2 files changed, 39 insertions(+), 6 deletions(-)
 create mode 100644 spec/models/miq_server/worker_management/heartbeat_spec.rb

Comment 3 Joe Rafaniello 2017-02-06 16:54:53 UTC
This was in euwe and therefore will be in 5.7.

Comment 5 errata-xmlrpc 2017-02-27 19:29:56 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