summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGorka Eguileor <geguileo@redhat.com>2022-05-04 19:46:16 +0200
committerGorka Eguileor <geguileo@redhat.com>2023-02-21 19:39:48 +0100
commit09613c97060144cd436ffc079c1374710c501ac2 (patch)
treecc08ec5ae449b46419c2fc884e3794d0be90ebec
parenta451acf357c0cf49e132a408dcbd51f31f6ffc37 (diff)
downloadcinder-09613c97060144cd436ffc079c1374710c501ac2.tar.gz
Add missing extend_target driver method
The base target driver class is missing the extend_target method which is called from the LVM driver. Since it was missing there some drivers, such as the nvmeof base class, also missed it when they were implemented. This patch adds a base implementation that does nothing, since this is usually the right thing to do for most drivers. Change-Id: If009af0a385d9203bd74e42e822dca299a119ca7
-rw-r--r--cinder/volume/targets/driver.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cinder/volume/targets/driver.py b/cinder/volume/targets/driver.py
index 9e186629b..644664b45 100644
--- a/cinder/volume/targets/driver.py
+++ b/cinder/volume/targets/driver.py
@@ -85,3 +85,11 @@ class Target(object, metaclass=abc.ABCMeta):
"""
a_host = A.get('host')
return a_host and (a_host == B.get('host'))
+
+ def extend_target(self, volume):
+ """Reinitializes a target after the volume has been extended.
+
+ Most drivers don't need to do anything, but in other cases this may
+ cause IO disruption.
+ """
+ pass