make sure to also check that interfaces used for NATGW are ok
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 9 Dec 2009 00:13:29 +0000 (11:13 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 9 Dec 2009 00:13:29 +0000 (11:13 +1100)
and have a link.
if not the node should become unhealthy

(This used to be ctdb commit 03b5bbaae1b53830a4cd20d3079ab8f45ffce923)

ctdb/config/events.d/10.interface

index e24cc36a164151ed9bd9e3c1f8afde8fffb3ed09..cf109f3ef8af5beca3be096e57c6fb959c0d845b 100755 (executable)
@@ -137,6 +137,7 @@ case "$1" in
                sed -e "s/^[^\t ]*[\t ]*//" -e "s/[\t ]*$//"`
 
        [ "$CTDB_PUBLIC_INTERFACE" ] && INTERFACES="$CTDB_PUBLIC_INTERFACE $INTERFACES"
+       [ "$CTDB_NATGW_PUBLIC_IFACE" ] && INTERFACES="$CTDB_NATGW_PUBLIC_IFACE $INTERFACES"
 
        INTERFACES=`for IFACE in $INTERFACES ; do echo $IFACE ; done | sort | uniq`