[PATCH] Remove several CTDB configuration/daemon options

Amitay Isaacs amitay at gmail.com
Mon Mar 19 01:26:24 UTC 2018


On Fri, Mar 16, 2018 at 2:41 PM, Martin Schwenke via samba-technical
<samba-technical at lists.samba.org> wrote:
> This patch set drops the following CTDB configuration variables and
> corresponding ctdbd command-line options:
>
>   CTDB_PIDFILE            --pidfile
>   CTDB_SOCKET             --socket
>   CTDB_NODES              --nlist
>   CTDB_PUBLIC_ADDRESSES   --public-addresses
>   CTDB_EVENT_SCRIPT_DIR   --event-script-dir
>   CTDB_PUBLIC_INTERFACE   --public-interface
>
> Also dropped are the:
>
>   ctdb command's --socket command-line option
>   ctdb command's CTDB_NODES environment variable
>   onnode command's CTDB_NODES_FILE environment variable
>   10.external event script (unused)
>   Internal CTDBD_CONF test variable (now unused)
>
> Analysis:
>
> * CTDB has too many unneccessary moving parts
>
> * In coming months failover handling will be rewritten, so
>   CTDB_PUBLIC_ADDRESSES and CTDB_PUBLIC_INTERFACE won't be missed.
>
> * In future there will be more than one directory containing event
>   scripts, so having a single option doesn't make a lot of sense.
>
> * PID file should always be the compile-time default
>
>   For testing we use an environment variable (CTDB_PIDFILE) to specify
>   an alternative location
>
> * Socket location should always be the compile-time default
>
>   For testing we use an environment variable (CTDB_SOCKET) to specify
>   an alternative location
>
> * The following should always be in the compile-time default
>   configuration directory:
>
>   - nodes
>   - public_addresses
>   - events.d/
>
>   For testing we override the location of the configuration directory
>   via an internal environment variable (CTDB_BASE)
>
>   Use a symbolic link from the configuration directory to specify a
>   different location for nodes or public_addresses (e.g. in the
>   cluster filesystem).
>
> * Interfaces for public IP addresses must always be specified in the
>   public_addresses file using the currently supported format
>
> * onnode still has a -f option for specifying an alternative nodes file
>
> About 1/2 of the commits are supporting changes in the test code.
>
> Please review and maybe push...
>
> peace & happiness,
> martin

Pushed to autobuild.

This gets us closer to decoupling some of the functionality from ctdb daemon.

After few more patches (coming soon) introducing proper config file
handling we should be able to get rid of the ctdbd_wrapper script.

Amitay.



More information about the samba-technical mailing list