Bug 1361118

Summary: [RFE] Geo-replication Events
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.1CC: amukherj, csaba, rcyriac, rhinduja, rhs-bugs
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: USM-Gluster integration
Fixed In Version: glusterfs-3.8.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-23 05:42:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 1370445    
Bug Blocks: 1351503    

Description Aravinda VK 2016-07-28 11:24:12 UTC
Description of problem:
This RFE is to track the changes required in the Geo-replication component to generate the events to be consumed by the eventing framework.

Comment 3 Atin Mukherjee 2016-08-29 04:04:23 UTC
http://review.gluster.org/#/c/15328/ posted upstream for review.

Comment 4 Atin Mukherjee 2016-09-16 08:45:29 UTC
downstream patch : https://code.engineering.redhat.com/gerrit/#/c/84739/ merged now.

Comment 5 Aravinda VK 2016-09-17 13:47:43 UTC
User driven events patch is merged, One more patch required(http://review.gluster.org/15328). I will backport that today. Moving it back to POST

Comment 6 Aravinda VK 2016-09-17 14:02:53 UTC
Posted the second patch
https://code.engineering.redhat.com/gerrit/84879

Comment 7 Atin Mukherjee 2016-09-17 14:04:12 UTC
downstream patch https://code.engineering.redhat.com/gerrit/#/c/84879/ is merged.

Comment 10 Sweta Anandpara 2016-11-14 10:16:15 UTC
Tested and verified this on the build 3.8.4-3

The below mentioned Geo-rep events are already tested:
EVENT_GEOREP_CREATE
EVENT_GEOREP_START
EVENT_GEOREP_STOP
EVENT_GEOREP_PAUSE
EVENT_GEOREP_RESUME
EVENT_GEOREP_DELETE
EVENT_GEOREP_CONFIG_RESET
EVENT_GEOREP_CONFIG_SET

{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master', u'push_pem': u'1'}, u'event': u'GEOREP_CREATE', u'ts': 1474362077, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}
{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master'}, u'event': u'GEOREP_START', u'ts': 1474362215, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}
{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master'}, u'event': u'GEOREP_STOP', u'ts': 1474363883, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}
{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master'}, u'event': u'GEOREP_PAUSE', u'ts': 1474363836, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}
{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master'}, u'event': u'GEOREP_RESUME', u'ts': 1474363859, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}
{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master'}, u'event': u'GEOREP_DELETE', u'ts': 1474436128, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}
{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master', u'option': u'use_meta_volume', u'value': u'true'}, u'event': u'GEOREP_CONFIG_SET', u'ts': 1474362161, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}
{u'message': {u'slave': u'10.70.46.242::dist-slave', u'master': u'disp-master', u'option': u'use-tarssh'}, u'event': u'GEOREP_CONFIG_RESET', u'ts': 1474364116, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'}


Async events related to georep are not yet tested. But moving this blanket BZ to verified. Will raise new bugzilla if I see any issue later.

Comment 12 errata-xmlrpc 2017-03-23 05:42: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, 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