Statistics
| Branch: | Tag: | Revision:

root / test @ 14a31771

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

86012ec2 05/13/2014 11:36 am Hrvoje Ribicic

Disable protections against unknown compression types

Ganeti took care to restrict all possible compression invocations to
the few options that were available. This patch strips away all of
those, but does not allow any interesting and dangerous commands...

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

113b6056 05/12/2014 04:06 pm Petr Pudlak

Test the 'findFirst' function

Also add 'genSublist' which picks a random sublist from a given list.

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

46049766 05/12/2014 12:42 pm Ilias Tsitsimpis

Add DiskParams to Disk object

The 'DiskParams' slot was missing from Haskell's Disk objects.
Since Wconfd is now responsible for writting the config file this was
causing the 'params' slot to not be written in the config file.

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

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...
75c1ac5b 05/08/2014 05:05 pm Klaus Aehlig

Add a basic test for --restricted-migration

Essentially verify that, in the given example, a solution is still
found and that the original present failover is dropped.

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

33bb2d08 05/08/2014 05:05 pm Klaus Aehlig

Support restricted migration

Make hbal support an option to disallow ReplacePrimary moves
and restrict ReplaceAndFailover to instances where the primary
node is drained. If used in evacuation mode, the only migration
moves will be off the drained nodes.
...

ee63f1d1 05/08/2014 05:04 pm Klaus Aehlig

Add an example for node evacuation

The configuration shows an unbalanced cluster with
a node being drained. The natural evacuation strategy
includes frf-moves.

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

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

31b430c5 05/05/2014 02:22 pm Ilias Tsitsimpis

Implement getDisks in Confd

Add 'ReqInstanceDisks' request type and allow Confd to query for the
disks of an instance. The helper function 'getInstanceDisks' returns the
list of instances on the given node along with their disks and is used
by the function 'addInstNameToLv'....

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

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

Add disks entry to config.data

Add disks entry to config.data.

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

425ebca4 04/29/2014 05:04 pm Apollon Oikonomopoulos

kvm: use a dedicated QMP socket for kvmd

The KVM daemon keeps a persistent connection to the instances' QMP
sockets, listening for asynchronous events. As each monitor socket
(either human, or QMP) can handle only one client at a time, this has
the side-effect that QMP cannot be used for regular instance operations....

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

bb47621f 04/24/2014 02:11 pm Klaus Aehlig

Add basic test for CPU speed

In this example, the cluster has two nodes and four instances, two with
primary on each of the nodes. The most scarce resource on this cluster
are (virtual) CPUs and the second node has 3 times the CPU speed of the
first one. So distributing the instances 1 and 3 gives a more balanced...

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

94c42103 04/24/2014 02:11 pm Klaus Aehlig

Add VTypeFloat

...in order not to have to declare floating point
values as VTypeInt and rely on the sloppiness of
the JSON specification to not distinguish between
integers and floating point numbers.

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

76b4ac58 04/17/2014 06:59 pm Petr Pudlak

Add optional fields for job livelocks and process IDs

This will allow to check if a particular job is alive, and send signals
to it when it's running.

The fields aren't serialized, if missing, for backwards compatibility.

Signed-off-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...

d890439b 04/11/2014 05:02 pm Klaus Aehlig

Clean up from LockAllocation what is no longer used

With the change from LockAllocations to LockWaitings, several
manipulation operations had to be implemented for LockWaitings
and became unused in LockAllocation. Remove these functions that
are no longer used....

58e173a5 04/11/2014 05:02 pm Klaus Aehlig

Verify the answer of opportunistic lock union

Verify that the result set of the opportunistic lock
union is correct.
- If a lock is mentioned in the result set, the request
must have been granted.
- If it is not mentioned, the owner state must be unchanged....

11a498d5 04/11/2014 05:02 pm Klaus Aehlig

Verify that opportunistic lock union is monotone

Verify that a request to opportunistically allocate locks never
reduces the amount of locks held.

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

016a5501 04/11/2014 05:02 pm Klaus Aehlig

Use intersection and union for arbitrary waitings

Allow intersection and opportunistic lock union in the construction
of the arbitrary element of a lock waiting. While definable from
updateLocks, they are typical interface functions and can help
get a more natural distribution in arbitrary....

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...
3cb014b3 04/10/2014 03:18 pm Klaus Aehlig

Verify: liftM extRepr . readJSON . showJSON = Ok . extRepr

In other words, verify that for LockWaiting, the JSON encoding
can be decoded correctly up to observable indistinguishability.

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

2fb7557f 04/10/2014 03:18 pm Klaus Aehlig

Verify readJSON . showJSON = Ok for LockRequest

Verify that the JSON encoding of a LockRequest can correctly
be decoded.

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

f8d6da22 04/10/2014 03:18 pm Klaus Aehlig

Verify extRepr-equal states are equal on updateLocksWaiting

Add a test that verifies that extRepr-equal states cannot be
distinguished by updateLocksWaiting-transitions. To obtain
extRepr-equal states, we compare each state to the one computed
from its extensional representation....

0d3308c2 04/10/2014 03:18 pm Klaus Aehlig

Verify that extRepr-equal states behave equal on updateLocks

