ctdb-scripts: CTDB_PARTIALLY_ONLINE_INTERFACES incompatible with NAT gateway
authorMartin Schwenke <martin@meltin.net>
Wed, 20 Jan 2016 08:14:15 +0000 (19:14 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Jan 2016 06:18:25 +0000 (07:18 +0100)
This has always been the case.  Now it is documented and enforced.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/11.natgw
ctdb/doc/ctdbd.conf.5.xml

index 54e6cd92c3620044ac8631be2af949a712695265..4f7547059d72592724f5b0f82777960b1ef88ba3 100755 (executable)
@@ -34,7 +34,11 @@ natgw_check_config ()
            die "Invalid configuration: CTDB_NATGW_PUBLIC_IFACE not set"
     fi
     [ -n "$CTDB_NATGW_PRIVATE_NETWORK" ] || \
-       die "Invalid configuration: CTDB_NATGW_PRIVATE_NETWORK not set"
+           die "Invalid configuration: CTDB_NATGW_PRIVATE_NETWORK not set"
+
+    if [ "$CTDB_PARTIALLY_ONLINE_INTERFACES" = "yes" ] ; then
+           die "Invalid configuration: CTDB_PARTIALLY_ONLINE_INTERFACES=yes incompatible with NAT gateway"
+    fi
 
     # The default is to create a single default route
     [ -n "$CTDB_NATGW_STATIC_ROUTES" ] || CTDB_NATGW_STATIC_ROUTES="0.0.0.0/0"
index 40296ba7983762993c86a0f54b16e0a086251ffb..a8ebe5669cac96c79d6f0f4e84248d1603c262ae 100644 (file)
@@ -838,6 +838,13 @@ CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=9000
              display the node as "PARTIALLYONLINE".
            </para>
 
+           <para>
+             Note that CTDB_PARTIALLY_ONLINE_INTERFACES=yes is
+             incompatible with NAT gateway, since NAT gateway relies
+             on the interface configured by CTDB_NATGW_PUBLIC_IFACE
+             to be up.
+           </para>
+
            <para>
              Default is "no".
            </para>