Statistics
| Branch: | Tag: | Revision:

root / test / import-export_unittest.bash @ 8dc76d54

History | View | Annotate | Download (11.3 kB)

# Date Author Comment
1d3dfa29 06/14/2010 07:57 pm Michael Hanselmann

import/export daemon: Add support for a magic prefix

This “magic” value will be used to ensure that we don't accidentially
connect to the wrong daemon (e.g. due to a bug), comparable to DRBD's
per-disk secret. Just depending on the SSL certificate isn't enough...

acd65a16 06/14/2010 07:56 pm Michael Hanselmann

import/export: Validate remote host/port

The hostname and port received from the remote cluster should
be validated, just in case.

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

ca9ec5aa 06/11/2010 01:08 pm Michael Hanselmann

Improve import-export unittest a bit

- Increase timeouts from 10 to 30 seconds (this still breaks when the
machine is busy, e.g. using bonnie++)
- Depend on only one timeout per test instead of three
- Reset variables before each test

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

4dd97aa1 06/11/2010 01:08 pm Michael Hanselmann

Test client timeout for import-export daemon

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

d6547a1c 06/11/2010 01:08 pm Michael Hanselmann

Generate import-export unittest certs in parallel

Generating certificates can be slow.

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

41a2e7d7 06/03/2010 01:56 pm Michael Hanselmann

import/export unittest: Test large(r) transfer

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

53dbf14c 06/03/2010 01:56 pm Michael Hanselmann

import/export unittest: Improve logging and fix one race condition

Apart from improved logging, one race condition is fixed. If
the destination's status file became available, the port would
be returned immediately, even if it was still “None”. Most of
the time it worked, but not always. Now an additional check...

7e3c1da6 05/21/2010 06:16 pm Michael Hanselmann

import-export daemon: Allow changing compression method

For example, exports on the same node shouldn't be compressed.

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

9d198e6f 04/27/2010 05:22 pm Michael Hanselmann

Improve import/export daemon tests

- Progress messages
- Log output on errors
- Listen timeout tests

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

043f2292 04/27/2010 05:22 pm Michael Hanselmann

Retry connection in import-export daemon

Until now, exactly one attempt was made to establish a connection.
If it failed, the whole import/export for the disk in question
aborted. Retrying will make it more reliable.

Unfortunately the listening part can't be made completely...

2d76b580 04/16/2010 04:24 pm Michael Hanselmann

Add daemon for instance import and export

This backend daemon for instance import and export will be used to
transfer instance data to other machines. It is implemented in a generic
way to support different ways of data input and output. The third-party
program “socat”, which is already used by the KVM hypervisor abstraction,...