Statistics
| Branch: | Tag: | Revision:

root / test / py @ 3087e906

# Date Author Comment
3087e906 06/02/2014 03:39 pm Jose A. Lopes

Add helper function to generate disk labels

... which converts decimal numbers into '/dev/sda', '/dev/sdb', etc.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

e7ec2f27 05/30/2014 03:41 pm Klaus Aehlig

Remove Ganeti Lock Manager and Monitor

...from the jobs code, as this functionality is now
carried out by wconfd. Also remove dead code resulting
from this removal.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

7e39b007 05/29/2014 12:23 pm Petr Pudlak

Add the old DRBD secrets reservation code to mocked config

.. so that the unit tests work without the presence of WConfd.

Also fix mocked GenerateMAC, which used _temporary_ids by mistake in the
original ConfigWriter.

Signed-off-by: Petr Pudlak <>...

1d425eb9 05/26/2014 03:58 pm Petr Pudlak

Add the old MAC reservation code to ConfigMock

.. so that unit tests work without the presence of WConfd..

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

36b6d149 05/22/2014 02:18 pm Thomas Thrainer

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    (no commits)
  • stable-2.10
    tiered allocation: try canonical search path first
    Add QA config flag for all performance tests
    build-bash-completion: reduce branches
    Convert all the classes to new-style classes...
98da4d04 05/22/2014 01:58 pm Thomas Thrainer

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    tiered allocation: try canonical search path first
    Add QA config flag for all performance tests
    build-bash-completion: reduce branches
    Convert all the classes to new-style classes

Signed-off-by: Thomas Thrainer <>...

876fb142 05/22/2014 11:13 am Helga Velroyen

Convert all the classes to new-style classes

... to make lint shut up.

Signed-off-by: Helga Velroyen <>
Reviewed-by: Jose Lopes <>

38bbeb5f 05/14/2014 12:18 pm Jose A. Lopes

Fix unit tests

Fix unit tests according to changes to the instance class.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

e78b63ed 05/14/2014 12:16 pm Jose A. Lopes

Add 'install_image' param to 'Cluster'

The 'Cluster.install_image' param holds the location of the image to
be used for the safe installation instances.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

321a794c 05/13/2014 09:00 pm Klaus Aehlig

Don't test for ganeti-masterd to exist

...it has just been removed for good.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Hrvoje Ribicic <>

da5d043d 05/13/2014 09:00 pm Klaus Aehlig

Fix hard-coded list of daemons in test

The reality is, that masterd is gone now, so there is
no point in testing that daemon-utils knows about it.
In fact, it would be a bug if daemon-util would mention
it.

Signed-off-by: Klaus Aehlig <>...

5c1974ba 05/13/2014 11:36 am Hrvoje Ribicic

Add tests for compression tool misuse

This patch extends opcode tests for both unacceptable tools, and the
use of tools which are not on the compression_tools parameter list.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

14a31771 05/13/2014 11:36 am Hrvoje Ribicic

Forbid the compression tools from being set over RAPI

Although we impose restrictions on what can be input as a compression
tool, someone with RAPI credentials could choose and execute a number
of commands by first setting the custom tools and then executing them....

fe71113e 05/13/2014 11:36 am Hrvoje Ribicic

Add the compression tools parameter

This patch makes the myriad of changes necessary for the compression
tool parameter to be added. The filtering of compression tools for
suspicious entries has been added for this exact purpose.

Signed-off-by: Hrvoje Ribicic <>...

293e1c1d 05/13/2014 11:36 am Hrvoje Ribicic

Make arbitrary compression tools work

We assume that the compression tools the user supplies use stdin and
stdout for handling data, and that a switch is used to distinguish
compression from decompression. This patch introduces these constraints
by adding the invocation of these tools to the import-export daemon....

8677c3a9 05/13/2014 11:36 am Hrvoje Ribicic

Extend offered compression types

This patch adds a few new types of compression supported by Ganeti:
gzip-fast (gzip -1), gzip-slow (ordinary gzip), and lzop. gzip now
becomes a shorthand for gzip-fast kept for compatibility.

Signed-off-by: Hrvoje Ribicic <>...

821dbb5f 05/13/2014 11:36 am Hrvoje Ribicic

Extend tests in preparation for new compression types

To ensure that later modifications are also noted in tests, this patch
updates the test to account for all compression types known.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

