Bug 1380257

Summary: [RFE] eventsapi/georep: Events are not available for Checkpoint and Status Change
Product: Red Hat Gluster Storage Reporter: Aravinda VK <avishwan>
Component: geo-replicationAssignee: Aravinda VK <avishwan>
Status: CLOSED ERRATA QA Contact: Sweta Anandpara <sanandpa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.2CC: amukherj, asrivast, bugs, csaba, rcyriac, rhs-bugs, sabose, storage-qa-internal
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1379330 Environment:
Last Closed: 2017-03-23 05:50:17 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:
Bug Depends On: 1379330, 1386178    
Bug Blocks: 1351503    

Description Aravinda VK 2016-09-29 06:35:55 UTC
+++ This bug was initially created as a clone of Bug #1379330 +++

Description of problem:
Events are not available on checkpoint completion and on Worker status change.

Following events are required from Geo-replication

GEOREP_CHECKPOINT_COMPLETION => Completion Time and other details
GEOREP_STATUS_CHANGE  => Active to Passive or vise versa

Comment 3 Atin Mukherjee 2016-10-17 09:56:21 UTC
An upstream mainline patch http://review.gluster.org/15630 (WIP) posted for review.

Comment 4 Aravinda VK 2016-10-20 06:36:02 UTC
Posted Downstream Patch https://code.engineering.redhat.com/gerrit/87745

Comment 5 Aravinda VK 2016-10-20 06:37:01 UTC
New Events:
GEOREP_CHECKPOINT_COMPLETED
GEOREP_ACTIVE
GEOREP_PASSIVE

Comment 6 Atin Mukherjee 2016-10-20 06:55:01 UTC
upstream mainline patch : http://review.gluster.org/15630
upstream 3.9 patch : http://review.gluster.org/#/c/15672/
downstream patch : https://code.engineering.redhat.com/gerrit/87745

Comment 8 Sweta Anandpara 2016-12-16 09:35:58 UTC
Have executed scenarios and seen the geo-rep events newly introduced. 

Will be raising separate BZ in case I see any specific issue. Moving this BZ to verified in 3.2. 

{u'message': {u'checkpoint_time': u'1481880377', u'master_volume': u'ozone', u'master_node': u'10.70.47.60', u'master_node_id': u'8d3ab9e3-c086-4474-9db2-677d5018d055', u'slave_host': u'10.70.46.239', u'checkpoint_completion_time': u'1481880557', u'slave_volume': u'slave', u'brick_path': u'/bricks/brick0/ozone0'}, u'event': u'GEOREP_CHECKPOINT_COMPLETED', u'ts': 1481880557, u'nodeid': u'8d3ab9e3-c086-4474-9db2-677d5018d055'}

{u'message': {u'master_volume': u'ozone', u'master_node': u'10.70.47.27', u'brick_path': u'/bricks/brick0/ozone3', u'slave_host': u'10.70.46.239', u'slave_volume': u'slave', u'master_node_id': u'8d1aaf3a-059e-41c2-871b-6c7f5c0dd90b'}, u'event': u'GEOREP_ACTIVE', u'ts': 1481879152, u'nodeid': u'8d1aaf3a-059e-41c2-871b-6c7f5c0dd90b'}

{u'message': {u'master_volume': u'ozone', u'master_node': u'10.70.47.61', u'brick_path': u'/bricks/brick0/ozone1', u'slave_host': u'10.70.46.239', u'slave_volume': u'slave', u'master_node_id': u'f4b259db-7add-4d01-bb5e-3c7f9c077bb4'}, u'event': u'GEOREP_PASSIVE', u'ts': 1481879152, u'nodeid': u'f4b259db-7add-4d01-bb5e-3c7f9c077bb4'}

Comment 10 errata-xmlrpc 2017-03-23 05:50:17 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