Statistics
| Branch: | Tag: | Revision:

root @ 8e8cf324

Name Size
  autotools
  daemons
  devel
  doc
  lib
  man
  qa
  src
  test
  tools
.ghci 21 Bytes
.gitignore 2.6 kB
COPYING 17.6 kB
INSTALL 11.3 kB
Makefile.am 75 kB
NEWS 129.4 kB
README 191 Bytes
UPGRADE 12.4 kB
autogen.sh 283 Bytes
configure.ac 23.4 kB
epydoc.conf.in 444 Bytes
pylintrc 2.9 kB
pylintrc-test 2.9 kB

Latest revisions

# Date Author Comment
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 <>

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 <>

8533cd2d 02/19/2014 12:36 pm Ilias Tsitsimpis

Fix '_create_instance' in config_unittest

Previously '_create_instance' would initialize the config object every
time it would be called. This causes '_WriteConfig' to fail with
ConfigurationError: The configuration file has been modified since the
last write. Fix this by passing the config object to '_create_instance'...

5b798711 02/19/2014 12:36 pm Ilias Tsitsimpis

Change TestInstance in objects unittest

Now that 'all_nodes' and 'secondary_nodes' of an instnace is computed
from the 'config' module, move the corresponding tests from
'objects_unittest' to 'config_unittest'.

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 all revisions | View revisions

Also available in: Atom