Send required_nodes field to the iallocator scripts
authorIustin Pop <iustin@google.com>
Wed, 23 Apr 2008 11:02:44 +0000 (11:02 +0000)
committerIustin Pop <iustin@google.com>
Wed, 23 Apr 2008 11:02:44 +0000 (11:02 +0000)
commit60cec4d6f2bbb0a4cebc6699931981ae0cefb313
treeb389f97e39aee7032feeb93cea83398362ad2e72
parent036b441d76759989fe2424c5f8a1eaa20f083449
Send required_nodes field to the iallocator scripts

This patch adds the 'required_nodes' field in the request dict for the
iallocator.

This means that the handmade-checks in the create instance can be
simplified, and that the dumb allocator can be made simple. Therefore
the patch also modifies it.

The patch also sends the disk_space_total to the script in realocate
mode and a small fix for showing errors (include stderr too).

Reviewed-by: ultrotter
doc/examples/dumb-allocator
lib/cmdlib.py