Add a test that verifies that extRepr-equal states cannot be
distinguished by updateLocks-transitions. To obtain extRepr-equal
states, we compare each state to the one computed from its
extensional representation....

1c362c1a 04/10/2014 03:18 pm Klaus Aehlig

Verify decoding from extensional representation is sound

Verify that, on the image of extRepr, it holds extRepr . fromExtrRepr = id.
In other words, verify that when obtain a lock waiting from an extensional
representation, it has the same extensional representation....

cb39314f 04/10/2014 03:18 pm Klaus Aehlig

Verify that all pending requests are justified

If a request is pending in a lock waiting structure, it has to fulfill
two properties:
- It must be a valid request, not violating any lock order requirements, and
- it must not be possible to fulfill it immediately....

e247c590 04/10/2014 03:18 pm Klaus Aehlig

Verify soundness of notifications

Verify that, if a lock owner gets notified, he
- had a pending request, and
- the request is fulfilled now.

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

f21ff016 04/10/2014 03:18 pm Klaus Aehlig

Strengthen progress property in lock waiting

Not only verify that after the blockers for one pending request
have gone, some request was honored, but also verify that it was
not a request by one of the blockers.

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

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

60c4dbb9 04/09/2014 01:55 pm Klaus Aehlig

Add process id to lock-owner description

...so that we can notify owners when their pending request got granted.

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

2dcbfddb 04/09/2014 11:58 am Klaus Aehlig

Verify that some progress is made after lock releases

Add a basic sanity check for progress on pending requests. If a
request is pending and all owners it is blocked on release their
locks, there is at least one pending request that can be granted
(the said one). So verify that at least one owner gets notified...

bdb272a6 04/09/2014 11:58 am Klaus Aehlig

Verify that an owner gets notified

Add a basic sanity check on notification: if a request is blocked,
and all old pending owners and blockers give up their resources,
the owner gets notified of his lock being granted.

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

3b907f06 04/09/2014 11:58 am Klaus Aehlig

Verify that pending requests get fulfilled eventually

Add a basic sanity check for the lock waiting mechanism. If a request
get added to pending, and all blockers and pending owners give up their
resources it is automatically handled.

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

8eb56bdf 04/09/2014 11:58 am Klaus Aehlig

Export requestSucceeded

...so that this predicate can be used for testing the LockWaiting
structure as well.

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

62b2c6f3 04/09/2014 11:58 am Klaus Aehlig

Verify that unfulfilled requests lead to pending requests

Verify that an owner has a pending request after a waiting request
not fullfilled immediately.

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

3a79c389 04/09/2014 11:58 am Klaus Aehlig

Verify locks can't be updated while having a pending request

Add a verify first sanity check for lock waiting: a user that has a pending
request cannot modify his locks. This patch also brings in the necessary
infra structure for having arbitrary waiting structures....

644a050a 04/09/2014 11:58 am Klaus Aehlig

Export the test locks for testing

As lock waiting is also based on locking, export the
test lock/owner structure, so that the tests for lock
waiting can use them.

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

d5d86e20 04/09/2014 11:58 am Klaus Aehlig

Fix typos in comments

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

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

22096c14 04/08/2014 03:34 pm Hrvoje Ribicic

Add zeroing timeout params to opcode

This patch adds two parameters controlling the zeroing timeout - one
that is fixed and another that depends on the amount of data (size of
disks) to zero.

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

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

363f43eb 04/08/2014 03:34 pm Hrvoje Ribicic

Add the zero-free-space option

Although unused for now, add the zero-free-space option to the backup
export opcode, and add a rudimentary check for whether it should be
used.

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

d32fe318 04/07/2014 10:53 am Klaus Aehlig

Verify readJSON . showJSON = Ok for ClientType

Verify that the JSON encoding of the ClientType can correctly
be decoded.

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

b8ba35c4 04/04/2014 06:20 pm Klaus Aehlig

Verify soundness of listAllLocksOwners

Verify that every owner mentioned in the output of listAllLocksOwners
actually owns the locks claimed.

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

6e304dba 04/04/2014 06:20 pm Klaus Aehlig

Verify that all locks are mentioned in listAllLocksOwners

Add a test verifying that whenever an owner owns a lock, it
is also mentioned in the output of listAllLocksOwners.

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

50c674fc 04/04/2014 06:19 pm Klaus Aehlig

Verify consistency between listAllLocks{,Owners}

As listAllLocks is supposed to list all locks currently in use, this should
be a superset listAllLocksOwners, i.e., of all locks actively owned by some
user.

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

447d582c 04/04/2014 06:13 pm Klaus Aehlig

Verify that the list of all locks is complete

Verify that all locks owned by someone are included in the
list of all (active) locks.

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

aa4a4b76 04/03/2014 02:38 pm Petr Pudlak

Fix lint errors after moving Luxi code to UDSServer

Remove unused imports and update the 'buildCall' call in tests.

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

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

9c45196b 03/28/2014 03:00 pm Klaus Aehlig

Identify lock owners by either string or job id

Most requests asking for resources are jobs. However, in exceptional
cases, other requests (like currently requests to masterd requiring the
configuration) need to ask for resources. They identify themselves by...

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

c211dcc4 03/18/2014 01:52 pm Petr Pudlak

Add tests for (de)serialization of ClientId

.. to test if `readJSON . showJSON = Ok`.

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