Watcher: Fix endless repair tries for broken secondary
authorRené Nussbaumer <rn@google.com>
Thu, 27 Jan 2011 09:22:50 +0000 (10:22 +0100)
committerRené Nussbaumer <rn@google.com>
Thu, 27 Jan 2011 11:01:13 +0000 (12:01 +0100)
commit83e5e26fc452df8b6c4622d807e3007aa4a60f5a
tree86984b6b405d24ba39312292303a1b1d9b2075c3
parent397693d324502596c287010f3bd50c27f9358687
Watcher: Fix endless repair tries for broken secondary

In cases where secondary was offline and not evacuated watcher tried
to activate-disks in an endless manner, but this is useless, as the
secondary is offline and therefore not responding to this approach.

This patch skips activation of the disk if the secondary is bad but
instance up and running.

Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/watcher/__init__.py