Fix redistribution of files w.r.t. offline nodes
authorIustin Pop <iustin@google.com>
Wed, 4 Jul 2012 15:41:01 +0000 (17:41 +0200)
committerIustin Pop <iustin@google.com>
Thu, 5 Jul 2012 08:41:16 +0000 (10:41 +0200)
commitcc706abc57d97c02e9cf128dbf67ca605b295551
tree62bf002d09c763ad879e9402c8e8ab6c55aedbde
parent770461fe2510494677a8f5b68120de7807c1f0e1
Fix redistribution of files w.r.t. offline nodes

Currently, _RedistributeAncillaryFiles computes two lists: the list of
online nodes (for all files redistribution), and the list of
vm_capable nodes, for hypervisor-specific files. However, the
vm_capable list includes offline nodes too, leading to warning
messages:

  WARNING: Copy of file /etc/xen/xend-config.sxp to node node13.example.com failed: Node is marked offline

We fix this by trivially intersecting the vm_capable list with the
online one.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/cmdlib.py