Add support for vm_capable in cluster verify
authorIustin Pop <iustin@google.com>
Wed, 27 Oct 2010 14:12:01 +0000 (16:12 +0200)
committerIustin Pop <iustin@google.com>
Thu, 28 Oct 2010 11:51:07 +0000 (13:51 +0200)
commit8964ee14e1dc2c6747de044f726a7fa971260a9c
tree2f7f09eae6e2dff0f2c4fb8945f648c6c58d371a
parent53919782a684d95456d72496f98010e4b2663313
Add support for vm_capable in cluster verify

The method to make vm_capable integrate easily into cluster verify is as follows:

- we add a new NV_VMNODES that represents *non*-vm-capable nodes
- the LU populates this list (it's expected that non-vm_capable nodes
  are few compared to vm_capable nodes)
- backend skips the checks that are related to VM hosting
- in the LU, we reorder the VM-related checks so that they occur after
  the non-VM (generic) tests, and we only execute them conditionally

Additionally, we add some support to the instance checks to detect
instances living on bad nodes.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/backend.py
lib/cmdlib.py
lib/constants.py