Instances can only be allocated on nodes where both locks
are held, the one for the node and the one for the node resources.
Therefore, only ask for those node resource locks, where
the node lock is held.

Also, make sure that allocation for a restricted set of nodes
is handled correctly in corner cases and improve logging
at debug level.

Klaus Aehlig (3):
  Log considered nodes in allocator run
  Fix allocator call with empty whitelist
  In opportunistic locking, update NODE_RES locks after nodes

 lib/cmdlib/instance_create.py | 7 +++++++
 lib/masterd/iallocator.py     | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.2.0.rc0.207.ga3a616c

Reply via email to