eventscripts: A missing interface should cause monitoring to fail
authorMartin Schwenke <martin@meltin.net>
Tue, 16 Jul 2013 09:31:05 +0000 (19:31 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 16 Jul 2013 09:32:38 +0000 (19:32 +1000)
commitd973a575eb619c0cad139ae9c22d7d1770dc3666
tree63c3a0c8e929e6181a5da873e5a854130ca12e32
parentdc84c8ed12ed1bf136827b55128c2e74b38bdf55
eventscripts: A missing interface should cause monitoring to fail

A missing interface is at least as bad as an interface with a link
that is down so should have a similar effect.

This couldn't be done previously because orphaned interfaces used to
be listed for monitoring.  This was worked around in 10.interface in
commit a5b8e2c1ec1b4fd7ef25e70a919ef4c70f3e1c75.

If $CTDB_PARTIALLY_ONLINE_INTERFACES="yes" then monitoring won't
actually fail but the interface is still marked as down.

This effectively reverts d40330453854d81d182112b49f5f6f2e0814b231 and
89547a1910fd74f98ae9d5737914328eb5cc3eaf.  However, it heeds the
warning in the commit message for latter by avoiding an early exit.
it just flags a failure and marks the interfaces as down in ctdbd.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/events.d/10.interface