| Branch: | Tag: | Revision:

root / test @ fbdac0d9

Name Size
bash_completion.bash 5.2 kB 11.9 kB
check-cert-expired_unittest.bash 1.9 kB
cli-test.bash 193 Bytes
daemon-util_unittest.bash 2.5 kB 9.9 kB
ganeti-cleaner_unittest.bash 6 kB
ganeti-cli.test 504 Bytes 6.7 kB 3.3 kB 15.4 kB 3.6 kB 34.7 kB 5.2 kB 7 kB 50.3 kB 3.3 kB 7.1 kB 13.5 kB 5.4 kB 24 kB 2.9 kB 17.1 kB 8.8 kB 26.2 kB 1.6 kB 1.3 kB 8.4 kB 1.4 kB 1.5 kB 1.7 kB 8.5 kB 76 kB 2.6 kB 81.7 kB 8.9 kB 2.5 kB 5.7 kB 5.2 kB 18.7 kB 11.9 kB 1.3 kB 14.7 kB 29.9 kB 10.2 kB 72.8 kB 5.4 kB 51.9 kB 2 kB 56.5 kB 5.3 kB 30.4 kB 5.8 kB 3.4 kB 1.7 kB 4.4 kB 1.8 kB 3.8 kB 12 kB 4.3 kB 4.4 kB 3.1 kB 34.2 kB 6.3 kB 1.5 kB 4 kB 22.8 kB 4.5 kB 21.2 kB 3.8 kB 10.3 kB 11.9 kB 8.1 kB 13.3 kB
gnt-cli.test 1.5 kB
import-export_unittest-helper 2.6 kB
import-export_unittest.bash 11.3 kB 3.5 kB 2.8 kB 2.3 kB 3.2 kB 3.4 kB 6.3 kB

Latest revisions

# Date Author Comment
fbdac0d9 10/05/2012 07:22 pm Michael Hanselmann

bdev: Add functions to verify file storage paths

- LoadAllowedFileStoragePaths: Loads a list of allowed file storage
paths from a file
- CheckFileStoragePath: Checks a path against the list of allowed paths

The unit test for “utils.IsBelowDir” is updated with cases which weren't...

6a9b9778 10/05/2012 04:52 am Michael Hanselmann

utils.FilterEmptyLinesAndComments: Return list

We don't use generators often and lists are easier to re-use.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Bernardo Dal Seno <>

555b6cb1 10/05/2012 04:50 am Michael Hanselmann

Improve disk wipe unit test

- Don't hardcode node name in some places
- Don't define functions inside functions
- Simplify code for testing with and without offset, this is now in two
separate tests

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

fa8ef9d6 10/05/2012 04:50 am Michael Hanselmann

Wipe added space when growing disks

This patch adds code to wipe newly added disk space when growing disks
using “gnt-instance grow-disk”. “New disk space” is defined as the delta
between the old block device size (not necessarily equal to the amount
recorded in the configuration) and the new recorded size. Extra caution...

129cce69 10/05/2012 04:50 am Michael Hanselmann

Add unit tests for cmdlib._WipeDisks

This is in preparation for adding disk wipe on growing disks.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Bernardo Dal Seno <>

1be3e86c 10/04/2012 06:00 pm Michael Hanselmann

Add unit test for FilterEmptyLinesAndComments

I somehow forgot this in the previous patch.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Bernardo Dal Seno <>

d971402f 10/02/2012 10:35 pm Michael Hanselmann

cli: Exit with status 0 for --help

This patch is somewhat longer than was anticipated. Before, commands like
“gnt-instance --help” would exit with the status code 1 (failure). With
this patch, those commands exits with 0 (success) while unknown commands
still print the usage screen and exit with status 1....

2958c56e 09/28/2012 03:16 pm Michael Hanselmann

ganeti-cleaner: Separate queue cleaning code

This code does not need to run as root, therefore it's better to split
it out. It is now run with the same permissions as the master daemon.

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

052783ff 09/28/2012 03:14 pm Michael Hanselmann

Stop hardcoding root user

Some parts of the code still use a hardcoded user name: root. This patch
replaces all with a constant specified at build time. The end goal is to
make it possible to run a Ganeti cluster without any special privileges
(of course this will prevent some functionality from working)....

915faf72 09/27/2012 02:42 pm René Nussbaumer

Adding RAPI client for instance multi allocation

It was very easy to refactor CreateInstance to repurpose some part of it
for the instance multi allocation request. So we do this.

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

View revisions

Also available in: Atom