ctdb-scripts: Drop CTDB_NODES configuration option
authorMartin Schwenke <martin@meltin.net>
Wed, 14 Mar 2018 04:30:37 +0000 (15:30 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 19 Mar 2018 01:23:20 +0000 (02:23 +0100)
Tests now deviate from the compile-time default by setting CTDB_BASE.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/ctdbd.conf
ctdb/config/ctdbd_wrapper
ctdb/doc/ctdb.7.xml
ctdb/doc/ctdbd.conf.5.xml
ctdb/doc/examples/cluster.conf
ctdb/doc/examples/lvs.conf
ctdb/doc/examples/natgw.conf
ctdb/doc/onnode.1.xml
ctdb/tools/onnode

index f8c56d078bb7adc5bceca7e084b652dc8742395d..2399a8ec97a0cd5624a09edc6120f8dbd6cb410d 100644 (file)
@@ -8,9 +8,6 @@
 # what you are doing.
 # CTDB_RECOVERY_LOCK=/some/place/on/shared/storage
 
-# List of nodes in the cluster.  Default is below.
-# CTDB_NODES=/etc/ctdb/nodes
-
 # What services should CTDB manage?  Default is none.
 # CTDB_MANAGES_SAMBA=yes
 # CTDB_MANAGES_WINBIND=yes
index 48aad782bd9d1ecaa2f2c847c1cce8e0d2e6b7f9..c239e3d4a3b45405d2be050d51dde5a6c36a668f 100755 (executable)
@@ -93,7 +93,6 @@ build_ctdb_options ()
 
     # build up ctdb_options variable from optional parameters
     maybe_set "--logging"                "$CTDB_LOGGING"
-    maybe_set "--nlist"                  "$CTDB_NODES"
     maybe_set "--listen"                 "$CTDB_NODE_ADDRESS"
     maybe_set "--dbdir"                  "$CTDB_DBDIR"
     maybe_set "--dbdir-persistent"       "$CTDB_DBDIR_PERSISTENT"
index c07af61dbf6bfe7fd69080f7e58cf548edd9837d..079b34d8a085744e7f404891545c415cb016b3f4 100644 (file)
         the cluster and is the address that CTDB daemons will use to
         communicate with the CTDB daemons on other nodes.
       </para>
+
       <para>
-        Private addresses are listed in the file specified by the
-        <varname>CTDB_NODES</varname> configuration variable (see
-        <citerefentry><refentrytitle>ctdbd.conf</refentrytitle>
-        <manvolnum>5</manvolnum></citerefentry>, default
-        <filename>/usr/local/etc/ctdb/nodes</filename>).  This file contains the
-        list of private addresses for all nodes in the cluster, one
-        per line. This file must be the same on all nodes in the
-        cluster.
+       Private addresses are listed in the file
+       <filename>/usr/local/etc/ctdb/nodes</filename>).  This file
+       contains the list of private addresses for all nodes in the
+       cluster, one per line. This file must be the same on all nodes
+       in the cluster.
       </para>
+
+      <para>
+       Some users like to put this configuration file in their
+       cluster filesystem.  A symbolic link should be used in this
+       case.
+      </para>
+
       <para>
        Private addresses should not be used by clients to connect to
        services provided by the cluster.
index 652bb31bdea11fd97511e40ea5eb39252df36783..ee9cec84759f9e9d0356a94aa37ce43c48b08a18 100644 (file)
        </listitem>
       </varlistentry>
 
-      <varlistentry>
-       <term>CTDB_NODES=<parameter>FILENAME</parameter></term>
-       <listitem>
-         <para>
-           Default is <varname>CTDB_BASE</varname>/nodes, so usually
-           <filename>/usr/local/etc/ctdb/nodes</filename>.  Corresponds to
-           <option>--nlist</option>.
-         </para>
-       </listitem>
-      </varlistentry>
-
       <varlistentry>
        <term>CTDB_NOSETSCHED=yes|no</term>
        <listitem>
          </para>
          <para>
            By default ctdbd will select the first address from the
-           nodes list that in can bind to.  See also
-           <citetitle>CTDB_NODES</citetitle>.
+           nodes list that in can bind to.  See also the
+           <citetitle>Private address</citetitle> section in
+           <citerefentry><refentrytitle>ctdb</refentrytitle>
+           <manvolnum>7</manvolnum></citerefentry>.
          </para>
          <para>
            This option is only required when automatic address
index b3a3263efdb08acf09d3b324083ee50f3f7cc367..2ad9b2b08e37b9b2c28670e6f3b517ce4fd7cca1 100644 (file)
@@ -51,8 +51,6 @@ CTDB_RECOVERY_LOCK=/shared/recovery.lock
 # 192.168.1.3
 # ---------- /etc/ctdb/nodes ----------
 #
-CTDB_NODES=/etc/ctdb/nodes
-
 #
 # Public addresses configuration
 #
index 81888b396ec7eba87d91744649030826b0c851e2..e9ade9d5db19f5b30e9c58a38d52e1b090552dc3 100644 (file)
@@ -50,8 +50,6 @@ CTDB_RECOVERY_LOCK=/shared/recovery.lock
 # 192.168.1.3
 # ---------- /etc/ctdb/nodes ----------
 #
-CTDB_NODES=/etc/ctdb/nodes
-
 # Enable logging to syslog
 CTDB_LOGGING=syslog
 
index e1844d63b9740b06e11528d49fc4c334edf35142..5fbb2d16fd438bcadfbe8e5f3eb6b37009179574 100644 (file)
@@ -53,8 +53,6 @@ CTDB_RECOVERY_LOCK=/shared/recovery.lock
 # 192.168.1.3
 # ---------- /etc/ctdb/nodes ----------
 #
-CTDB_NODES=/etc/ctdb/nodes
-
 #
 # Public addresses configuration
 #
index a73230e87de364f84df4affb2baac635f69cfcf3..7c45563bd474782542b78a15eb829db7335f2430 100644 (file)
@@ -60,8 +60,7 @@
       <listitem>
        <para>
          Specify an alternative nodes FILENAME to use instead of
-         the default.  This option overrides the CTDB_NODES
-         variable.  See the discussion of
+         the default.  See the discussion of
          <filename>/usr/local/etc/ctdb/nodes</filename> in the
          FILES section for more details.
          </para>
            also searched for in the <filename>$CTDB_BASE</filename>
            directory.
          </para>
-         <para>
-           If <envar>CTDB_NODES</envar> is set in configuration then the
-           file pointed to by <envar>CTDB_NODES</envar> is used.
-         </para>
          <para>
            Otherwise the default is
-           <filename>$CTDB_BASE/nodes</filename>, where
-           <envar>CTDB_BASE</envar> defaults to
-           <filename>/usr/local/etc/ctdb</filename>.
+           <filename>/usr/local/etc/ctdb/nodes</filename>.
           </para>
        </listitem>
       </varlistentry>
index 25237601268cb9d71b7b30f8be6063b2ed331e41..6f1b732705cdfd8978ea1bd4524c2ad3b1015fb1 100755 (executable)
@@ -228,8 +228,6 @@ get_nodes ()
                        # $f is relative, try in $CTDB_BASE
                        f="${CTDB_BASE}/${f}"
                fi
-       elif [ -n "$CTDB_NODES" ] ; then
-               f="$CTDB_NODES"
        fi
 
        if [ ! -r "$f" ] ; then