Sebastian Wiedenroth
29bc4fe646
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 <target><path>.
To use the volume as a disk source for virtual machines specify
the vdi name as "name" attribute of the <source>.
The host and port information from the pool are specified inside the host tag.
<disk type='network'>
...
<source protocol="sheepdog" name="vdi_name">
<host name="localhost" port="7000"/>
</source>
</disk>
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 <wiedi@frubar.net>
2012-07-18 20:08:27 +01:00
..
2012-02-01 16:28:17 -07:00
2012-02-03 15:27:16 -07:00
2012-02-03 15:27:16 -07:00
2012-02-03 10:02:34 -07:00
2012-07-18 20:08:27 +01:00
2006-01-23 22:55:41 +00:00
2012-06-18 20:10:29 +01:00
2010-10-27 16:29:25 -06:00
2011-04-01 16:03:11 -06:00
2012-05-24 16:20:55 +01:00
2012-05-02 12:20:38 -06:00
2008-04-23 17:08:31 +00:00
2011-10-28 10:11:16 +01:00
2005-12-21 16:59:34 +00:00
2010-10-27 15:01:45 +11:00
2011-04-01 16:03:11 -06:00
2008-04-23 17:08:31 +00:00
2009-11-06 16:05:18 +01:00
2012-05-14 15:15:58 +01:00
2011-02-09 12:29:29 -07:00
2012-02-23 16:02:33 -07:00
2012-05-25 13:55:12 +01:00
2011-01-05 18:07:30 +11:00
2010-11-30 02:22:38 +11:00
2010-10-27 15:01:45 +11:00
2010-10-27 15:01:45 +11:00
2008-04-23 17:08:31 +00:00
2010-12-21 20:55:10 +11:00
2012-07-18 20:08:27 +01:00
2011-11-01 18:45:42 +01:00
2011-08-26 17:52:55 +02:00
2012-02-03 11:32:51 -07:00
2012-04-16 17:02:08 +02:00
2012-02-28 17:30:30 +01:00
2008-04-23 17:08:31 +00:00
2009-11-16 22:42:13 +01:00
2011-07-15 13:19:41 -06:00
2011-10-29 19:50:48 +02:00
2011-07-15 13:19:41 -06:00
2011-07-15 13:19:41 -06:00
2009-09-22 12:55:39 +02:00
2008-04-28 08:29:35 +00:00
2010-07-10 22:47:00 +10:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2011-11-30 10:12:30 +00:00
2012-07-10 11:25:14 +02:00
2012-03-19 20:33:30 -04:00
2011-12-07 18:42:08 +08:00
2012-06-01 19:32:06 -04:00
2011-10-28 11:34:17 -06:00
2011-09-05 07:03:04 -06:00
2012-03-07 18:24:43 -07:00
2011-04-01 16:03:11 -06:00
2009-12-03 15:27:24 +01:00
2011-03-28 10:40:24 +08:00
2010-11-12 19:47:20 +01:00
2010-11-12 19:47:20 +01:00
2012-07-16 11:05:12 +02:00
2012-06-13 18:23:00 +01:00
2011-06-06 10:45:59 +02:00
2011-08-26 17:52:55 +02:00
2011-02-18 08:59:51 +01:00
2011-04-01 16:03:11 -06:00
2009-04-02 12:01:11 +00:00
2009-09-22 12:55:39 +02:00
2009-07-16 15:06:42 +02:00
2011-10-28 10:11:16 +01:00
2009-04-15 20:42:50 +00:00
2011-10-28 10:11:16 +01:00
2009-04-15 20:42:50 +00:00
2008-04-23 17:08:31 +00:00
2008-04-23 17:08:31 +00:00
2011-10-28 10:11:16 +01:00
2008-04-23 17:08:31 +00:00
2011-10-28 10:11:16 +01:00
2008-04-23 17:08:31 +00:00
2011-10-28 10:11:16 +01:00
2009-04-15 20:42:50 +00:00
2011-10-28 10:07:45 +01:00
2012-06-18 20:10:29 +01:00
2006-02-09 17:45:11 +00:00
2012-02-03 11:32:51 -07:00
2012-05-15 17:01:40 +01:00
2006-02-09 17:45:11 +00:00
2008-04-23 17:08:31 +00:00
2012-06-05 09:20:12 -06:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2012-05-10 14:50:39 -06:00
2011-08-12 07:35:19 -06:00
2012-07-02 11:25:36 +08:00
2009-07-29 09:04:21 +01:00
2011-10-28 10:11:16 +01:00
2006-01-23 13:24:07 +00:00
2011-01-28 08:44:05 -07:00
2012-04-13 23:57:00 +08:00
2011-02-09 12:29:29 -07:00
2012-02-09 14:28:40 -07:00
2012-06-11 11:36:07 -06:00
2012-03-27 09:54:49 -06:00
2011-01-17 16:55:41 +08:00
2009-12-08 16:09:33 +01:00
2012-05-07 10:50:53 -04:00
2012-07-18 20:08:27 +01:00
2011-10-28 10:11:16 +01:00
2010-12-02 16:00:47 -07:00
2011-05-11 19:18:38 +08:00
2011-05-11 08:18:04 -06:00
2011-05-11 19:18:38 +08:00
2010-10-12 11:26:52 +01:00
2011-07-12 17:10:33 +01:00
2012-05-14 15:15:58 +01:00
2011-01-11 07:33:15 +11:00
2011-04-01 16:03:11 -06:00
2010-11-12 19:47:20 +01:00