Statistics
| Branch: | Tag: | Revision:

root / lib @ a38e8674

Name Size
  build
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
__init__.py 820 Bytes
asyncnotifier.py 5.1 kB
backend.py 97.8 kB
bdev.py 66.7 kB
bootstrap.py 26.3 kB
cli.py 80.4 kB
cmdlib.py 366.3 kB
compat.py 3.7 kB
config.py 53.8 kB
constants.py 29.2 kB
daemon.py 21.4 kB
errors.py 9.3 kB
jqueue.py 57.1 kB
jstore.py 3.7 kB
locking.py 48.7 kB
luxi.py 13.7 kB
mcpu.py 18.3 kB
netutils.py 13.6 kB
objects.py 36.9 kB
opcodes.py 21.2 kB
rpc.py 44.5 kB
runtime.py 3.3 kB
serializer.py 4.5 kB
ssconf.py 14.9 kB
ssh.py 8.6 kB
storage.py 12.5 kB
uidpool.py 11.8 kB
utils.py 102.3 kB
workerpool.py 13.3 kB

Latest revisions

# Date Author Comment
a38e8674 09/24/2010 07:21 pm Michael Hanselmann

Fix docstring typo in jqueue._JobProcessor._MarkWaitlock

epydoc complained:
“File …/ganeti/jqueue.py, line 886, in
ganeti.jqueue._JobProcessor._MarkWaitlock
Warning: Redefinition of type for job”

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

f23db633 09/24/2010 06:18 pm Michael Hanselmann

jqueue: Use priority for acquiring locks

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

f879a9c7 09/24/2010 06:18 pm Michael Hanselmann

mcpu: Implement priority for lock acquiring

Until now the priority for lock acquires couldn't be passed
when running opcodes.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

b30d95b6 09/24/2010 06:18 pm Michael Hanselmann

locking: Implement priority in Ganeti lock manager

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

7100c2fa 09/24/2010 06:18 pm Michael Hanselmann

locking: Don't set default priority as keyword default

This allows users of these classes to simply pass None if they want to use the
default value (the actual default is an internal constant), instead of
dynamically constructing the keyword arguments.

Signed-off-by: Michael Hanselmann <>...

26d3fd2f 09/24/2010 06:18 pm Michael Hanselmann

jqueue: Use timeout when acquiring locks

As already noted in the design document, an opcode's priority is
increased when the lock(s) can't be acquired within a certain amount of
time, except at the highest priority, where in such a case a blocking
acquire is used....

673cd9c4 09/23/2010 04:52 pm René Nussbaumer

Migrate call from backend._GetVGInfo to bdev.LogicalVolume.GetVGInfo

This patch removes duplicate code found in backend which also needs to
get VG infos. To make it simpler we moved to bdev.LogicalVolume.GetVGInfo.

Signed-off-by: René Nussbaumer <>...

b80cc518 09/23/2010 04:06 pm Michael Hanselmann

jqueue: Introduce per-opcode context object

This is better to group per-opcode data.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

a7770f03 09/23/2010 04:06 pm Michael Hanselmann

mcpu: Adjust lock acquire strategy

The changes to job queue processing require some changes on this class'
interface. LockAttemptTimeoutStrategy might move to another place, but that'll
be done in a later patch.

Signed-off-by: Michael Hanselmann <>...

831bbbc1 09/23/2010 04:06 pm Michael Hanselmann

mcpu.Processor: Raise exception on lock acquire timeout

Right now the timeout is not passed by any caller, making the code
effectively go back to blocking acquires. Since the timeout is always
None, no caller needs to be changed in this patch.

This change also means that any LUXI query handled by ganeti-masterd...

View revisions

Also available in: Atom