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
This commit is contained in:
Ivan Pchelintsev 2021-03-22 12:10:14 +03:00
parent 2462abec42
commit f0abdefed7
3 changed files with 13 additions and 2 deletions

View File

@ -390,7 +390,7 @@ class PowerStoreClient(object):
r, response = self._send_get_request( r, response = self._send_get_request(
"/ip_pool_address", "/ip_pool_address",
params={ params={
"purposes": "eq.{Storage_Iscsi_Target}", "purposes": "cs.{Storage_Iscsi_Target}",
"select": "address,ip_port(target_iqn)" "select": "address,ip_port(target_iqn)"
} }

View File

@ -47,9 +47,12 @@ class PowerStoreDriver(driver.VolumeDriver):
1.0.1 - Add CHAP support 1.0.1 - Add CHAP support
1.1.0 - Add volume replication v2.1 support 1.1.0 - Add volume replication v2.1 support
1.1.1 - Add Consistency Groups support 1.1.1 - Add Consistency Groups support
1.1.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.1.1" VERSION = "1.1.2"
VENDOR = "Dell EMC" VENDOR = "Dell EMC"
# ThirdPartySystems wiki page # 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.).