Merge branch 'stable-2.12' into stable-2.13
[ganeti-github.git] / lib / cmdlib / instance.py
index 7ce4dd9..e6c5866 100644 (file)
@@ -4358,7 +4358,7 @@ class LUInstanceChangeGroup(LogicalUnit):
         self._LockInstancesNodes()
 
         # Lock all nodes in all potential target groups
-        lock_groups = (frozenset(self.owned_locks(locking.LEVEL_NODEGROUP)) -
+        lock_groups = (frozenset(self.owned_locks(locking.LEVEL_NODEGROUP)) |
                        self.cfg.GetInstanceNodeGroups(self.op.instance_uuid))
         member_nodes = [node_uuid
                         for group in lock_groups