diff --git a/lib/cmdlib.py b/lib/cmdlib.py index eabd8eb583b329bf2f708261506586d094c24828..e1c575c4cfa65138656e44e02e5b30a8b3c88a6d 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -57,6 +57,7 @@ class LogicalUnit(object): - optionally redefine their run requirements: REQ_MASTER: the LU needs to run on the master node REQ_WSSTORE: the LU needs a writable SimpleStore + REQ_BGL: the LU needs to hold the Big Ganeti Lock exclusively Note that all commands require root permissions. @@ -66,6 +67,7 @@ class LogicalUnit(object): _OP_REQP = [] REQ_MASTER = True REQ_WSSTORE = False + REQ_BGL = True def __init__(self, processor, op, cfg, sstore): """Constructor for LogicalUnit.