The interface must always be specified in the public addresses file.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
maybe_set "--logging" "$CTDB_LOGGING"
maybe_set "--nlist" "$CTDB_NODES"
maybe_set "--listen" "$CTDB_NODE_ADDRESS"
- maybe_set "--public-interface" "$CTDB_PUBLIC_INTERFACE"
maybe_set "--dbdir" "$CTDB_DBDIR"
maybe_set "--dbdir-persistent" "$CTDB_DBDIR_PERSISTENT"
maybe_set "--dbdir-state" "$CTDB_DBDIR_STATE"
-e "s/,/ /g" \
-e "s/[\t ]*$//" "$ctdb_public_addresses")
- # Add some special interfaces if they're defined
- [ "$CTDB_PUBLIC_INTERFACE" ] && all_interfaces="$CTDB_PUBLIC_INTERFACE $all_interfaces"
-
# Get the interfaces for which CTDB has public IPs configured.
# That is, for all but the 1st line, get the 1st field.
ctdb_ifaces=$($CTDB -X ifaces | sed -e '1d' -e 's@^|@@' -e 's@|.*@@')
</listitem>
</varlistentry>
- <varlistentry>
- <term>CTDB_PUBLIC_INTERFACE=<parameter>INTERFACE</parameter></term>
- <listitem>
- <para>
- No default. Corresponds to
- <option>--public-interface</option>.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>CTDB_RECOVERY_LOCK=<parameter>LOCK</parameter></term>
<listitem>
+++ /dev/null
-#!/bin/sh
-
-. "${TEST_SCRIPTS_DIR}/unit.sh"
-
-define_test "unknown interface, up"
-
-setup_ctdb
-
-export CTDB_PUBLIC_INTERFACE="dev999"
-
-ok_null
-
-simple_test
+++ /dev/null
-#!/bin/sh
-
-. "${TEST_SCRIPTS_DIR}/unit.sh"
-
-define_test "unknown interface, down, up"
-
-setup_ctdb
-
-iface="dev999"
-export CTDB_PUBLIC_INTERFACE="$iface"
-
-ethtool_interfaces_down "$iface"
-required_result 1 "ERROR: No link on the public network interface $iface"
-simple_test
-
-ethtool_interfaces_up "$iface"
-ok_null
-simple_test
-
-ok_null
-simple_test