Merge "[Pure Storage] Fix volume reconnect error"

This commit is contained in:
Zuul
2025-09-09 15:14:54 +00:00
committed by Gerrit Code Review
2 changed files with 8 additions and 1 deletions

View File

@@ -3814,7 +3814,7 @@ class PureISCSIDriver(PureBaseVolumeDriver, san.SanISCSIDriver):
for array in target_arrays:
connection = self._connect(array, pure_vol_name, connector,
chap_username, chap_password)
if not connection[0].lun:
if not connection[0]['lun']:
# Swallow any exception, just warn and continue
LOG.warning("self._connect failed.")
continue

View File

@@ -0,0 +1,7 @@
---
fixes:
- |
Pure Storage `bug #2121464
<https://bugs.launchpad.net/cinder/+bug/2121464>`_: Fixed
``AttributeError`` when trying to connect a volume to a host when
the volume is already connected to the host.