From 50761ebd2d83899546825693b8537b3bad48f7a9 Mon Sep 17 00:00:00 2001 From: Constantinos Venetsanopoulos <cven@grnet.gr> Date: Wed, 11 Jan 2012 17:03:18 +0200 Subject: [PATCH] Fix acquisition of node lock in LUInstanceGrowDisk Ensure node level locks are recalculated properly in LUInstanceGrowDisk. Signed-off-by: Constantinos Venetsanopoulos <cven@grnet.gr> Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/cmdlib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 3e86e480d..6f900435d 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -11242,6 +11242,7 @@ class LUInstanceGrowDisk(LogicalUnit): self._ExpandAndLockInstance() self.needed_locks[locking.LEVEL_NODE] = [] self.needed_locks[locking.LEVEL_NODE_RES] = [] + self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_REPLACE self.recalculate_locks[locking.LEVEL_NODE_RES] = constants.LOCKS_REPLACE def DeclareLocks(self, level): -- GitLab