be7ea029 05/12/2014 04:06 pm Petr Pudlak

Remove the unit test for verifying node's DRBD reservations

We'll need to reconstruct a similar test later when we add functions for
manipulating the configuration directly to WConfd.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

560c03ed 05/12/2014 04:06 pm Petr Pudlak

Fix the mocked ConfigWriter to pass DRBD minors methods

.. since for unit tests, we don't have access to WConfd, which now
implements the functionality.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

3648dad3 05/09/2014 03:05 pm Klaus Aehlig

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    Add hsqueeze to NEWS
    kvm: use a dedicated QMP socket for kvmd
    Add design-node-security.rst to docinput
  • stable-2.10
    Test parallel instance ops and plain instances
    Test parallel creation of DRBD instances...
866e1f76 05/09/2014 02:01 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Test parallel instance ops and plain instances
    Test parallel creation of DRBD instances
    Test parallel job submission performance
    Test parallel instance query operations
    Test parallel instance operations...
2ebdbcd9 05/05/2014 02:22 pm Ilias Tsitsimpis

Upgrade config to support top-level citizen disks

Implement upgrade/downgrade of the config file to support disks as
top-level citizens. During downgrade, disks that are not attached to any
instance will be removed from config file.

Signed-off-by: Ilias Tsitsimpis <>...

6426ace9 05/05/2014 02:22 pm Jose A. Lopes

Eliminate local variable

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

9a8f9634 05/05/2014 02:22 pm Ilias Tsitsimpis

Fix the broken unittests

Fix the unittest that have been broken when we lifted the Disk objects
from the Instances.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

e9ebf2d7 05/05/2014 02:22 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 <>
Reviewed-by: Jose A. Lopes <>

921fd285 05/05/2014 02:22 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 <>
Reviewed-by: Jose A. Lopes <>

45c044f4 05/05/2014 02:22 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 <>...

ad8076ee 05/05/2014 02:22 pm Ilias Tsitsimpis

Change TestInstance in objects unittest

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

Signed-off-by: Ilias Tsitsimpis <>...

18544dc0 05/05/2014 02:22 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'...

09104704 05/05/2014 02:22 pm Ilias Tsitsimpis

Add timestamp/serial_no slot to disk objects

Now that disks are top level citizens in config,
they need a timestamp and a serial_no slot.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

2d9828b3 04/29/2014 03:55 pm Apollon Oikonomopoulos

Add systemd unittests

Test the consistency between daemon-util and the systemd unit files:

- Each service started/stopped by daemon-util must have a respective
unit file.
- The daemon user/group in the service file must be the same as the
one reported by daemon-util....
59ab1599 04/29/2014 03:13 pm Klaus Aehlig

Add a test for parsing version strings

...even in the presence of patch levels.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

5676ffd5 04/28/2014 03:31 pm Klaus Aehlig

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    Avoid assertIn
    Be more explicit about the scope of gnt-cluster upgrade

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Hrvoje Ribicic <>

2e925e4b 04/28/2014 03:22 pm Klaus Aehlig

Avoid assertIn

...as it is only present in python version 2.7 and higher.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

d2c7fbcc 04/28/2014 12:28 pm Klaus Aehlig

Remove left-over debug code

This also avoids writing to hard-coded paths under /tmp

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Helga Velroyen <>

324cd7bf 04/28/2014 12:10 pm Apollon Oikonomopoulos

daemon-util: support for daemons loaded on demand

We add a second category of daemons in daemon-util, those that are
started on demand and should not be started by the start_all action, but
should be stopped during service shutdown. This category currently...

d6f38e24 04/25/2014 06:38 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Make GlusterFS tests dual-stack-aware
    Moving release date of 2.11.0 to 25th of April
    Revision bump for 2.11.0
    Prepare NEWS file for release of 2.11.0
    Fix Xen instance state
  • stable-2.10
    Fix failed DRBD disk creation cleanup...
ae9408a5 04/25/2014 05:39 pm Apollon Oikonomopoulos

Make GlusterFS tests dual-stack-aware

Resolving "localhost" may either return "127.0.0.1" or "::1",
so we have to check for both cases in the relevant tests.

Signed-off-by: Apollon Oikonomopoulos <>
Signed-off-by: Klaus Aehlig <>...

8fd6c773 04/24/2014 02:11 pm Klaus Aehlig

Add a new node parameter cpu_speed

