Fix setting of 'failN1' flag for corner case
authorHelga Velroyen <helgav@google.com>
Mon, 22 Oct 2012 09:19:48 +0000 (11:19 +0200)
committerIustin Pop <iustin@google.com>
Mon, 22 Oct 2012 09:31:40 +0000 (11:31 +0200)
commit77ffd6633718014c3ced954ac5c49e28d98f1b33
tree8bed0b42edda3b2850a12c0f3f7c07693bc2c578
parentdd77da99042407249f3133b2d18222fa018820c9
Fix setting of 'failN1' flag for corner case

This patch includes:

* The 'failN1' flag is now only set if there is strictly less
  memory available than required for failover.
* Unit tests for that.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
htest/Test/Ganeti/HTools/Node.hs
htools/Ganeti/HTools/Node.hs