Peter Pentchev | 7d65968 | 2022-06-23 14:20:39 +0300 | [diff] [blame^] | 1 | From fbda4dbe0f2c495a821cc10dfedbb0b171ac50bc Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Penchev <openstack-dev@storpool.com> |
| 3 | Date: Wed, 22 Jun 2022 10:48:25 +0300 |
| 4 | Subject: [PATCH 7/8] StorPool: declare the clone_across_pools capability |
| 5 | |
| 6 | Change-Id: I5338c6c4f53a448e495f695cd64b36b722cd947d |
| 7 | --- |
| 8 | cinder/volume/drivers/storpool.py | 4 ++++ |
| 9 | doc/source/reference/support-matrix.ini | 2 +- |
| 10 | 2 files changed, 5 insertions(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/cinder/volume/drivers/storpool.py b/cinder/volume/drivers/storpool.py |
| 13 | index 696c86550..401e3709a 100644 |
| 14 | --- a/cinder/volume/drivers/storpool.py |
| 15 | +++ b/cinder/volume/drivers/storpool.py |
| 16 | @@ -99,6 +99,9 @@ class StorPoolDriver(driver.VolumeDriver): |
| 17 | to or from from Glance images. |
| 18 | - Drop backup_volume() |
| 19 | - Avoid data duplication in create_cloned_volume() |
| 20 | + - Declare the capability to clone a volume into a different |
| 21 | + pool, thus enabling the use of create_cloned_volume() for |
| 22 | + Cinder-backed Glance images on StorPool volumes |
| 23 | """ |
| 24 | |
| 25 | VERSION = '2.0.0' |
| 26 | @@ -367,6 +370,7 @@ class StorPoolDriver(driver.VolumeDriver): |
| 27 | 'driver_version': self.VERSION, |
| 28 | 'storage_protocol': constants.STORPOOL, |
| 29 | |
| 30 | + 'clone_across_pools': True, |
| 31 | 'sparse_copy_volume': True, |
| 32 | |
| 33 | 'pools': pools |
| 34 | diff --git a/doc/source/reference/support-matrix.ini b/doc/source/reference/support-matrix.ini |
| 35 | index 38a279266..4f19c33e5 100644 |
| 36 | --- a/doc/source/reference/support-matrix.ini |
| 37 | +++ b/doc/source/reference/support-matrix.ini |
| 38 | @@ -1020,7 +1020,7 @@ driver.rbd=missing |
| 39 | driver.rbd_iscsi=missing |
| 40 | driver.sandstone=missing |
| 41 | driver.seagate=missing |
| 42 | -driver.storpool=missing |
| 43 | +driver.storpool=complete |
| 44 | driver.synology=missing |
| 45 | driver.toyou_netstor=missing |
| 46 | driver.vrtsaccess=missing |
| 47 | -- |
| 48 | 2.35.1 |
| 49 | |