Testing: IP allocation simulation - save some warnings for verbose mode.
authorMartin Schwenke <martin@meltin.net>
Sun, 1 Aug 2010 01:41:52 +0000 (11:41 +1000)
committerMartin Schwenke <martin@meltin.net>
Sun, 1 Aug 2010 01:41:52 +0000 (11:41 +1000)
We don't need to see warnings about unallocatable IPs unless we're in
verbose mode.  Can node be run with -n (and without -v or -d) to see
just the statistics.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/takeover/ctdb_takeover.py

index f24940ce70c64cc6a648c5c2e7b62740c4795314..ce9cc115e6a4ca7f4b3384335d60b2ec8125b832 100755 (executable)
@@ -301,7 +301,7 @@ class Cluster(object):
                     min = num
 
         if pnn == -1:
-            print "Could not find node to take over public address", ip
+            verbose_print("Could not find node to take over public address %s" % ip)
             return False
 
         self.nodes[pnn].current_addresses.add(ip)
@@ -331,7 +331,7 @@ class Cluster(object):
                     min = num
 
         if pnn == -1:
-            print "Could not find node to take over public address", ip
+            verbose_print("Could not find node to take over public address %s" % ip)
             return False
 
         self.nodes[pnn].current_addresses.add(ip)