Fix PowerStore iSCSI targets filtering

If PowerStore ports are configured for multiple purposes
(iSCSI, Replication, etc.) driver will report that no accessible
iSCSI targets found because of the wrong REST filter.

Closes-Bug: #1920729
Change-Id: I1175d68466ac069e90ecaeef51ec6adb444241d3
(cherry picked from commit f0abdefed7)
(cherry picked from commit 80adbda09c)
This commit is contained in:
Ivan Pchelintsev 2021-03-22 12:10:14 +03:00
parent e9013589c4
commit 7baf5891e7
3 changed files with 13 additions and 2 deletions

View File

@ -384,7 +384,7 @@ class PowerStoreClient(object):
"/ip_pool_address",
params={
"appliance_id": "eq.%s" % appliance_id,
"purposes": "eq.{Storage_Iscsi_Target}",
"purposes": "cs.{Storage_Iscsi_Target}",
"select": "address,ip_port(target_iqn)"
}

View File

@ -38,9 +38,12 @@ class PowerStoreDriver(driver.VolumeDriver):
Version history:
1.0.0 - Initial version
1.0.1 - Add CHAP support
1.0.2 - Fix iSCSI targets not being returned from the REST API call if
targets are used for multiple purposes
(iSCSI target, Replication target, etc.)
"""
VERSION = "1.0.1"
VERSION = "1.0.2"
VENDOR = "Dell EMC"
# ThirdPartySystems wiki page

View File

@ -0,0 +1,8 @@
---
fixes:
- |
PowerStore driver `Bug #1920729
<https://bugs.launchpad.net/cinder/+bug/1920729>`_: Fix
iSCSI targets not being returned from the REST API call if
targets are used for multiple purposes
(iSCSI target, Replication target, etc.).