[SCM] CTDB repository - branch 1.0.112 updated - ctdb-1.0.111-69-g906e892

Ronnie Sahlberg sahlberg at samba.org
Tue Apr 27 16:52:13 MDT 2010


The branch, 1.0.112 has been updated
       via  906e892e1d0c646e01bceddf42ca5df005b42f20 (commit)
      from  c07cd2cb042d62ee4adcfa1b75dd423424ca681b (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=1.0.112


- Log -----------------------------------------------------------------
commit 906e892e1d0c646e01bceddf42ca5df005b42f20
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Apr 28 08:46:41 2010 +1000

    If the admin makes a configuration mistake and configures NATGW to use the
    same ip address as a normal public-address,
    check for this in the natgw script and warn the user.
    
    Also prevent ctdb from starting up since this configuration will not work.
    
    BZ60933

-----------------------------------------------------------------------

Summary of changes:
 config/events.d/11.natgw |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/events.d/11.natgw b/config/events.d/11.natgw
index ce1becc..3c2836b 100644
--- a/config/events.d/11.natgw
+++ b/config/events.d/11.natgw
@@ -24,6 +24,15 @@ delete_all() {
 
 case "$1" in 
     startup)
+	[ -z "$CTDB_PUBLIC_ADDRESSES" ] && {
+		CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
+	}
+	egrep "^$CTDB_NATGW_PUBLIC_IP[ \t]" $CTDB_PUBLIC_ADDRESSES >/dev/null
+	[ "$?" = "0" ] && {
+		echo ERROR: NATGW configured to use a public address. NATGW must not use a public address.
+		exit 1
+	}
+
 	# do not respond to ARPs that are for ip addresses with scope 'host'
 	echo 3 > /proc/sys/net/ipv4/conf/all/arp_ignore
 	# do not send out arp requests from loopback addresses


-- 
CTDB repository


More information about the samba-cvs mailing list