Statistics
| Branch: | Tag: | Revision:

root / lib @ bb3011ad

Name Size
  build
  client
  cmdlib
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  rpc
  server
  storage
  tools
  utils
  watcher
__init__.py 1.2 kB
_constants.py.in 285 Bytes
asyncnotifier.py 6.1 kB
backend.py 145.9 kB
bootstrap.py 41.6 kB
cli.py 141 kB
compat.py 4.3 kB
config.py 107.5 kB
constants.py 2.9 kB
daemon.py 28.1 kB
errors.py 10.9 kB
hooksmaster.py 9.6 kB
ht.py 17.5 kB
jqueue.py 75.5 kB
jstore.py 6.1 kB
locking.py 60.9 kB
luxi.py 8.1 kB
mcpu.py 18.3 kB
netutils.py 19.7 kB
network.py 7.7 kB
objects.py 68.1 kB
opcodes.py.in_after 391 Bytes
opcodes.py.in_before 6.9 kB
opcodes_base.py 7.7 kB
outils.py 4.3 kB
ovf.py 66 kB
pathutils.py 6.3 kB
qlang.py 9.5 kB
query.py 86.3 kB
rpc_defs.py 26.3 kB
runtime.py 8 kB
serializer.py 10.7 kB
ssconf.py 13.5 kB
ssh.py 10.7 kB
uidpool.py 11.7 kB
vcluster.py 7.5 kB
wconfd.py 1.4 kB
workerpool.py 18.3 kB

Latest revisions

# Date Author Comment
bb3011ad 02/19/2014 03:18 pm Ilias Tsitsimpis

Python: Lift disk objects

b6dd32db 02/19/2014 12:36 pm Ilias Tsitsimpis

Get MapLVsByNode from config

Use 'GetInstanceLVsByNode' from config file instead of Instance's
MapLVsByNode method.

Signed-off-by: Ilias Tsitsimpis <>

af5dd836 02/19/2014 12:36 pm Ilias Tsitsimpis

Add methods to config to get disks

'GetInstanceDisks' returns a list of disk objects for the given
instance. 'GetDiskInfo' returns information about a disk given its uuid.
These functions should be used instead of the Instance's disk method.

Also add the 'getDisk' and 'getInstDisks' functions in Haskell but leave...

cae20ea0 02/19/2014 12:36 pm Ilias Tsitsimpis

Add a disk to an instance in config

Implement functions 'AddDisk' and 'AttachInstDisk'. The first one adds
a new disk to the config file and the second one attach a disk to an
instance. A wrapper 'AddInstDisk' is provided in order to add a disk and
attach it to an instance at once (because ganeti doesn't support...

2b941e94 02/19/2014 12:36 pm Ilias Tsitsimpis

Remove a disk from an instance in config

Implement functions 'RemoveDisk' and 'DettachInstDisk'. The first one
removes a disk from the config file and the second one dettaches a disk
from an instance. A wrapper 'RemoveInstDisk' is provied in order to
dettach a disk from an instance and remove it at once (since ganeti...

8e8cf324 02/19/2014 12:36 pm Ilias Tsitsimpis

Add 'disks_info' Instance slot

Instance's 'disks' slot will contain a list of disk uuids. Create a new
slot named 'disks_info' which will be annotated with the disk objects'
during the rpc.

Signed-off-by: Ilias Tsitsimpis <>

2f1c2fe6 02/19/2014 12:36 pm Ilias Tsitsimpis

Add 'GetInstanceNodes' to config

Get all disk-releated nodes for an instance.
Also use 'GetInstanceSecondaryNodes' to get the
list of secondary nodes.

Signed-off-by: Ilias Tsitsimpis <>

7abe5725 02/19/2014 12:36 pm Ilias Tsitsimpis

Add 'GetInstanceLVsByNode' to config

Provide a mapping of node to LVs a given instance owns.

Signed-off-by: Ilias Tsitsimpis <>

6ccce5d4 02/19/2014 12:36 pm Ilias Tsitsimpis

Get instance secondary nodes from config

Use 'GetInstanceSecondaryNodes' to get the secondary nodes of an
instance, instead of the 'secondary_nodes'.
Annotate 'secondary_nodes' in rpc so that backend has access to it.

Signed-off-by: Ilias Tsitsimpis <>

4e7f986e 02/19/2014 12:36 pm Ilias Tsitsimpis

Get instance's nodes from config

Use 'GetInstanceNodes' to get the nodes of an instance, instead of the
'all_nodes' Instance property.

Signed-off-by: Ilias Tsitsimpis <>

View revisions

Also available in: Atom