[Pure Storage] Resolve missing provider_id issue (PowerVC)

In PowerVC, cloning of multiple volumes fails due to the
provider_id not being populated correctly for a volume.

Change-Id: Ib08a0561aa404a7aee41b23ec5d30f9f52096687
Closes-Bug: #1938579
This commit is contained in:
Simon Dodsley 2021-07-30 10:36:56 -04:00
parent c2f9c84aa6
commit f67eae51f9
2 changed files with 7 additions and 0 deletions

View File

@ -446,6 +446,7 @@ class PureBaseVolumeDriver(san.SanDriver):
vol_updates = []
for vol in volumes:
if not vol.provider_id:
vol.provider_id = self._get_vol_name(vol)
vol_updates.append({
'id': vol.id,
'provider_id': self._generate_purity_vol_name(vol),

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Pure Storage FlashArray driver `bug #1938579
<https://bugs.launchpad.net/cinder/+bug/1938579>`_: Fixes issue when
cloning multiple volumes in PowerVC deployments.