blob: 2bbd2e4f4ef654bd559aa6c3692374124f4875a6 [file] [log] [blame]
From fbda4dbe0f2c495a821cc10dfedbb0b171ac50bc 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 7/8] StorPool: declare the clone_across_pools capability
Change-Id: I5338c6c4f53a448e495f695cd64b36b722cd947d
---
cinder/volume/drivers/storpool.py | 4 ++++
doc/source/reference/support-matrix.ini | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/cinder/volume/drivers/storpool.py b/cinder/volume/drivers/storpool.py
index 696c86550..401e3709a 100644
--- a/cinder/volume/drivers/storpool.py
+++ b/cinder/volume/drivers/storpool.py
@@ -99,6 +99,9 @@ class StorPoolDriver(driver.VolumeDriver):
to or from from Glance images.
- Drop backup_volume()
- Avoid data duplication in create_cloned_volume()
+ - Declare the capability to clone a volume into a different
+ pool, thus enabling the use of create_cloned_volume() for
+ Cinder-backed Glance images on StorPool volumes
"""
VERSION = '2.0.0'
@@ -367,6 +370,7 @@ class StorPoolDriver(driver.VolumeDriver):
'driver_version': self.VERSION,
'storage_protocol': constants.STORPOOL,
+ 'clone_across_pools': True,
'sparse_copy_volume': True,
'pools': pools
diff --git a/doc/source/reference/support-matrix.ini b/doc/source/reference/support-matrix.ini
index 38a279266..4f19c33e5 100644
--- a/doc/source/reference/support-matrix.ini
+++ b/doc/source/reference/support-matrix.ini
@@ -1020,7 +1020,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.vrtsaccess=missing
--
2.35.1