Bug 1816203

Summary: fence_aws: fix possible race condition
Product: Red Hat Enterprise Linux 8 Reporter: Oyvind Albrigtsen <oalbrigt>
Component: fence-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: Brandon Perkins <bperkins>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: bperkins, cfeist, cluster-maint, cnewsom, nwahl
Target Milestone: rcKeywords: ZStream
Target Release: 8.3Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fence-agents-4.2.1-44.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1816205 1929722 1929723 1933717 1933718 (view as bug list) Environment:
Last Closed: 2020-11-04 02:28:57 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: 1816205, 1933717, 1933718    

Description Oyvind Albrigtsen 2020-03-23 14:55:02 UTC
Description of problem:
Added a function called get_self_power_status() in which the instance executing the fence action will check its own status before fencing the other node. If the local EC2 instance's status is not "Running" it will not try to fence the other node as the local node has been already fenced. With the addition of this feature pcmk_delay_max and/or pcmk_delay_base can now be used and are encouraged to be used with fence_aws.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
Might end up in race condition.

Expected results:
Shouldn't end up in race condition.

Additional info:
https://github.com/ClusterLabs/fence-agents/pull/323

Comment 3 Oyvind Albrigtsen 2020-03-24 15:15:26 UTC
Additional patch to fix Python 3 encoding issue: https://github.com/ClusterLabs/fence-agents/pull/324

Comment 7 errata-xmlrpc 2020-11-04 02:28:57 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 (fence-agents bug fix and enhancement update), 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-2020:4622

Comment 9 Chris Feist 2021-03-01 14:46:15 UTC
*** Bug 1929722 has been marked as a duplicate of this bug. ***