Commit c50452c3 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUNodeEvacuate: Disallow migrating all instances at once

There is a design issue in the iallocator interface which prevents us
from doing this.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 50722bfd
......@@ -10148,6 +10148,14 @@ class LUNodeEvacuate(NoHooksLU):
# All instances
assert self.op.mode == constants.IALLOCATOR_NEVAC_ALL
# TODO: In 2.6, change the iallocator interface to take an evacuation mode
# per instance
raise errors.OpPrereqError("Due to an issue with the iallocator"
" interface it is not possible to evacuate"
" all instances at once; specify explicitly"
" whether to evacuate primary or secondary"
" instances",
inst_fn = _GetNodeInstances
return inst_fn(self.cfg, self.op.node_name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment