Skip to content
Snippets Groups Projects
Commit de5967da authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUInstanceChangeGroup: Acquire node allocation lock


Changing instances' groups shouldn't conflict with instance allocations.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent a0150c51
No related branches found
No related tags found
No related merge requests found
......@@ -13710,9 +13710,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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment