Statistics
| Branch: | Tag: | Revision:

root / lib @ 5823e0d2

Name Size
  build
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
__init__.py 820 Bytes
asyncnotifier.py 5.1 kB
backend.py 98.9 kB
bdev.py 64.9 kB
bootstrap.py 24.7 kB
cli.py 78.2 kB
cmdlib.py 364.7 kB
compat.py 3.7 kB
config.py 49.2 kB
constants.py 28.3 kB
daemon.py 21.2 kB
errors.py 8.9 kB
jqueue.py 47.7 kB
jstore.py 3.6 kB
locking.py 41.1 kB
luxi.py 13.5 kB
mcpu.py 20.2 kB
netutils.py 8.5 kB
objects.py 35.7 kB
opcodes.py 20.9 kB
rpc.py 43.2 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 102.1 kB
workerpool.py 9.9 kB

Latest revisions

# Date Author Comment
c1cf1fe5 07/29/2010 04:05 pm Michael Hanselmann

workerpool: Add two additional assertions

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

b2e8a4d9 07/29/2010 04:05 pm Michael Hanselmann

workerpool: Change signature of AddTask function to not use *args

By changing it to a normal parameter, which must be a sequence, we can
start using keyword parameters.

Before this patch all arguments to “AddTask(self, *args)” were passed as
arguments to the worker's “RunTask” method. Priorities, which should be...

5823e0d2 07/29/2010 04:05 pm Michael Hanselmann

RAPI: Support migrating instances

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

21c5ad52 07/29/2010 04:05 pm Michael Hanselmann

workerpool: Move waiting for new tasks for a worker to the pool

This way fewer private variables of the pool are accesssed by the worker.

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

ccedb11b 07/29/2010 04:05 pm Michael Hanselmann

workerpool: Remove unused worker method

HasRunningTask is never used except for an assertion, where we
don't really need the lock.

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

2f4e1516 07/29/2010 04:05 pm Michael Hanselmann

workerpool: Additional check in BaseWorker.ShouldTerminate

Document that it should only be called from within RunTask and
add an assertion for this. This means we can no longer use a
method on the pool and hence remove WorkerPool.ShouldWorkerTerminate.

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

189d2714 07/29/2010 04:05 pm Michael Hanselmann

workerpool: Use common function to add tasks

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

c28502b1 07/28/2010 11:37 pm Iustin Pop

Rename masterfailover to master-failover

Most (all?) of our commands use dash-separator: replace-disks,
verify-disks, add-tags, etc. “gnt-cluster masterfailover” is an old
exception to this rule.

The patch replaces it with master-failover, add a compatiblity alias,...

130f0966 07/28/2010 11:27 pm Iustin Pop

RAPI: Add os params to instance creation v1

Since the RAPI QA suite doesn't seem to offer easy testing of failed
creations, I didn't add this to the QA. Pointers on how to do it are
welcome.

The patch also changes the 'os' argument to be required, since that is...

91c622a8 07/28/2010 11:19 pm Iustin Pop

Improve handling of lost jobs

Currently, if the cli.JobExecutor class is being used, and one of the
jobs is being archived before it can check its result, it will raise a
stracktrace as _ChooseJob is not prepared to handle this case.

This case makes JobExecutor work better with lost jobs (it still reports...

View revisions

Also available in: Atom