Commit 8775e62a authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix LUInstanceRecreateDisks with iallocator

Recent iallocator changes (commit fb60bc6a

, “iallocator: Add node
whitelist”) broke the parameter validation for LUInstanceRecreateDisks
(the other LUs were manually fixed already):

  $ gnt-instance recreate-disks -I hail --dry-run instance3
  Failure: prerequisites not met for this operation:
  error type: wrong_input, error details:
  Request is missing 'node_whitelist' parameter

By just defining the new parameter, the LU works normally (“INFO:
Selected nodes for instance instance3 via iallocator hail: node2”).
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarGuido Trotter <>
parent 8775b5b2
......@@ -7540,7 +7540,8 @@ class LUInstanceRecreateDisks(LogicalUnit):
disks=[{constants.IDISK_SIZE: d.size,
constants.IDISK_MODE: d.mode}
for d in self.instance.disks],
ial = iallocator.IAllocator(self.cfg, self.rpc, req)
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