Changing instances' groups shouldn't conflict with instance allocations.
---
 lib/cmdlib.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index c783206..0a033b8 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -13694,9 +13694,11 @@ class LUInstanceChangeGroup(LogicalUnit):
 
   def ExpandNames(self):
     self.share_locks = _ShareAll()
+
     self.needed_locks = {
       locking.LEVEL_NODEGROUP: [],
       locking.LEVEL_NODE: [],
+      locking.LEVEL_NODE_ALLOC: locking.ALL_SET,
       }
 
     self._ExpandAndLockInstance()
-- 
1.7.7.3

Reply via email to