Statistics
| Branch: | Tag: | Revision:

root / lib @ 9bf5e01f

Name Size
  build
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
__init__.py 820 Bytes
asyncnotifier.py 5.1 kB
backend.py 98.3 kB
bdev.py 63.6 kB
bootstrap.py 22.7 kB
cli.py 75.5 kB
cmdlib.py 353.1 kB
compat.py 3.5 kB
config.py 48.2 kB
constants.py 27 kB
daemon.py 18.6 kB
errors.py 8.7 kB
jqueue.py 45.8 kB
jstore.py 3.6 kB
locking.py 39.9 kB
luxi.py 13.3 kB
mcpu.py 20.2 kB
objects.py 34 kB
opcodes.py 20.5 kB
rpc.py 41.6 kB
serializer.py 4.5 kB
ssconf.py 14.1 kB
ssh.py 7.9 kB
storage.py 12.5 kB
uidpool.py 11.8 kB
utils.py 104.9 kB
workerpool.py 9.5 kB

Latest revisions

# Date Author Comment
9bf5e01f 06/28/2010 02:04 pm Guido Trotter

_OpExecCallbacks abstract _AppendFeedback

Move some code to a decorated function rather than explicitely
acquiring/releasing the lock in AppendFeedback.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

41a26b68 06/28/2010 02:04 pm Guido Trotter

Remove utils.LockedMethod

All users of this function were converted to another method, hence we
can remove it.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

99bd4f0a 06/28/2010 02:04 pm Guido Trotter

jqueue: convert to a SharedLock()

Remove the jqueue _lock member and convert to a _big_jqueue_lock
sharedlock. This allows smooth transition from the old single lock to a
more granular approach.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

39ed3a98 06/28/2010 02:04 pm Guido Trotter

MarkUnfinishedOps: update job file on disk

Every time we call MarkUnfinishedOps we do it in a try/finally block
that updates the job file. With this patch we move the try/finally
inside. CancelJobUnlocked is removed, because it just becomes a wrapper
over MarkUnfinishedOps with two constant values....

a1bfdeb1 06/28/2010 02:04 pm Guido Trotter

Remove spurious empty line

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

403f5172 06/28/2010 02:04 pm Guido Trotter

Remove pred from compat.any/all

This makes it compatible with the python builtin, and we can even use
the builtin when running under the right version of python. The all and
any functions are renamed to _all and _any, so that they can be tested,
and (non)existing unittests are updated (translation: there are no unit...

72db3fd7 06/28/2010 01:46 pm Iustin Pop

Two more fixes for OS params and opcode defaults

If the OS is not using API v20, the parameter verification should be
entirely skipped.

The second change is a simple typo.

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

40684c3a 06/25/2010 06:36 pm Iustin Pop

Fix breakage due to OS parameters

I was using wrong python installation path (thanks Guido!), so I was not
actually testing the new backend.py module. Two immediate things bugs
are fixed, and after these burnin passes again…

Signed-off-by: Iustin Pop <>...

3b08cd1c 06/24/2010 01:56 pm Apollon Oikonomopoulos

Introduce constants.DTS_MAY_ADOPT

DTS_MAY_ADOPT include disk templates that may use disk adoption and will be
used in all respective checks.

Signed-off-by: Apollon Oikonomopoulos <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

f8f590c8 06/24/2010 01:46 pm Guido Trotter

Convert TestDelay repeat to the type system

Turns out with the current implementation of the type system a variable
can both be required and not required. Interesting (but perhaps worth a
further look).

Signed-off-by: Guido Trotter <>...

View revisions

Also available in: Atom