diff --git a/cinder/volume/drivers/pure.py b/cinder/volume/drivers/pure.py index 4ee5dd6ea0f..19d58c61429 100644 --- a/cinder/volume/drivers/pure.py +++ b/cinder/volume/drivers/pure.py @@ -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 diff --git a/releasenotes/notes/pure_reconnect_failure-7bbc135eecc77695.yaml b/releasenotes/notes/pure_reconnect_failure-7bbc135eecc77695.yaml new file mode 100644 index 00000000000..f010d197e05 --- /dev/null +++ b/releasenotes/notes/pure_reconnect_failure-7bbc135eecc77695.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Pure Storage `bug #2121464 + `_: Fixed + ``AttributeError`` when trying to connect a volume to a host when + the volume is already connected to the host.