This parameter will describe the speed of the CPU relative
to the speed of a "normal" node in this node group.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

86836968 04/11/2014 07:23 pm Hrvoje Ribicic

Add tests for RAPI forbidden parameters

This patch introduces a number of tests ensuring that forbidden
parameters cannot be used. This is done by introducing a fake opcode
and a fake RAPI handler for it. Forbidden parameters, specific
forbidden values, and renamings to forbidden parameters were all...

54352d1e 04/11/2014 07:23 pm Hrvoje Ribicic

Minor preparations for forbidden params in RAPI handlers

This patch prepares the way for defining forbidden parameters in RAPI
handler classes as is done with renames and the like. No implementation
of the logic is present here, just the expansion of expected...

14047f60 04/11/2014 07:23 pm Hrvoje Ribicic

Make RAPI opcode attributes use a class and not a tuple

The tuple approach to storing opcode attributes might have worked when
there were four possible modifiers per method, but with aliases this
number has been pushed to five, and with forbidden parameters it will...

319b7012 04/11/2014 12:10 pm Hrvoje Ribicic

Refactor rlib2 unit tests

This huge patch removes a lot of cruft that has been accumulated in the
rlib2 test file. A new class, RAPITestCase, provides a common base for
all the tests and unifies checks that were repeated on a per-test-case
basis.

Signed-off-by: Hrvoje Ribicic <>...

dd6514c9 04/10/2014 04:03 pm Hrvoje Ribicic

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Revision bump for 2.10.3
    Update NEWS file for 2.10.3
    Warn in UPGRADE about not tar'ing exported insts
    Fix non-running test and remove custom_nicparams rename
    Acccount for NODE_RES lock in opportunistic locking...
7ddbfbaa 04/10/2014 02:57 pm Hrvoje Ribicic

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Revision bump for 2.10.3
    Update NEWS file for 2.10.3
    Warn in UPGRADE about not tar'ing exported insts
    Fix non-running test and remove custom_nicparams rename
    Acccount for NODE_RES lock in opportunistic locking...
bd9ef845 04/10/2014 12:20 pm Hrvoje Ribicic

Fix non-running test and remove custom_nicparams rename

Due to a missing base class, the test that was supposed to check if
RAPI instance parameter renames during modifications are working did
not execute. As the instances are not covered by the QA tests, the...

55e711aa 04/09/2014 10:05 am Apollon Oikonomopoulos

QMP: make QmpConnection act as a context manager

This will allow automatic connection and socket cleanup on command
completion.

We also repeat the Qmp tests using the context manager. For this to be
feasible, we move the test scenario to class variables and modify...

0894ac48 04/08/2014 03:34 pm Hrvoje Ribicic

Add the zeroing-image option

This patch adds the zeroing-image option to gnt-cluster and the
OpBackupExport params. The many changes are all minor, yet necessary.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Jose A. Lopes <>

24d3d8da 04/08/2014 12:15 pm Apollon Oikonomopoulos

QMP: always return the command result

According to the QEMU Machine Protocol Specification, the messages sent
by QMP as a response to a command can be of two types: either an error
message (identified by the "error" key), or a success message
(identified by the "return" key)....

5d94ddf6 04/08/2014 12:15 pm Apollon Oikonomopoulos

QMP: test supported_commands

Add test for supported_commands.

Signed-off-by: Apollon Oikonomopoulos <>
Signed-off-by: Thomas Thrainer <>
Reviewed-by: Thomas Thrainer <>

5f2d6a8f 04/07/2014 12:48 pm Apollon Oikonomopoulos

KVM: move tap control functions to a submodule

Move all tap-related functionality to the hv_kvm.netdev submodule. We
rename _OpenTap to OpenTap, since it will now be used as a public
function.

Also, change the hv_kvm tests to import the new code.

Signed-off-by: Apollon Oikonomopoulos <>...

5abef1b1 04/02/2014 02:22 pm Jose A. Lopes

Update 'daemons/daemon-util' to stop 'ganeti-metad'

  • Add 'ganeti-metad' to list of daemons to stop
  • Update 'daemon-util' test

Note that 'ganeti-metad' is not automatically started together with
all the other daemons. Instead, 'ganeti-metad' is only started when...

