libvirt/tests/storagepoolxml2xmlin
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
..
pool-dir.xml storage: Sanitize pool target paths 2010-05-25 12:30:44 -04:00
pool-disk.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-fs.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-iscsi-auth.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-iscsi-multiiqn.xml Add multiIQN tests 2010-06-08 13:14:26 -04:00
pool-iscsi-vendor-product.xml storage: add support for Vendor and Model in XML 2010-08-19 15:58:43 -06:00
pool-iscsi.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-logical-create.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-logical.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-mpath.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-netfs.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-rbd.xml storage backend: Add RBD (RADOS Block Device) support 2012-05-21 12:37:38 -06:00
pool-scsi.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-sheepdog.xml Add a sheepdog backend for the storage driver 2012-07-18 20:08:27 +01:00