From e1d38d49b6e683ce197561687258bac3fdecbb9d Mon Sep 17 00:00:00 2001 From: Teruaki Ishizaki Date: Fri, 11 Sep 2015 18:51:50 +0900 Subject: [PATCH] Sheepdog: Follow the changes for cinder driver This patch includes the changes for adding new configs to Sheepdog driver of cinder. In addition, the page of supported operations is added. Change-Id: I5e3b05e7e435c6c6fd03a8f25cc7c71300e5b587 --- doc/common/samples/cinder.conf.sample | 11 +++++ doc/common/tables/cinder-sheepdog.xml | 30 +++++++++++++ .../block-storage/drivers/sheepdog-driver.xml | 43 +++++++++++++++++-- .../cinder.headers | 2 +- 4 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 doc/common/tables/cinder-sheepdog.xml diff --git a/doc/common/samples/cinder.conf.sample b/doc/common/samples/cinder.conf.sample index 9ed1c208a7..79609bdccf 100644 --- a/doc/common/samples/cinder.conf.sample +++ b/doc/common/samples/cinder.conf.sample @@ -2043,6 +2043,17 @@ #scality_sofs_volume_dir=cinder/volumes +# +# Options defined in cinder.volume.drivers.sheepdog +# + +# IP address of sheep daemon. +#sheepdog_store_address = 127.0.0.1 + +# Port of sheep daemon. +#sheepdog_store_port = 7000 + + # # Options defined in cinder.volume.drivers.smbfs # diff --git a/doc/common/tables/cinder-sheepdog.xml b/doc/common/tables/cinder-sheepdog.xml new file mode 100644 index 0000000000..8e54f93563 --- /dev/null +++ b/doc/common/tables/cinder-sheepdog.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Description of Sheepdog driver configuration options
Configuration option = Default valueDescription
[DEFAULT]
= 127.0.0.1(StrOpt) IP address of sheep daemon.
= 7000(IntOpt) Port of sheep daemon.
+
diff --git a/doc/config-reference/block-storage/drivers/sheepdog-driver.xml b/doc/config-reference/block-storage/drivers/sheepdog-driver.xml index dc3d2f0ce9..2e8370ea82 100644 --- a/doc/config-reference/block-storage/drivers/sheepdog-driver.xml +++ b/doc/config-reference/block-storage/drivers/sheepdog-driver.xml @@ -13,8 +13,43 @@ More information can be found on Sheepdog Project. This driver enables use of Sheepdog through Qemu/KVM. - Set the following - volume_driver in - cinder.conf: - volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver + +
+ Supported operations + Sheepdog driver supports these operations: + + + Create, delete, attach, and detach volumes. + + + Create, list, and delete volume snapshots. + + + Create a volume from a snapshot. + + + Copy an image to a volume. + + + Copy a volume to an image. + + + Clone a volume. + + + Extend a volume. + + +
+ +
+ Configuration + Set the following + volume_driver in + cinder.conf: + volume_driver=cinder.volume.drivers.sheepdog.SheepdogDriver + The following table contains the configuration options + supported by the Sheepdog driver. + +
diff --git a/tools/autogenerate-config-flagmappings/cinder.headers b/tools/autogenerate-config-flagmappings/cinder.headers index 22dd0bd393..f7d25ef209 100644 --- a/tools/autogenerate-config-flagmappings/cinder.headers +++ b/tools/autogenerate-config-flagmappings/cinder.headers @@ -46,7 +46,7 @@ san SAN san-solaris Solaris SAN scality Scality SOFS volume driver scst SCST volume driver -sheepdog Sheepdog Object Storage +sheepdog Sheepdog driver solidfire SolidFire driver smbfs Samba volume driver storage storage