[SVf] : Fix the SVC code level for lsfcportsetmember call

[Spectrum Virtualize family] lsfcportsetmember call was
introduced in SVC code level 8.5.x. But during portset implementation,
lsfcportsetmember was included in 8.4.2.0 which is incorrect as SVC
8.4.2.0 doesn't recognise this command.

Correcting the SVC code level for lsfcportsetmember call.

Closes-Bug: #1976499
Change-Id: Ia9f22d630ff9d9541bb36e5506679dd15c27d5d5
This commit is contained in:
haailani 2022-06-03 11:15:23 +00:00 committed by Harsh Ailani
parent 1472dfe687
commit 0df29396bf
2 changed files with 8 additions and 1 deletions

View File

@ -1160,7 +1160,7 @@ class StorwizeHelpers(object):
# indicates whether the port can be used for host I/O
targetportfc_resp = self.ssh.lstargetportfc(current_node_id=node_id,
host_io_permitted=host_io)
if code_level >= (8, 4, 2, 0):
if code_level >= (8, 5, 0, 0):
portset_name = portset if portset else 'portset64'
port_ids = set()
fcportsetmember_resp = self.ssh.lsfcportsetmember()

View File

@ -0,0 +1,7 @@
---
fixes:
- |
IBM Spectrum Virtualize Family driver: `Bug #1976499
<https://bugs.launchpad.net/cinder/+bug/1976499>`_:
Setting correct SVC Code level for lsfcportsetmember
call.