ctdb-tests: Change "ctdb ip -n all" to "ctdb ip all"
authorMartin Schwenke <martin@meltin.net>
Tue, 20 Oct 2015 01:28:16 +0000 (12:28 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 23 Oct 2015 01:43:26 +0000 (03:43 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/complex/18_ctdb_reloadips.sh
ctdb/tests/scripts/integration.bash
ctdb/tests/simple/11_ctdb_ip.sh
ctdb/tests/simple/20_delip_iface_gc.sh

index 71f997cda56c0b43d220ed98cf04b936d81a7c5f..9a408353901048fb383a29b1a4a154de2602b037 100755 (executable)
@@ -46,11 +46,11 @@ select_test_node_and_ips
 # The initial search is for a 10.B.0.0/16 network since some
 # configurations may use a whole class B for the private network.
 # Check that there are no public IP addresses (as reported by "ctdb ip
-# -n -all") or other IP addresses (as reported by "ip addr show") with
+# all") or other IP addresses (as reported by "ip addr show") with
 # the provided prefix.  Note that this is an IPv4-specific test.
 
 echo "Getting public IP information from CTDB..."
-try_command_on_node any "$CTDB ip -X -v -n all"
+try_command_on_node any "$CTDB ip -X -v all"
 ctdb_ip_info=$(echo "$out" | awk -F'|' 'NR > 1 { print $2, $3, $5 }')
 
 echo "Getting IP information from interfaces..."
@@ -70,7 +70,7 @@ for b in $(seq 0 255) ; do
        fi
     done <<<"$ip_addr_info"
 
-    # Does the prefix match any public IP address "ctdb ip -n all"?
+    # Does the prefix match any public IP address "ctdb ip all"?
     while read ip pnn iface ; do
        if [ "${ip#${prefix}.}" != "$ip" ] ; then
            prefix=""
index a4d1de6408547f188d55dd5fb84e2ae99ba461e4..e3fb3d4e1c748a360a14d46e7e99a70e6400eed1 100644 (file)
@@ -169,7 +169,7 @@ all_ips_on_node()
 _select_test_node_and_ips ()
 {
     try_command_on_node any \
-       "$CTDB ip -X -n all | awk -F'|' 'NR > 1 { print \$2, \$3 }'"
+       "$CTDB ip -X all | awk -F'|' 'NR > 1 { print \$2, \$3 }'"
 
     test_node=""  # this matches no PNN
     test_node_ips=""
index 0e02b5e8171496aaedf698abaa6bb47d1a00b83e..8bca2c608c5f2d577052c5033a7c0f7b4e32306e 100755 (executable)
@@ -32,7 +32,7 @@ set -e
 cluster_is_healthy
 
 echo "Getting list of public IPs..."
-try_command_on_node -v 1 "$CTDB ip -n all | tail -n +2"
+try_command_on_node -v 1 "$CTDB ip all | tail -n +2"
 ips=$(echo "$out" | sed \
        -e 's@ node\[@ @' \
        -e 's@\].*$@@')
@@ -55,7 +55,7 @@ fi
 
 [ "$testfailures" != 1 ] && echo "Looks good!"
 
-cmd="$CTDB -X ip -n all | tail -n +2"
+cmd="$CTDB -X ip all | tail -n +2"
 echo "Checking that \"$cmd\" produces expected output..."
 
 try_command_on_node 1 "$cmd"
index 83de49595abaf5880e652f0488a7a169e9c085cc..23d1d6babfde81a50711cfff1b843c89c9b06719 100755 (executable)
@@ -19,7 +19,7 @@ cluster_is_healthy
 ctdb_restart_when_done
 
 echo "Getting public IPs information..."
-try_command_on_node -v any "$CTDB ip -v -n all -X | tail -n +2"
+try_command_on_node -v any "$CTDB ip -v all -X | tail -n +2"
 ip_info="$out"
 
 # Select the first node and find out its interfaces