Add _CheckIAllocatorOrNode for common iallocator/node checks
authorApollon Oikonomopoulos <apollon@noc.grnet.gr>
Thu, 8 Jul 2010 12:03:58 +0000 (15:03 +0300)
committerIustin Pop <iustin@google.com>
Thu, 8 Jul 2010 13:45:14 +0000 (15:45 +0200)
commitb6dd40f59821b4e3e686f3c30f35be4e41a1a84d
tree35ffe36d6e13c460f3c8fbbca2e5d8ffc41ecc2e
parent92be702108d7b93cd26ff75d05a7420fda6b4855
Add _CheckIAllocatorOrNode for common iallocator/node checks

_CheckIAllocatorOrNode will be called by LUs wishing to use an instance
allocator or a target node. It performs sanity checks and will modify the LU's
opcode's iallocator slot to use the cluster-wide allocator if
appropriate.

Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py