[Pkg-ganeti-devel] [ganeti] 126/165: Allow unconditional failovers off offline nodes, again
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Tue Aug 11 13:53:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository ganeti.
commit bd4045591601cb98436ca42f37127687a3a0c121
Author: Klaus Aehlig <aehlig at google.com>
Date: Tue Jun 2 12:31:22 2015 +0200
Allow unconditional failovers off offline nodes, again
Merge c2607a60 dropped the fix of 4ca31587 instead of following
the code move of applyMoveEx. So re-add that patch at the new
location of applyMoveEx.
Signed-off-by: Klaus Aehlig <aehlig at google.com>
Reviewed-by: Petr Pudlak <pudlak at google.com>
---
src/Ganeti/HTools/Cluster/Moves.hs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Ganeti/HTools/Cluster/Moves.hs b/src/Ganeti/HTools/Cluster/Moves.hs
index bbaf44f..8f18019 100644
--- a/src/Ganeti/HTools/Cluster/Moves.hs
+++ b/src/Ganeti/HTools/Cluster/Moves.hs
@@ -80,7 +80,8 @@ applyMoveEx force nl inst Failover =
new_nl = do -- OpResult
Node.checkMigration old_p old_s
new_p <- Node.addPriEx (Node.offline old_p || force) int_s inst
- new_s <- Node.addSec int_p inst old_sdx
+ new_s <- Node.addSecExEx (Node.offline old_p) (Node.offline old_p)
+ int_p inst old_sdx
let new_inst = Instance.setBoth inst old_sdx old_pdx
return (Container.addTwo old_pdx new_s old_sdx new_p nl,
new_inst, old_sdx, old_pdx)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git
More information about the Pkg-ganeti-devel
mailing list