diff --git a/lib/locking.py b/lib/locking.py
index 09c0b4ad2777f433ce86ad5c88d51ccd436828bf..ec7180a21f4dc426f91e53859532d7015f014748 100644
--- a/lib/locking.py
+++ b/lib/locking.py
@@ -1496,8 +1496,8 @@ class LockSet:
# Once the set of acquired locks for an opcode has been reduced to the working
# set, the NAL should be released as well to allow allocations to proceed.
(LEVEL_CLUSTER,
- LEVEL_NODE_ALLOC,
LEVEL_INSTANCE,
+ LEVEL_NODE_ALLOC,
LEVEL_NODEGROUP,
LEVEL_NODE,
LEVEL_NODE_RES,
@@ -1505,8 +1505,8 @@ class LockSet:
LEVELS = [
LEVEL_CLUSTER,
- LEVEL_NODE_ALLOC,
LEVEL_INSTANCE,
+ LEVEL_NODE_ALLOC,
LEVEL_NODEGROUP,
LEVEL_NODE,
LEVEL_NODE_RES,
@@ -1526,11 +1526,11 @@ LEVELS_MOD = frozenset([
LEVEL_NAMES = {
LEVEL_CLUSTER: "cluster",
LEVEL_INSTANCE: "instance",
+ LEVEL_NODE_ALLOC: "node-alloc",
LEVEL_NODEGROUP: "nodegroup",
LEVEL_NODE: "node",
LEVEL_NODE_RES: "node-res",
LEVEL_NETWORK: "network",
- LEVEL_NODE_ALLOC: "node-alloc",
}
# Constant for the big ganeti lock