diff --git a/os_brick/initiator/connectors/iscsi.py b/os_brick/initiator/connectors/iscsi.py index 4202cbfac..ad9dfabd6 100644 --- a/os_brick/initiator/connectors/iscsi.py +++ b/os_brick/initiator/connectors/iscsi.py @@ -42,7 +42,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, @@ -267,7 +267,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 diff --git a/releasenotes/notes/bug-1722432-2408dab55c903c5b.yaml b/releasenotes/notes/bug-1722432-2408dab55c903c5b.yaml new file mode 100644 index 000000000..1f9c3645f --- /dev/null +++ b/releasenotes/notes/bug-1722432-2408dab55c903c5b.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + [`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.