Commit cf8adf26 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno
Browse files

Fix missing locks in InstanceRecreateDisks



In case of in-place recreate-disks operation, all node locks were released
before starting the actual execution.
Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 29386d3e
......@@ -7277,10 +7277,9 @@ class LUInstanceRecreateDisks(LogicalUnit):
 
if self.op.iallocator:
self._RunAllocator()
# Release unneeded node and node resource locks
_ReleaseLocks(self, locking.LEVEL_NODE, keep=self.op.nodes)
_ReleaseLocks(self, locking.LEVEL_NODE_RES, keep=self.op.nodes)
# Release unneeded node and node resource locks
_ReleaseLocks(self, locking.LEVEL_NODE, keep=self.op.nodes)
_ReleaseLocks(self, locking.LEVEL_NODE_RES, keep=self.op.nodes)
 
def Exec(self, feedback_fn):
"""Recreate the disks.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment