From 29bc4fe6460d80c2aca1b90e54faed1431efcfa7 Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Wed, 18 Jul 2012 20:06:58 +0100 Subject: Add a sheepdog backend for the storage driver This patch brings support to manage sheepdog pools and volumes to libvirt. It uses the "collie" command-line utility that comes with sheepdog for that. A sheepdog pool in libvirt maps to a sheepdog cluster. It needs a host and port to connect to, which in most cases is just going to be the default of localhost on port 7000. A sheepdog volume in libvirt maps to a sheepdog vdi. To create one specify the pool, a name and the capacity. Volumes can also be resized later. In the volume XML the vdi name has to be put into the . To use the volume as a disk source for virtual machines specify the vdi name as "name" attribute of the . The host and port information from the pool are specified inside the host tag. ... To work right this patch parses the output of collie, so it relies on the raw output option. There recently was a bug which caused size information to be reported wrong. This is fixed upstream already and will be in the next release. Signed-off-by: Sebastian Wiedenroth --- tests/storagevolxml2xmltest.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/storagevolxml2xmltest.c') diff --git a/tests/storagevolxml2xmltest.c b/tests/storagevolxml2xmltest.c index 37c92cd4f..ee8598819 100644 --- a/tests/storagevolxml2xmltest.c +++ b/tests/storagevolxml2xmltest.c @@ -112,6 +112,7 @@ mymain(void) DO_TEST("pool-disk", "vol-partition"); DO_TEST("pool-logical", "vol-logical"); DO_TEST("pool-logical", "vol-logical-backing"); + DO_TEST("pool-sheepdog", "vol-sheepdog"); return ret==0 ? EXIT_SUCCESS : EXIT_FAILURE; } -- cgit v1.2.3-65-gdbad