[SCM] CTDB repository - branch master updated - ctdb-1.12-103-g0037395

Ronnie Sahlberg sahlberg at samba.org
Sun Dec 18 17:31:05 MST 2011


The branch, master has been updated
       via  00373958a5d5fb8c9b99548d5b9f327e78669162 (commit)
      from  3f471da605b9c43d5e1206452f238c2a91dc02f7 (commit)

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


- Log -----------------------------------------------------------------
commit 00373958a5d5fb8c9b99548d5b9f327e78669162
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Nov 21 14:15:01 2011 +1100

    Tests: eventscripts - add tests for CTDB_DELETE_UNEXPECTED_IPS="yes"
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

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

Summary of changes:
 .../simple/10.interface.monitor.014.sh             |   16 ++++++++++++++
 .../simple/10.interface.monitor.015.sh             |   22 ++++++++++++++++++++
 2 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100755 tests/eventscripts/simple/10.interface.monitor.014.sh
 create mode 100755 tests/eventscripts/simple/10.interface.monitor.015.sh


Changeset truncated at 500 lines:

diff --git a/tests/eventscripts/simple/10.interface.monitor.014.sh b/tests/eventscripts/simple/10.interface.monitor.014.sh
new file mode 100755
index 0000000..97cf253
--- /dev/null
+++ b/tests/eventscripts/simple/10.interface.monitor.014.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+. "${EVENTSCRIPTS_TESTS_DIR}/common.sh"
+
+define_test "spurious addresses on interface, no action"
+
+setup_ctdb
+
+iface=$(ctdb_get_1_interface)
+
+ip addr add 192.168.253.253/24 dev $iface
+ip addr add 192.168.254.254/24 dev $iface
+
+ok_null
+
+simple_test
diff --git a/tests/eventscripts/simple/10.interface.monitor.015.sh b/tests/eventscripts/simple/10.interface.monitor.015.sh
new file mode 100755
index 0000000..88ce593
--- /dev/null
+++ b/tests/eventscripts/simple/10.interface.monitor.015.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+. "${EVENTSCRIPTS_TESTS_DIR}/common.sh"
+
+define_test "spurious addresses on interface, delete them"
+
+setup_ctdb
+
+iface=$(ctdb_get_1_interface)
+
+ip addr add 192.168.253.253/24 dev $iface
+ip addr add 192.168.254.254/24 dev $iface
+
+export CTDB_DELETE_UNEXPECTED_IPS="yes"
+
+ok <<EOF
+WARNING: Removing unmanaged IP address 192.168.253.253/24 from interface dev123
+re-adding secondary address 192.168.254.254/24 to dev dev123
+WARNING: Removing unmanaged IP address 192.168.254.254/24 from interface dev123
+EOF
+
+simple_test


-- 
CTDB repository


More information about the samba-cvs mailing list