Browse Source

Merge "Update supported transports for iscsi connector"

changes/39/533739/2
Zuul 4 years ago
committed by Gerrit Code Review
parent
commit
a5c79e385f
  1. 4
      os_brick/initiator/connectors/iscsi.py
  2. 7
      releasenotes/notes/bug-1722432-2408dab55c903c5b.yaml

4
os_brick/initiator/connectors/iscsi.py

@ -43,7 +43,7 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
"""Connector class to attach/detach iSCSI volumes."""
supported_transports = ['be2iscsi', 'bnx2i', 'cxgb3i', 'default',
'cxgb4i', 'qla4xxx', 'ocs', 'iser']
'cxgb4i', 'qla4xxx', 'ocs', 'iser', 'tcp']
VALID_SESSIONS_PREFIX = ('tcp:', 'iser:')
def __init__(self, root_helper, driver=None,
@ -268,7 +268,7 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
"""Check that given iscsi_iface uses only supported transports
Accepted transport names for provided iface param are
be2iscsi, bnx2i, cxgb3i, cxgb4i, default, qla4xxx, ocs or iser.
be2iscsi, bnx2i, cxgb3i, cxgb4i, default, qla4xxx, ocs, iser or tcp.
Note the difference between transport and iface;
unlike default(iscsi_tcp)/iser, this is not one and the same for
offloaded transports, where the default format is

7
releasenotes/notes/bug-1722432-2408dab55c903c5b.yaml

@ -0,0 +1,7 @@
---
fixes:
- |
[`bug 1722432 <https://bugs.launchpad.net/os-brick/+bug/1722432>`_]
Changes the supported_transports to support tcp transport. With this
change, we can define an custom iface with tcp transport to limit the
storage traffic only be transimitted via storage NIC we specified.
Loading…
Cancel
Save