Merge "[Pure Storage] Fix QoS setting for cloned volumes" into stable/2023.2

This commit is contained in:
Zuul 2025-04-24 16:14:46 +00:00 committed by Gerrit Code Review
commit a0648aaf51
2 changed files with 13 additions and 0 deletions

View File

@ -765,6 +765,12 @@ class PureBaseVolumeDriver(san.SanDriver):
vol_name,
src_vref["size"],
volume["size"])
# Check if the volume_type has QoS settings and if so
# apply them to the newly created volume
qos = None
qos = self._get_qos_settings(volume.volume_type)
if qos:
self.set_qos(current_array, vol_name, qos)
return self._setup_volume(current_array, volume, vol_name)

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Pure Storage driver `bug #2100547
<https://bugs.launchpad.net/cinder/+bug/2100547>`_: Fixed issue where
volumes created as clones from a source image volume do get
the defined QoS settings associated with the volume type used.