IAllocator: fix breakage for non-vm_capable nodes
authorIustin Pop <iustin@google.com>
Fri, 7 Jan 2011 11:24:48 +0000 (12:24 +0100)
committerIustin Pop <iustin@google.com>
Mon, 10 Jan 2011 09:47:15 +0000 (10:47 +0100)
commita1cef11c375122520bf9be0f5df75d0bea3d3851
tree82011e28ed8c021776d8d3cd93e7e84152ef9486
parentabd42b0ad14450ba20597f8d55d0ab9f2bd9bba8
IAllocator: fix breakage for non-vm_capable nodes

Currently, the IAllocator doesn't know that non-vm_capable nodes
should not be queried for hypervisor/instance information.

This patch updates the node data computation to generate basic info,
but not the runtime data for such nodes. Furthermore, the
documentation is updated to note that such nodes will node have
runtime data.

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