Bug 1601532

Summary: debian packages miss /etc/glusterfs/gsyncd.conf / breaks geo-replication / sate_file entry missing / unable to get statefile's name
Product: [Community] GlusterFS Reporter: Christian Lohmaier <lohmaier+rhbz>
Component: packagingAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1CC: bugs, bugzilla, lohmaier+rhbz
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-4.1.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-25 18:44:29 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:

Description Christian Lohmaier 2018-07-16 14:53:29 UTC
Description of problem:
installing 4.1.1 packages on a debian 9 system results in broken geo-replication.

Geo-replication sessions created with earlier versions (3.12 and earlier) no longer show up / gluster volume geo status gives:

      No active geo-replication session

looking in log gives "state_file entry missing in config file"

and trying to create a new one fails with "Please check gsync config file. Unable to get statefile's name"

Turns out that the new gsyncd.conf template is not packaged.

manually copying https://github.com/gluster/glusterfs/blob/v4.1.1/geo-replication/gsyncd.conf.in to /etc/glusterfs/gsyncd.conf (replacing @GLUSTERD_WORKDIR@ with /var/lib/glusterd) on both master and slave makes the geo-replication work again.

I took the liberty to set severity to high, as a whole portion of gluster is not working anymore and since the fix is easy - just add the file to the package and everything will be fine.

Comment 1 Christian Lohmaier 2018-07-16 15:49:47 UTC
forgot: also gluster-command-dirs need to be adjusted from /usr/local/sbin to /usr/sbin for the debian package

Comment 2 Mrten 2018-07-18 11:57:29 UTC
I can confirm this for 4.0 as well, as well as that the fix re-enables the geo-replication (so many thanks christian).

if the geo-rep master is a 3-replica all three replicas need the file.

Comment 3 Kaleb KEITHLEY 2018-07-24 12:49:35 UTC
You'll have to give me a hint where you're seeing gluster-command-dirs=/usr/local/sbin.

None of the files in any of the packages have /usr/local/sbin or gluster-command-dirs that I can find.

Comment 5 Mrten 2018-07-24 13:03:44 UTC
line 145 for example, but there's more