[Bugs] [Bug 1452761] New: geo-replication and similar hooks should probably reside in exec_prefix

bugzilla at redhat.com bugzilla at redhat.com
Fri May 19 14:52:32 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1452761

            Bug ID: 1452761
           Summary: geo-replication and similar hooks should probably
                    reside in exec_prefix
           Product: GlusterFS
           Version: 3.10
         Component: scripts
          Assignee: bugs at gluster.org
          Reporter: nh2-redhatbugzilla at deditus.de
                CC: bugs at gluster.org



Description of problem:

Currently GlusterFS expects all hooks, including those that are required for
correct operation and not really intended to be user-modifiable (such as the
geo-replication hooks that come with gluster), in /var/lib/glusterd/hooks/.

It is unusual for a build system to place its own files required for correct
operation into /var as opposed to a read-only location under PREFIX.

In practice, this makes it hard to package gluster for distributions that
enforce a strict separation between package provided files and user-managed
run-time files, such as NixOS, where packages are not allowed at build-time to
place things into `/var`.

JoeJulian and I believe these inbuilt hooks should reside under exec_prefix,
like the other scripts required for geo-replication.

(If those hooks are also intended to be user-modifiable, the best solution
seems to be to deliver the "default" version in exec_prefix, but check at
run-time if the user has overridden them with their own scripts in /var.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list