Soften the requirements for hooks execution
authorIustin Pop <iustin@google.com>
Fri, 9 Nov 2007 20:13:33 +0000 (20:13 +0000)
committerIustin Pop <iustin@google.com>
Fri, 9 Nov 2007 20:13:33 +0000 (20:13 +0000)
commit2395c32265fcffe7e78ed2e4e8ed91e2b2dc108b
treeb184beb48cac390ddcbe4b0a77fdb55e3bade132
parentc8a0948f2e864c310a6e2a52c03fd8df4033237a
Soften the requirements for hooks execution

Currently, an unreachable node (or one that return undetermined failure)
in the hooks pre-phase will abort the curren operation. This is not
good, as a down node could prevent many operation on the cluster.

This patch changes a RPC-level failure (and not a hook execution
failure) into a warning. It also modifies the related test cases.

This fixes issue 11.

Reviewed-by: ultrotter
doc/hooks.sgml
lib/mcpu.py
test/ganeti.hooks_unittest.py
test/mocks.py