Support construction of the graph of all reboot constraints
authorKlaus Aehlig <aehlig@google.com>
Tue, 7 May 2013 12:51:48 +0000 (14:51 +0200)
committerKlaus Aehlig <aehlig@google.com>
Fri, 10 May 2013 10:55:17 +0000 (12:55 +0200)
commit30fded871f2ceda62196b1c71fc3537f77391b15
tree994035e24b974e94079e7592f77c4b2bbfd254c6
parent2207220d953ae6a8b7b8bca00cbc1f95e69086d5
Support construction of the graph of all reboot constraints

For online rolling reboots, there are two kind of restrictions. First,
we cannot reboot the primary and secondary nodes of an instance
together. Secondly, two nodes cannot be rebooted simultaneously, if
they are the primary nodes of two instances with the same secondary
node. The second condition requires knowledge of all nodes, not only
those the graph is to be constructed on.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
src/Ganeti/HTools/Node.hs