Statistics
| Branch: | Tag: | Revision:

root / lib @ 7548396c

Name Size
  build
  confd
  http
  hypervisor
  rapi
__init__.py 820 Bytes
asyncnotifier.py 1.9 kB
backend.py 87.8 kB
bdev.py 63.5 kB
bootstrap.py 23.2 kB
cli.py 70.2 kB
cmdlib.py 338.5 kB
config.py 48.2 kB
constants.py 23.1 kB
daemon.py 11.1 kB
errors.py 8.8 kB
jqueue.py 41.7 kB
jstore.py 3.8 kB
locking.py 40.3 kB
luxi.py 11.4 kB
mcpu.py 20.2 kB
objects.py 31 kB
opcodes.py 19.2 kB
rpc.py 35.2 kB
serializer.py 4.6 kB
ssconf.py 14.7 kB
ssh.py 7.8 kB
storage.py 12.5 kB
uidpool.py 11.1 kB
utils.py 79.3 kB
workerpool.py 8.9 kB

Latest revisions

# Date Author Comment
7548396c 04/20/2010 06:45 pm Guido Trotter

KVM: add an instance uid file concept

If this file exists, for an instance, we release the uid contained
inside back to the uid pool, at instance shutdown.

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

ff20190d 04/20/2010 06:45 pm Guido Trotter

ReleaseUid: accept an integer as uid

We can't guarantee to keep the LockedObject around, when ReleaseUid is
called (because that might happen, for example, after a ganeti
shutdown/restart). So we'll support releasing on just an integer uid.

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

14850c5e 04/20/2010 06:45 pm Guido Trotter

LockedUid: add GetUid() method

uidpool users that get passed a LockedUid by the uidpool need to know
which one the uid is. Since it's not nice to make them access a private
member, and we shouldn't make "uid" public either, we'll add a getter
method.

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

8904b35c 04/20/2010 06:45 pm Guido Trotter

KVM: move post-shutdown cleanup operations

Currently putting the cleanup just after the actual shutdown ensures
that it never gets called, due to how the retry/shutdown cycle works.
So we move those cleanups to their new dedicated place.

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

f28ec899 04/20/2010 01:24 pm Guido Trotter

Add CleanupInstance hypervisor call

Currently some hypervisors (namely kvm) need to do some cleanup after
making sure an instance is stopped. With the moving of the retry cycle
in backend those cleanups were never done. In order to solve this we add
a new optional hypervisor function, CleanupInstance, which gets called...

9f3ac970 04/20/2010 12:25 pm Iustin Pop

Fix changing the list of enabled hypervisors

When enabling a new hypervisor, we must ensure that we have its
parameters in the cluster (global) hvparams dictionary.

Furthermore, we add a verify check for this case (this should be better
replaced with an auto-fix?)....

bb579a7d 04/20/2010 12:11 pm René Nussbaumer

Fix heading to the one of epydoc

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

d3b790bb 04/19/2010 03:32 pm Balazs Lecz

Fix a couple of pydoc syntax problems

Signed-off-by: Balazs Lecz <>
Reviewed-by: Michael Hanselmann <>

1513e2dd 04/16/2010 05:13 pm Iustin Pop

Readd node: allow changed primary IP

The primary IP is not used for DRBD disks, only for the job queue and
internal commands. As such, it's trivial (with a quiet job queue) to
re-ip the node.

The patch just relaxes the checks in LUAddNode, and manual testing shows...

5833b7e6 04/16/2010 04:11 pm Balazs Lecz

Add ExecuteWithUnusedUid() to uidpool.py

Signed-off-by: Balazs Lecz <>
Reviewed-by: Guido Trotter <>

View revisions

Also available in: Atom