Allow gnt-node evacuate to use an iallocator
authorIustin Pop <iustin@google.com>
Tue, 3 Feb 2009 14:45:53 +0000 (14:45 +0000)
committerIustin Pop <iustin@google.com>
Tue, 3 Feb 2009 14:45:53 +0000 (14:45 +0000)
commitc4ed32cb662cf0437124568ccb7596846542d661
treefc992b7ccbb1125636cc071efaa3702463094f33
parent40ef0ed6a630ac33a70dd02c8d5eeb666afd9849
Allow gnt-node evacuate to use an iallocator

This is a partial implementation of fully automated node evacuation:
we allow passing an iallocator and all instance replace-disks will be
execute via that iallocator.

The individual OpReplaceDisks opcodes are submitted in a single job,
which causes them to be executed serially and thus keeps the iallocator
runs consistent. This also changes the behaviour so that the first
reallocation that failed will stop all the reallocations.

Reviewed-by: ultrotter
scripts/gnt-node