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, 26 Oct 2011 09:59:04 +0000 (11:59 +0200)
commite0baa26f300c3609cccba52bd8f8a41e72e64581
treef9a172b09f57c1c8ddec72dbbab7da9ff1155bd1
parentf39d39b62da5ff68dc7e84f02ed6584feb47e5ac
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>
(cherry picked from commit f25508bef4e85032f0468e5a6f0f8930ff154e66)

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
htools/Ganeti/HTools/IAlloc.hs