8d2896f5 03/28/2014 11:28 am Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Fix specification of TIDiskParams
    Add unittests for instance modify parameter renaming
    Add renaming of instance custom params
    Add RAPI symmetry tests for groups
    Extend RAPI symmetry tests with RAPI-only aliases...
e69c93fb 03/27/2014 07:31 pm Hrvoje Ribicic

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Fix specification of TIDiskParams
    Add unittests for instance modify parameter renaming
    Add renaming of instance custom params
    Add RAPI symmetry tests for groups
    Extend RAPI symmetry tests with RAPI-only aliases...
7bb22823 03/27/2014 06:50 pm Hrvoje Ribicic

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    Fix failing gnt-node list-drbd command
  • stable-2.8
    Add reason parameter to RAPI client functions

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Klaus Aehlig <>
...

d65f3490 03/27/2014 06:15 pm Hrvoje Ribicic

Merge branch 'stable-2.8' into stable-2.9

  • stable-2.8
    Add reason parameter to RAPI client functions

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Klaus Aehlig <>

c026664a 03/27/2014 04:43 pm Petr Pudlak

Remove VerifyConfig tests

These tests don't work with WConfd, because the configuration is
verified automatically before each operation and it's not possible to
modify the configuration state directly.

It'll be necessary to re-create these tests for WConfd once...

85dbff19 03/27/2014 04:39 pm Petr Pudlak

Update ConfigWriter test for _UpgradeConfig

.. to work with the updated version.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

cf100b2e 03/27/2014 04:39 pm Petr Pudlak

Remove desctructive ConfigWriter test

This test relies on bringing a configuration into an inconsistent state,
and doesn't work with WConfd any more.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

5dc66e15 03/27/2014 04:39 pm Petr Pudlak

Update ConfigWriter unit tests

This involves:

