Statistics
| Branch: | Tag: | Revision:

root / qa / qa_rapi.py @ a1de4b18

History | View | Annotate | Download (13.8 kB)

# Date Author Comment
4b10fb65 12/13/2010 06:33 pm Adeodato Simo

More QA tests for group operations

This adds QA tests for the SetGroupParams operation, both for CLI and
RAPI. Additionally, it adds tests for add/rename/remove groups via RAPI,
which had not been included in a previous patch series. Finally, it also
tests setting "alloc_policy" (and, for the CLI, "ndparams") at group...

90e99856 12/13/2010 06:33 pm Adeodato Simo

Add the "alloc_policy" attribute to node groups

This can be set at group creation time and via OpSetGroupParams. The default
is "preferred", and existing node groups from previous Ganeti version will
get the attribute set to this value.

Signed-off-by: Adeodato Simo <>...

e5c2accd 12/09/2010 02:37 pm Guido Trotter

Simplify instance rename qa test

The current instance rename qa testing function can only perform
back-and-forth renames, both for command line and rapi. In order to be
able to perform same-name rename tests we change it to be able to
perform simple renames, and then we change qa to call it to perform both...

75cf411a 12/08/2010 09:45 pm Adeodato Simo

Introduce constant for the name of the initial node group

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

30131294 12/01/2010 09:40 pm Adeodato Simo

Querying node groups: add QA tests

This adds QA tests for both CLI and RAPI.

Signed-off-by: Adeodato Simo <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

4d2bd00a 10/20/2010 03:05 pm Michael Hanselmann

QA RAPI: Test HTTP 404 and 501

This tests the HTTP Not Found and Not Implemented errors.

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

638a7266 10/07/2010 03:16 pm Iustin Pop

Try again to fix the inter-cluster move QA test

This time, we re-establish the old pri/sec nodes corretly. Unfortunately this
will require now a 3-node cluster at least for drbd instances, hence it's
somewhat suboptimal, but… The other option would be to move it simply from p:s...

677e16eb 10/06/2010 03:38 pm Iustin Pop

QA: Fix instance move tests

The instance move tests were moving the instance from node pair (A,_) to
(B, A), and left it there. This patch makes sure that the first step
moves the instance to (B,A) but the second one back to (A,B), so that
the instance is left on the same primary node....

a889c536 10/05/2010 05:59 pm Michael Hanselmann

RAPI QA: Override MAC address when moving instance

This will make this test work again.

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

c326b4ef 09/16/2010 01:46 pm Michael Hanselmann

QA: Test more tag operations via RAPI

This ensures tag operations work via RAPI. Also print requested URI to
stdout for debugging.

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

fd837171 09/16/2010 01:43 pm Michael Hanselmann

qa_rapi: Fix indentation error

If no function to verify the result was specified, qa_rapi._DoTests
wouldn't return the result.

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

3b7158ef 08/18/2010 02:21 pm Michael Hanselmann

RAPI client: Support modifying instances

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

7fb50870 08/10/2010 06:56 pm Michael Hanselmann

QA: Test renaming instance via RAPI

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

938bde86 07/29/2010 04:05 pm Michael Hanselmann

QA: Test instance migration via CLI and RAPI

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

4ea3de4e 07/08/2010 06:57 pm Balazs Lecz

Add oper_vcpus instance status field

This introduces a new instance status field, named "oper_vcpus".
It contains the actual number of VCPUs an instance is using as
seen by the hypervisor.

Signed-off-by: Balazs Lecz <>
Reviewed-by: Iustin Pop <>

2a7c3583 07/01/2010 03:13 pm Michael Hanselmann

RAPI client: Switch to pycURL

Currently the RAPI client uses the urllib2 and httplib modules from
Python's standard library. They're used with pyOpenSSL in a very fragile
way, and there are known issues when receiving large responses from a RAPI
server.
...

5d831182 06/14/2010 07:57 pm Michael Hanselmann

qa_rapi: Test inter-cluster instance move script

This test moves an instance on the same cluster and, if successful,
moves it back. While not testing a real move between two clusters,
this is certainly better than nothing.

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

ebeb600f 05/18/2010 06:53 pm Michael Hanselmann

RAPI changes for instance moves

Two new resources are added:
- /2/instances/$name/prepare-export
- /2/instances/$name/export

The documentation for the existing resource for creating instances is updated
for remote imports. The RAPI client is extended for the new resources....

924e95f9 05/13/2010 04:58 pm Michael Hanselmann

QA: Test instance creation/deletion via RAPI client

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>

2771835c 05/11/2010 06:04 pm Michael Hanselmann

RAPI QA: Use RAPI client

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

8cb70e56 05/05/2010 01:20 pm Michael Hanselmann

RAPI QA: Test instance creation/removal via RAPI

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

94e63ca1 05/05/2010 01:20 pm Michael Hanselmann

RAPI QA: Support for request body

- Add support for sending JSON-encoded body to RAPI daemon
(required to test more complex resources)
- Expand names when testing resources against config

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

725ec2f1 04/12/2010 05:53 pm René Nussbaumer

QA: Make the rapi credential handling less involving

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

e6ce18ac 03/26/2010 03:56 pm René Nussbaumer

Adding QA RAPI tests for activate-disks and deactivate-disks calls

  • This also adds support for authenticated RAPI calls
  • Other HTTP methods than GET/POST

Signed-off-by: René Nussbaumer <>
Reviewed-by: Guido Trotter <>

22482387 09/25/2009 05:13 pm Iustin Pop

Fix RAPI QA, broken by NIC parameters changes

This also adds the new nic.links query field.

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

8c96d01f 07/24/2009 03:05 pm Guido Trotter

Move rapi to GetDaemonPort

Currently rapi is the only daemon which accepts a port option, rather
than querying its own port from services, and failing back to the
default if not found. Changing this to conform to what other daemons do.

Also update the ganeti-rapi(8) manpage...

e1876432 07/24/2009 11:35 am Guido Trotter

Get rid of constants.RAPI_ENABLE

This constant is unused, except in qa. Removing it since it's always True.

This patch also removes the unused qa_rapi.PrintRemoteAPIWarning
function, and removes a comment about temporary constants "until we have
cluster parameters"....

68289c75 02/10/2009 10:13 am Iustin Pop

Fix one more RAPI QA test

This was skipped in the previous QA patch.

Reviewed-by: imsnah

49b1d36e 02/06/2009 03:06 pm Iustin Pop

QA: switch RAPI to https

Since we by default now use SSL for RAPI, we need to switch the QA
tests to SSL too.

Reviewed-by: amishchenko

a5b9d725 02/05/2009 11:47 am Iustin Pop

Revive RAPI QA tests for 2.0-style RAPI

This patch fixes the RAPI QA tests to work with today's RAPI code and
also does some other minor improvements:
- QA: only create the cluster if so configured (‘create-cluster’ key),
this allows running parts of the QA suite against existing clusters...

c85d3b64 08/15/2008 11:43 am Michael Hanselmann

Whitespace fixes for remote API QA checks

Reviewed-by: ultrotter

ed54b47e 08/15/2008 11:43 am Michael Hanselmann

Remove QA hook functionality

To my knowledge they're used nowhere and it's at least slightly
confusing to people adding new QA checks.

Reviewed-by: ultrotter

a47f574c 07/15/2008 04:36 pm Oleksiy Mishchenko

Migrate RAPI QA to trunk.

Reviewed-by: imsnah