Revision 48aaca91
b/lib/locking.py | ||
---|---|---|
1496 | 1496 |
# Once the set of acquired locks for an opcode has been reduced to the working |
1497 | 1497 |
# set, the NAL should be released as well to allow allocations to proceed. |
1498 | 1498 |
(LEVEL_CLUSTER, |
1499 |
LEVEL_NODE_ALLOC, |
|
1500 | 1499 |
LEVEL_INSTANCE, |
1500 |
LEVEL_NODE_ALLOC, |
|
1501 | 1501 |
LEVEL_NODEGROUP, |
1502 | 1502 |
LEVEL_NODE, |
1503 | 1503 |
LEVEL_NODE_RES, |
... | ... | |
1505 | 1505 |
|
1506 | 1506 |
LEVELS = [ |
1507 | 1507 |
LEVEL_CLUSTER, |
1508 |
LEVEL_NODE_ALLOC, |
|
1509 | 1508 |
LEVEL_INSTANCE, |
1509 |
LEVEL_NODE_ALLOC, |
|
1510 | 1510 |
LEVEL_NODEGROUP, |
1511 | 1511 |
LEVEL_NODE, |
1512 | 1512 |
LEVEL_NODE_RES, |
... | ... | |
1526 | 1526 |
LEVEL_NAMES = { |
1527 | 1527 |
LEVEL_CLUSTER: "cluster", |
1528 | 1528 |
LEVEL_INSTANCE: "instance", |
1529 |
LEVEL_NODE_ALLOC: "node-alloc", |
|
1529 | 1530 |
LEVEL_NODEGROUP: "nodegroup", |
1530 | 1531 |
LEVEL_NODE: "node", |
1531 | 1532 |
LEVEL_NODE_RES: "node-res", |
1532 | 1533 |
LEVEL_NETWORK: "network", |
1533 |
LEVEL_NODE_ALLOC: "node-alloc", |
|
1534 | 1534 |
} |
1535 | 1535 |
|
1536 | 1536 |
# Constant for the big ganeti lock |
Also available in: Unified diff