Description of problem: geo-rep config shown ignore_deletes: true always, even though it not true for changelog. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [root@vertigo ~]# gluster v geo master 10.70.36.52::slave config ignore_deletes true >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Version-Release number of selected component (if applicable): glusterfs-3.4.0.42rhs-1 How reproducible: Happens everytime. Steps to Reproduce: 1.create and start a geo-rep relationship between master and slave. 2.check the config ignore_deletes Actual results: It will be true always Expected results: It shouldn't show true always, people might end up deleting files from master and losing data from slave too. Additional info:
Still in the geo-rep config output, we have ignore_deletes as true even though we don't ignore deletes. This could be disastrous, since sys-admin might delete some data on master assuming that it won't be deleted on slave. Either remove the that entry from config output or change the behavior. Version: glusterfs-3.6.0.12-1.el6rhs >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # gluster v geo master 10.70.43.170::slave config ignore_deletes true >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Upstream patch sent for review http://review.gluster.org/#/c/9583/
Verified with the build: glusterfs-3.7.0-2.el6rhs.x86_64 By default the ignore_deletes option is set to false. At this time, the deletes are picked up by changelog crawl and is sync to the slave. If you set the ignore_deletes option is set explicitly to true. The deletes from master are not synced to slave. This is expected and marking the bug as verified. [root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config ignore_deletes false [root@georep1 scripts]# [root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config ignore_deletes true geo-replication config updated successfully [root@georep1 scripts]# gluster volume geo-replication master 10.70.46.154::slave config ignore_deletes true [root@georep1 scripts]#
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-2015-1495.html