Eventscripts - weaken TCP port check message if CTDB has just been started.
authorMartin Schwenke <martin@meltin.net>
Fri, 5 Aug 2011 06:39:57 +0000 (16:39 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 8 Aug 2011 22:00:06 +0000 (08:00 +1000)
commitfd3aeab959c866a1fd321a453164287cb42d758b
tree1cfc97b6a2943979fc1b99fc66e6fa3f647be64e
parent8ec198b2fd2d33420714a154af99417c31cb6a9c
Eventscripts - weaken TCP port check message if CTDB has just been started.

Sometimes smbd and other services can take a while to start,
especially when there is a lot of activity after ctdbd has just
started.  The TCP port check can then pollute the logs with lots of
"ERROR" messages and possibly extra debug.

This creates a flag file when a service is started (but not restarted)
and this flag is removed the first time that TCP port checks succeed
for that service.  When a port check fails and the flag file still
exists, a less extreme "INFO" message is printed rather than the usual
"ERROR" message.  This means that until the node actually becomes
healthy we see more friendly messages.

The subtext is that we're hearing false positive reports "recreates"
of CQ S1024874 (samba stopped responding on port 445) quite often when
ctdbd is started.  This reduces the chances of people reporting such
false recreates...

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/functions