Statistics
| Branch: | Tag: | Revision:

root / test @ e4e35357

Name Size
  data
cfgupgrade_unittest.py 8.1 kB
check-cert-expired_unittest.bash 1.9 kB
daemon-util_unittest.bash 2.2 kB
docs_unittest.py 6.1 kB
ganeti-cleaner_unittest.bash 4.1 kB
ganeti.asyncnotifier_unittest.py 6.4 kB
ganeti.backend_unittest.py 3.3 kB
ganeti.bdev_unittest.py 8.9 kB
ganeti.cli_unittest.py 25.5 kB
ganeti.client.gnt_instance_unittest.py 4.7 kB
ganeti.cmdlib_unittest.py 7 kB
ganeti.compat_unittest.py 3.3 kB
ganeti.confd.client_unittest.py 7.1 kB
ganeti.config_unittest.py 8.7 kB
ganeti.constants_unittest.py 4.5 kB
ganeti.daemon_unittest.py 24 kB
ganeti.errors_unittest.py 2.5 kB
ganeti.hooks_unittest.py 9.4 kB
ganeti.ht_unittest.py 5.7 kB
ganeti.http_unittest.py 14.4 kB
ganeti.hypervisor.hv_chroot_unittest.py 1.6 kB
ganeti.hypervisor.hv_fake_unittest.py 1.3 kB
ganeti.hypervisor.hv_kvm_unittest.py 2.6 kB
ganeti.hypervisor.hv_lxc_unittest.py 1.4 kB
ganeti.hypervisor.hv_xen_unittest.py 1.5 kB
ganeti.hypervisor_unittest.py 1.7 kB
ganeti.impexpd_unittest.py 8.5 kB
ganeti.jqueue_unittest.py 42.9 kB
ganeti.locking_unittest.py 66.4 kB
ganeti.luxi_unittest.py 8.9 kB
ganeti.masterd.instance_unittest.py 5.6 kB
ganeti.mcpu_unittest.py 1.9 kB
ganeti.netutils_unittest.py 14.3 kB
ganeti.objects_unittest.py 9.6 kB
ganeti.opcodes_unittest.py 8.7 kB
ganeti.qlang_unittest.py 2.6 kB
ganeti.query_unittest.py 35.3 kB
ganeti.rapi.baserlib_unittest.py 2.7 kB
ganeti.rapi.client_unittest.py 42.7 kB
ganeti.rapi.resources_unittest.py 2.3 kB
ganeti.rapi.rlib2_unittest.py 13.7 kB
ganeti.rpc_unittest.py 10 kB
ganeti.runtime_unittest.py 3.5 kB
ganeti.serializer_unittest.py 3.5 kB
ganeti.ssh_unittest.py 1.7 kB
ganeti.uidpool_unittest.py 3.8 kB
ganeti.utils.algo_unittest.py 8.7 kB
ganeti.utils.filelock_unittest.py 4.3 kB
ganeti.utils.hash_unittest.py 4.4 kB
ganeti.utils.io_unittest.py 22.5 kB
ganeti.utils.log_unittest.py 6.2 kB
ganeti.utils.mlock_unittest.py 1.5 kB
ganeti.utils.nodesetup_unittest.py 3.6 kB
ganeti.utils.process_unittest.py 21 kB
ganeti.utils.retry_unittest.py 3.6 kB
ganeti.utils.text_unittest.py 15.5 kB
ganeti.utils.wrapper_unittest.py 3.8 kB
ganeti.utils.x509_unittest.py 8.9 kB
ganeti.utils_unittest.py 10 kB
ganeti.workerpool_unittest.py 12 kB
import-export_unittest-helper 2.6 kB
import-export_unittest.bash 11.3 kB
mocks.py 2.8 kB
tempfile_fork_unittest.py 3.1 kB
testutils.py 5.5 kB

Latest revisions

# Date Author Comment
e4e35357 03/16/2011 07:37 pm Michael Hanselmann

locking: Fix race condition in lock monitor

In some rare cases it can happen that a lock is re-created very soon
after deletion, while the old instance hasn't been destructed yet. In
such a case the code would detect a duplicate name and raise an
exception....

7d4da09e 03/15/2011 02:50 pm Michael Hanselmann

utils: Export NiceSortKey function

The ability to split a string into a list of strings and integers can be
handy elsewhere and is necessary for sorting query results by names.

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

bacae536 02/23/2011 03:27 pm René Nussbaumer

query_unittest: Fix argument to set()

Commit e431074f introduced an uncatched bug. This patch fixes this. The
set is expecting a list or iteratable to work on, so it splitted the
provided instance name into a set of characters. This caused the
exp_status never been set and therefore not catched in one assert rule...

f0b1bafe 02/18/2011 04:47 pm Iustin Pop

Change the list formatting to a 'special' chars

And also enable verbose display via the, well, verbose option. Man
page and tests are updated, and the formatting is moved from 4 if
statements to a data structure.

Signed-off-by: Iustin Pop <>...

effab4ca 02/17/2011 07:25 pm Iustin Pop

NodeQuery: mark live fields as UNAVAIL for non-vm_capable nodes

Since we don't have the data per design, UNAVAIL is appropriate here,
while NODATA is not.

The patch also adds a comment: if we extend the live fields list to
contain other data in the future, we need to reevaluate this solution....

9a6813ac 02/02/2011 06:02 pm Michael Hanselmann

utils.SetupLogging: Return function to reopen log file

This function can be used from a SIGHUP handler to reopen log files.
Initial, simple unittests are included.

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

b6fa9a44 01/31/2011 02:53 pm Michael Hanselmann

Introduce re-openable log record handler

This patch adds a new log handler class based on the standard library's
BaseRotatingHandler. This new class allows the log file to be re-opened,
e.g. upon receiving a SIGHUP signal. The latter will be implemented in...

b82d4c5e 01/28/2011 04:31 pm Michael Hanselmann

Add RAPI resource for instance console

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

5d28cb6f 01/28/2011 04:31 pm Michael Hanselmann

Export console information as query field

This makes it possible to get the console information via a LUXI query.

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

e431074f 01/28/2011 02:42 pm René Nussbaumer

Fix instance list for instances running multiple times

If for some reason (e.g. failed migration) one instance is running
on multiple nodes the output can become inconsistent. To get that error
and make it consistent between runs we make the call on the secondary...

View revisions

Also available in: Atom