[SVf]: Incorrect portset value during driver intialization

[Spectrum Virtualize family] During initialization
by default taking the portset value is set to portset0,
even when a different portset is defined in the cinder.conf

During initialization, if the portset is not defined in cinder.conf,
only then it should pick portset0. Otherwise it should pick the value
from cinder.conf

Closes-Bug: #1982078
Change-Id: I1519b23a44ca8e86c2a969353f275a711d51454f
This commit is contained in:
haailani 2022-07-19 09:51:13 +00:00
parent 7b424fcdcb
commit 374efd1579
2 changed files with 10 additions and 1 deletions

View File

@ -3280,6 +3280,7 @@ class StorwizeSVCCommonDriver(san.SanDriver,
self._vdiskcopyops = {}
self._vdiskcopyops_loop = None
self.protocol = None
self._storwize_portset = self.configuration.storwize_portset
self._master_state = {'storage_nodes': {},
'enabled_protocols': set(),
'compression_enabled': False,
@ -3381,7 +3382,8 @@ class StorwizeSVCCommonDriver(san.SanDriver,
state['storage_nodes'] = helper.get_node_info()
# Add the iSCSI IP addresses and WWPNs to the storage node info
helper.add_iscsi_ip_addrs(state['storage_nodes'], state['code_level'])
helper.add_iscsi_ip_addrs(state['storage_nodes'], state['code_level'],
portset=self._storwize_portset)
helper.add_fc_wwpns(state['storage_nodes'], state['code_level'])
# For each node, check what connection modes it supports. Delete any

View File

@ -0,0 +1,7 @@
---
fixes:
- |
IBM Spectrum Virtualize Family driver: `Bug #1982078
<https://bugs.launchpad.net/cinder/+bug/1982078>`_:
Fixed the default portset value during driver
initialization.