IAllocator part 3: LUCreateInstance changes
authorIustin Pop <iustin@google.com>
Wed, 16 Apr 2008 13:17:30 +0000 (13:17 +0000)
committerIustin Pop <iustin@google.com>
Wed, 16 Apr 2008 13:17:30 +0000 (13:17 +0000)
commit28219356b4a7b656cc8d95ad6595eeca863fe1ff
tree81da68b3ca4ceaa8caa95e9d0160307427dc045b
parentf82ade3ad3fc4ea4de67011422a7c8ee07b24e62
IAllocator part 3: LUCreateInstance changes

This (final) patch allows the instance's nodes to be selected
automatically based on the passed allocator algorithm.

The patch changes the pnode opcode parameter from required to optional,
now either the pnode or the iallocator must be passed.

A possible improvement could be to organize all the _IAllocator
functions into a separate class, but that can come later and the current
version is functionally ok.

Reviewed-by: ultrotter
doc/examples/dumb-allocator
lib/cmdlib.py
lib/opcodes.py
scripts/gnt-backup
scripts/gnt-instance