blob: 6bad3ab11f347bc899ce8f0138e822372958ffa5 [file] [log] [blame]
From 2647486f4e81aa8b3ed2fe4d5f7c2807ab984f4c Mon Sep 17 00:00:00 2001
From: Peter Penchev <openstack-dev@storpool.com>
Date: Wed, 22 Jun 2022 10:48:25 +0300
Subject: [PATCH 8/9] StorPool: declare the clone_across_pools capability
Change-Id: I5338c6c4f53a448e495f695cd64b36b722cd947d
---
cinder/volume/drivers/storpool.py | 1 +
doc/source/reference/support-matrix.ini | 2 +-
.../notes/storpool-clone-across-pools-b3f7923dee35503a.yaml | 6 ++++++
3 files changed, 8 insertions(+), 1 deletion(-)
create mode 100644 releasenotes/notes/storpool-clone-across-pools-b3f7923dee35503a.yaml
diff --git a/cinder/volume/drivers/storpool.py b/cinder/volume/drivers/storpool.py
index 76b86cd02..0051442ed 100644
--- a/cinder/volume/drivers/storpool.py
+++ b/cinder/volume/drivers/storpool.py
@@ -362,6 +362,7 @@ class StorPoolDriver(driver.VolumeDriver):
'driver_version': self.VERSION,
'storage_protocol': constants.STORPOOL,
# Driver capabilities
+ 'clone_across_pools': True,
'sparse_copy_volume': True,
# The actual pools data
'pools': pools
diff --git a/doc/source/reference/support-matrix.ini b/doc/source/reference/support-matrix.ini
index 76f6638dd..ef449eb11 100644
--- a/doc/source/reference/support-matrix.ini
+++ b/doc/source/reference/support-matrix.ini
@@ -629,7 +629,7 @@ driver.rbd=missing
driver.rbd_iscsi=missing
driver.sandstone=missing
driver.seagate=missing
-driver.storpool=missing
+driver.storpool=complete
driver.synology=missing
driver.toyou_netstor=missing
driver.toyou_netstor_tyds=missing
diff --git a/releasenotes/notes/storpool-clone-across-pools-b3f7923dee35503a.yaml b/releasenotes/notes/storpool-clone-across-pools-b3f7923dee35503a.yaml
new file mode 100644
index 000000000..511ac699b
--- /dev/null
+++ b/releasenotes/notes/storpool-clone-across-pools-b3f7923dee35503a.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ The StorPool driver now declares the "clone across pools" capability,
+ which allows it to create a volume into an arbitrary StorPool-backed
+ volume type from a StorPool-backed Glance image.
--
2.25.1