projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a81075b
)
LUInstanceRecreateDisks: Actually acquire node resource locks
author
Michael Hanselmann
<hansmi@google.com>
Fri, 20 Jan 2012 19:16:20 +0000
(20:16 +0100)
committer
Michael Hanselmann
<hansmi@google.com>
Mon, 23 Jan 2012 11:37:42 +0000
(12:37 +0100)
Before this change an assertion would fail as the resource locks weren't
actually acquired.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py
patch
|
blob
|
history
diff --git
a/lib/cmdlib.py
b/lib/cmdlib.py
index
a11762d
..
bd9aef5
100644
(file)
--- a/
lib/cmdlib.py
+++ b/
lib/cmdlib.py
@@
-6863,6
+6863,7
@@
class LUInstanceRecreateDisks(LogicalUnit):
self.needed_locks[locking.LEVEL_NODE] = list(self.op.nodes)
else:
self.needed_locks[locking.LEVEL_NODE] = []
+ self.needed_locks[locking.LEVEL_NODE_RES] = []
def DeclareLocks(self, level):
if level == locking.LEVEL_NODE: