hail: add an extra safety check in relocate
authorIustin Pop <iustin@google.com>
Wed, 14 Sep 2011 10:43:38 +0000 (12:43 +0200)
committerIustin Pop <iustin@google.com>
Wed, 14 Sep 2011 14:42:26 +0000 (16:42 +0200)
commitf25508bef4e85032f0468e5a6f0f8930ff154e66
treeae81bf2963832323e0d331c1f43438e1c260418c
parent6f4a2e9d8d60f31a5327716194dea0979d430ce7
hail: add an extra safety check in relocate

If we select the primary as new secondary, better to fail than return
wrong data to Ganeti.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htools/Ganeti/HTools/IAlloc.hs