Bug 1601532 - debian packages miss /etc/glusterfs/gsyncd.conf / breaks geo-replication / sate_file entry missing / unable to get statefile's name
Summary: debian packages miss /etc/glusterfs/gsyncd.conf / breaks geo-replication / sa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: packaging
Version: 4.1
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kaleb KEITHLEY
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-16 14:53 UTC by Christian Lohmaier
Modified: 2018-09-23 10:39 UTC (History)
3 users (show)

Fixed In Version: glusterfs-4.1.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-25 18:44:29 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1632013 0 unspecified CLOSED georep: hard-coded paths in gsyncd.conf.in 2021-02-22 00:41:40 UTC

Internal Links: 1632013

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


Note You need to log in before you can comment on or make changes to this bug.