From 1eab9c898c6bd2176d142c24dca7e38b7427a504 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 27 May 2013 12:56:41 +1000 Subject: eventscripts: Stop NAT gateway's delete_all() from polluting the log Every time a node that wasn't the NAT gateway master gets reconfigured something like this appears in the log: ctdbd: 11.natgw: Failed to del 10.0.1.139 on dev eth1 Since this usually fails it is better to mute the error than to have it pollute the log. Signed-off-by: Martin Schwenke (This used to be ctdb commit 0ca7a98ffef50cbd06849cfbf65fb4a3d668b7bd) --- ctdb/config/events.d/11.natgw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/config/events.d/11.natgw b/ctdb/config/events.d/11.natgw index c6c45cabf9..9faba8087d 100755 --- a/ctdb/config/events.d/11.natgw +++ b/ctdb/config/events.d/11.natgw @@ -28,7 +28,7 @@ delete_all() { _maskbits="${CTDB_NATGW_PUBLIC_IP#*/}" [ -z "$CTDB_NATGW_PUBLIC_IFACE" ] || { - delete_ip_from_iface $CTDB_NATGW_PUBLIC_IFACE $_ip $_maskbits 2>/dev/null + delete_ip_from_iface $CTDB_NATGW_PUBLIC_IFACE $_ip $_maskbits >/dev/null 2>&1 } ip route del 0.0.0.0/0 metric 10 >/dev/null 2>/dev/null -- cgit