Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / Locking @ 1310339c

Name Size
Allocation.hs 15.8 kB
Locks.hs 5.3 kB
Types.hs 1.5 kB

Latest revisions

# Date Author Comment
1310339c 03/11/2014 03:28 pm Klaus Aehlig

Fix allocation order of locks

The correct allocation order for node-related Ganeti locks is
allocation, group, the node itself, resources.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

2754dc7d 03/11/2014 03:28 pm Klaus Aehlig

Allow transitions from sets to elements

Owning a set-lock has the same effect as owning each member. So asking
for a member while already holding the set lock in the same mode (shared
or exclusive) is, effectively, no asking for new locks. Therefore, do not...

a55a40d6 03/11/2014 03:28 pm Klaus Aehlig

Fix typo

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

26436ab5 03/06/2014 05:35 pm Klaus Aehlig

Add a function to determine the lock owners

To allow for clean up, add a function that provides the list
of all the owners holding at least one lock.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

61fd6337 03/04/2014 05:03 pm Klaus Aehlig

Provide an asynchronous task for writing lock status

It will be used to persist the state of the lock allocation on
disk, allowing locks to survive reboots of WConfD.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

ec2355ad 03/04/2014 02:27 pm Klaus Aehlig

Add Ganeti Lock Hierarchy

Make Ganeti.Locking.Locks.GanetiLocks present the full Ganeti
lock hierarchy. This is in accordance with the current Python
implementation.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>...

79786c6b 03/04/2014 02:26 pm Klaus Aehlig

Serialize locks as JSON strings

...as the current Python implementation does as well.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

e1e36b88 02/27/2014 04:33 pm Klaus Aehlig

Locks are owned by job id file path pairs

...according to our updated design.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

c8751a72 02/26/2014 06:23 pm Klaus Aehlig

Add a function to load lock allocation from disk

Lock allocation are stored on disk as their JSON representation.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

15a53b1e 02/26/2014 06:23 pm Klaus Aehlig

Make Locks a JSON instance

As requests to acquire or release locks come via
inter-process communication, we need a serialization
of the locks data type.

All locks are serialised as JSON objects, where the
key "type" describes the type of lock, and the remaining...

View revisions

Also available in: Atom