Statistics
| Branch: | Tag: | Revision:

root / lib @ 5d97d6dd

Name Size
  build
  confd
  http
  hypervisor
  masterd
  rapi
__init__.py 820 Bytes
asyncnotifier.py 1.9 kB
backend.py 97.7 kB
bdev.py 63.5 kB
bootstrap.py 22.9 kB
cli.py 71.7 kB
cmdlib.py 341.9 kB
compat.py 2.4 kB
config.py 48.2 kB
constants.py 23.9 kB
daemon.py 11.8 kB
errors.py 8.8 kB
jqueue.py 41.7 kB
jstore.py 3.8 kB
locking.py 40.3 kB
luxi.py 12.8 kB
mcpu.py 20.2 kB
objects.py 31.2 kB
opcodes.py 19.2 kB
rpc.py 38.5 kB
serializer.py 4.6 kB
ssconf.py 14.7 kB
ssh.py 8 kB
storage.py 12.5 kB
uidpool.py 11.6 kB
utils.py 90 kB
workerpool.py 8.9 kB

Latest revisions

# Date Author Comment
5d97d6dd 04/23/2010 05:50 pm Michael Hanselmann

cmdlib: Add utility to transfer instance data within the cluster

This is yet another wrapper around the instance import/export utility
classes, providing an even simpler API for instance imports/exports within
the same cluster.

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

033a1d00 04/23/2010 05:50 pm Michael Hanselmann

cmdlib: Add utility for instance data import/export

Interpreting the backend's import/export daemon status is a bit tricky.
This utility code keeps track of multiple transfers at the same time.
Users can supply callback functions to react to events.

Timeouts are currently hardcoded. Intra-cluster instance moves will likely...

6b92f2af 04/22/2010 07:12 pm Michael Hanselmann

Merge branch 'devel-2.1'

  • devel-2.1:
    Add a basic unittest for uidpool.RequestUnusedUid
    Factorize LUExportInstance
    Use ints instead of strings to represent user-ids
    QA: fix reimporting instance with different name
    Fix broken commit 9e302a8
    ssh: make quiet configurable...
e311ed53 04/22/2010 05:55 pm Michael Hanselmann

Factorize LUExportInstance

Apart from moving parts of the code to separate functions, error handling
is also improved by making sure snapshots are always removed.

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

c7e4b037 04/22/2010 04:20 pm Balazs Lecz

Use ints instead of strings to represent user-ids

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

37549316 04/22/2010 03:16 pm Michael Hanselmann

Complete what was begun in commit ef40fbfb4

The X509 certificate RPC functions were also renamed, but I
forgot to rename them in rpc.py. Fortunately they aren't used
yet.

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

f81c4737 04/22/2010 02:35 pm Michael Hanselmann

Add RPC call to send SIGTERM to import/export daemon

This will be used to stop the daemon without doing complete cleanup (yet).

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

ef40fbfb 04/22/2010 02:35 pm Michael Hanselmann

Rename import/export RPC calls to match others

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

14b3f969 04/22/2010 02:32 pm Iustin Pop

Fix broken commit 9e302a8

Commit 9e302a8 split the StopInstance function in two without properly
duplicating the local variables.

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

2892a4c9 04/22/2010 02:32 pm Iustin Pop

ssh: make quiet configurable

Currently both CopyFileToNode and BuildCmd hardcode "-q" in the options.
This patch moves this setting as a configurable option to
_BuildSshOptions.

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

View revisions

Also available in: Atom