Fix LUInstanceRecreateDisks with iallocator
authorIustin Pop <iustin@google.com>
Mon, 24 Dec 2012 22:16:05 +0000 (23:16 +0100)
committerIustin Pop <iustin@google.com>
Thu, 27 Dec 2012 13:33:22 +0000 (14:33 +0100)
commit8775e62a57db6173f7f69a9d3d5945e3d81bf4ab
treeb2215f490ea17d7be9756baa94b5c0afcc5298f1
parent8775b5b20cfd0cecfda6495722342b865d843c0c
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: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py