Bug 1397430

Summary: PEER_REJECT, EVENT_BRICKPATH_RESOLVE_FAILED, EVENT_COMPARE_FRIEND_VOLUME_FAILED are not seen
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Atin Mukherjee <amukherj>
Component: glusterdAssignee: Atin Mukherjee <amukherj>
Status: CLOSED ERRATA QA Contact: Byreddy <bsrirama>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.2CC: bugs, rhinduja, rhs-bugs, storage-qa-internal, vbellur
Target Milestone: ---Keywords: Triaged
Target Release: RHGS 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1397424 Environment:
Last Closed: 2017-03-23 06:20:52 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: 1397424, 1397705    
Bug Blocks: 1351528    

Description Atin Mukherjee 2016-11-22 14:01:43 UTC
+++ This bug was initially created as a clone of Bug #1397424 +++

Description of problem:

1. PEER_REJECT event is not seen if the peer add request is from an unknown peer
during peer handshaking.
2. EVENT_COMPARE_FRIEND_VOLUME_FAILED is not seen if there is a checksum mismatch in friend volume
3. EVENT_BRICKPATH_RESOLVE_FAILED event is not seen if glusterd fails to restore bricks and fails to come up.
4. Remove EVENT_BRICKS_START_FAILED event as we already have EVENT_BRICK_START_FAILED

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Worker Ant on 2016-11-22 08:53:34 EST ---

REVIEW: http://review.gluster.org/15903 (glusterd: fix few events generation) posted (#1) for review on master by Atin Mukherjee (amukherj)

Comment 2 Atin Mukherjee 2016-11-22 14:06:23 UTC
upstream mainline patch http://review.gluster.org/15903 posted for review.

Comment 4 Atin Mukherjee 2016-11-24 06:46:28 UTC
upstream mainline : http://review.gluster.org/15903
upstream 3.9 : http://review.gluster.org/15912
downstream patch : https://code.engineering.redhat.com/gerrit/#/c/91097/

Comment 7 Byreddy 2016-12-01 08:24:35 UTC
Verified this BZ using  glusterfs-3.8.4-6 build.

i am seeing events mentioned in the $title are generating based on the scenario.


{u'message': {u'volume': u'Dis'}, u'event': u'COMPARE_FRIEND_VOLUME_FAILED', u'ts': 1480576732, u'nodeid': u'3bb05180-7edb-4142-b973-403dee428f73'}
10.70.41.217 - - [01/Dec/2016 12:43:35] "POST /listen HTTP/1.1" 200 -


{u'message': {u'peer': u'dhcp41-198.lab.eng.blr.redhat.com'}, u'event': u'PEER_REJECT', u'ts': 1480579528, u'nodeid': u'7c96741d-d5c1-470a-904d-1928af82454f'}
10.70.41.198 - - [01/Dec/2016 13:30:10] "POST /listen HTTP/1.1" 200 -

{u'message': {u'peer': u'10.70.41.111', u'volume': u'Dis', u'brick': u'/bricks/brick0/d0'}, u'event': u'BRICKPATH_RESOLVE_FAILED', u'ts': 1480579775, u'nodeid': u'7c96741d-d5c1-470a-904d-1928af82454f'}

and  confirmed that the event EVENT_BRICKS_START_FAILED is removed from the code.
code change file: https://code.engineering.redhat.com/gerrit/#/c/91097/2/events/eventskeygen.py

With all above details moving the bug to verified state.

Comment 9 errata-xmlrpc 2017-03-23 06:20:52 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-0486.html