- Updating how a mocked configuration object is set up.
- Adding calls to refresh in-memory objects from the configuration
(because they're not shared any more).
- Adding calls to Update to save modified in-memory objects so that the...

a903ca89 03/26/2014 05:37 pm Hrvoje Ribicic

Add unittests for instance modify parameter renaming

The get/put QA test could be used for instances as well, but unlike
other objects, instances have a very large number of discrepancies and
missing fields. To avoid enumerating every discrepancy and testing...

4589d0e6 03/26/2014 05:37 pm Hrvoje Ribicic

Add test for group custom parameter renaming

This patch introduces a simple test checking if a custom_* parameter is
renamed and passed to the opcode correctly.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

13df0089 03/26/2014 05:37 pm Hrvoje Ribicic

Fix failing cluster query test

This patch makes a mock use a dictionary instead of an object, allowing
alias finding to work on it.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

286c0df2 03/26/2014 05:37 pm Hrvoje Ribicic

Add support for value aliases to RAPI

This patch extends the metaclass used to generate RAPI handlers to
allow creating aliases of certain values returned by GET methods.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

8ae4d0de 03/26/2014 05:16 pm Michele Tartara

Add reason parameter to RAPI client functions

Only the functions for starting, stopping and rebooting a VM had a reason
parameter. Now, all the RAPI client functions generating opcodes do.

Also, one test is expanded to verify that a RAPI request with both body and...

3d97b399 03/26/2014 11:35 am Petr Pudlak

Add a method for WConfd context to GanetiContextMock

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

cc0c1197 03/21/2014 05:19 pm Petr Pudlak

Move the test for adding/removing certs to config. tests

.. and update it to work with ConfigWriter instead of the 'security'
module.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Helga Velroyen <>

92aca8e1 03/21/2014 12:22 pm Dimitris Bliablias

Extend unittest for gnt-os info changes

Extend unit test ganeti.query_unittest.py, to correspond to the
changes made in the 'gnt-os info' output.

Signed-off-by: Dimitris Bliablias <>
Signed-off-by: Michele Tartara <>...

9c5c80a4 03/18/2014 03:30 pm Petr Pudlak

Fix WConfd mock client after updating the lock

.. because instead of a job ID and a lock file, we now pass a single,
client ID object.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Helga Velroyen <>

13c16b21 03/17/2014 04:07 pm Jose A. Lopes

Update tests after merging 'os_get' into 'os_validate'

... namely, unit tests and QA.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Petr Pudlak <>

87ed6b79 03/13/2014 02:49 pm Klaus Aehlig

Make mcpu acquire WConfD locks

So far, the mcpu acquires locks that live in memory
of masterd. This design does not fit with our jobs-as-processes
goal. So make mcpu acquire the corresponding locks in WConfD
instead.

Note that this implies changes in various other files that call...

69b139f6 03/13/2014 02:49 pm Klaus Aehlig

Add a mock for the wconfd module

As our so-called unit tests for the logical units are more
like integration tests, calling the actual LU through an almost
live mcpu, we need a quite involved "mock" for the wconfd module,
called indirectly through mcpu. The difficulties arise from the...

cb0269fb 03/13/2014 02:49 pm Klaus Aehlig

Add a mock version of livelocks

...as the will be used by mcpu for lock handling and that will
require tests to be adapted accordingly.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

1c4910f7 03/11/2014 05:09 pm Jose A. Lopes

OS images in 'LUInstanceCreate' and OS scripts optional

  • Use the empty string in 'ganeti.objects.Instance.os' to signify that
    the instance does not use OS scripts.
  • Make several calls related to OS scripts first test whether OS
    scripts are being used....
8436d0da 03/07/2014 08:54 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Revision bump for the 2.10.1 release
    Update NEWS file for 2.10.1
    Use node UUIDs for executing LU hook
    Add PreparePostHookNodes to LUs
    Fix error propagation in post-commit hooks...
205d3309 03/07/2014 08:33 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Revision bump for the 2.10.1 release
    Update NEWS file for 2.10.1
    Use node UUIDs for executing LU hook
    Add PreparePostHookNodes to LUs
    Fix error propagation in post-commit hooks
  • stable-2.9...
4cbe5138 03/07/2014 07:53 pm Klaus Aehlig

Merge branch 'stable-2.9' into stable-2.10

  • stable-2.9
    Fix error introduced during merge
    gnt-cluster copyfile: accept relative paths
  • stable-2.8
    Improve RAPI detection of the watcher
    Add patching QA configuration files on buildbots
    Enable a timeout for instance shutdown...
85530402 03/07/2014 07:07 pm Michele Tartara

Merge branch 'origin/stable-2.8' into stable-2.9

  • stable-2.8
    Improve RAPI detection of the watcher
    Add patching QA configuration files on buildbots
    Enable a timeout for instance shutdown
    Allow KVM commands to have a timeout
    Allow xen commands to have a timeout...
874f6148 03/07/2014 12:08 pm Michele Tartara

Enable a timeout for instance shutdown

Add the timeout parameter to the StopInstance function of the hypervisor base
class and to all its implementations.

Also, change the tests as required by this change.

Signed-off-by: Michele Tartara <>...

aa14fb0a 03/05/2014 11:21 am Hrvoje Ribicic

Fix failing tests

The previously introduced changes caused some tests to fail. This patch
alters the tests to expect different values, while still ensuring
correct behavior.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Petr Pudlak <>

47c43de1 03/05/2014 11:21 am Hrvoje Ribicic

Extend RAPI client constant unit test with error codes

The RAPI client is meant to be independent from the wider Ganeti
codebase, but it still needs to use Ganeti constants. To enforce this,
a unit test is used. This patch extends the unit test with error code...

ec3a7362 03/05/2014 10:58 am Jose A. Lopes

Remove duplicated '_CheckOSVariant'

It seems '_CheckOSVariant' was moved from 'ganeti.cmdlib.instance' to
'ganeti.cmdlib.instance_utils' but the source was never deleted. This
patch deletes the source copy if this function.

Signed-off-by: Jose A. Lopes <>...

ff1c051b 03/04/2014 11:41 am Thomas Thrainer

Use node UUIDs for executing LU hooks

LUNodeAdd, the only LU using a node name still, is changed to overwrite
PreparePostHookNodes() and use node UUIDs only as well.
This allows to remove the support for 3-tuples as results of
BuildHooksNodes() and removes the translation to node names....

71b770a9 02/28/2014 03:39 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Setting correct permissions of client cert (split-user)
    Add luxid group to 'users-setup'
    Add some whitespace to fix formatting
    Consider old client cert only when available
    Fix return of 'Validate'...
b4726cd7 02/28/2014 02:08 pm Dimitris Bliablias

Add unittest for gnt-cluster modify --mac-prefix

Add unittest for cluster mac-prefix modification support.

Signed-off-by: Dimitris Bliablias <>
Reviewed-by: Jose A. Lopes <>

b3724640 02/27/2014 05:11 pm Jose A. Lopes

Fix return of 'Validate'

  • fix return of 'Validate' in docstrings
  • fix all call sites
  • fix all tests

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Helga Velroyen <>

5fd32824 02/24/2014 05:44 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.10
    Let the instance's tuple of nodes start with the primary
    Fix the test that checks for the order of instance's nodes
    Revision bump for the 2.10.0 release
    Update NEWS file for 2.10.0
    Revision bump for 2.10.0~rc3...
ead368bb 02/24/2014 04:42 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Let the instance's tuple of nodes start with the primary
    Fix the test that checks for the order of instance's nodes
    Revision bump for the 2.10.0 release
    Update NEWS file for 2.10.0
  • stable-2.9...
93a968aa 02/24/2014 11:19 am Petr Pudlak

Fix the test that checks for the order of instance's nodes

The test checks if the first node in the tuple is the primary node, but
because it names the node so that it's the least one alphabetically, the
test always succeeds. This fixes the test.

Signed-off-by: Petr Pudlak <>...

a53772a0 02/14/2014 04:57 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    Update design doc wrt to improved SSL design
    Test node certificate renewal in QA
    Use node UUID as client certificate serial number
    Revert "Temporarily remove SSL changes from NEWS file"
    Revert "Disabling client certificate usage"...
ab4b1cf2 02/14/2014 03:51 pm Helga Velroyen

Use node UUID as client certificate serial number

It turns out, that some implementations of OpenSSL are more
pedantic in checking the certficates than others. In this
particular case, the SSL connection could not be
established when the serial number of the certificates...

d5104ca4 02/14/2014 03:51 pm Helga Velroyen

Revert "Disabling client certificate usage"

This reverts commit 45f75526b848, which was introduced to
temporarily disable the implementation of SSL client
certificates. As this patch series fixes the reason for
the disabling, we are rolling back the patch....

59881a0b 02/14/2014 11:47 am Petr Pudlak

Add the WConfD daemon itself

The daemon exposes the declared functions in Ganeti.WConfd.Core to RPC
clients (currently just 'echo').

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

fb0fa957 02/14/2014 11:47 am Petr Pudlak

Add the WConfD daemon to build configuration files

Also list it in the Haskell datatype, constants, Python constants and
test configuration.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

8a5d326f 02/13/2014 02:33 pm Jose A. Lopes

Add 'instance_communication_parameter' to 'Cluster'

  • Add parameter 'instance_communication_parameter' to the Python
    'ganeti.objects.Cluster' and the Haskell 'Ganeti.Objects.Cluster'.
  • Update Haskell 'QueryClusterInfo' to return also the
    'instance_communication_network' parameter....
bcb1ab78 02/12/2014 05:54 pm Petr Pudlak

Merge branch 'stable-2.11' into master

  • stable-2.11
    Update the list dependencies in INSTALL
    Make luxid's Haskell dependencies mandatory
    Fix start/stop scripts to run luxid unconditionally
    Remove the HTOOLS configuration variable
    Add a config. conditional for running Haskell coverage...
6b06efa7 02/12/2014 05:27 pm Petr Pudlak

Fix start/stop scripts to run luxid unconditionally

and update the unit check the list of daemons.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Helga Velroyen <>

d759a02b 02/10/2014 06:38 pm Klaus Aehlig

Merge branch 'stable-2.11' into master

  • stable-2.11
    (no changes)
  • stable-2.10
    Fix 'JobIdListOnly' type from 'List' to 'Map'
    Remove NEWS entry for 2.9.4
    Workaround for monitor bug related to greeting msg
    hotplug: Verify if a command succeeded or not...
adcccd43 02/10/2014 06:24 pm Klaus Aehlig

Merge branch 'stable-2.10' into stable-2.11

  • stable-2.10
    Fix 'JobIdListOnly' type from 'List' to 'Map'
    Remove NEWS entry for 2.9.4
    Workaround for monitor bug related to greeting msg
    hotplug: Verify if a command succeeded or not
    hotplug: Call each qemu commmand with an own socat...
31d3b918 02/10/2014 11:24 am Santi Raffa

Fix compatibility issues

  • Fix GenericInstanceCreate
  • Fix pylint disable annotation
  • Change some assert methods to assertTrue()

Signed-off-by: Santi Raffa <>
Reviewed-by: Jose A. Lopes <>