Merge "LIO: Enable iSER for IPv6"

This commit is contained in:
Jenkins 2015-05-12 22:30:14 +00:00 committed by Gerrit Code Review
commit c6b8faec40

View File

@ -83,12 +83,22 @@ def create(backing_device, name, userid, password, iser_enabled,
'RDMA is supported on your iSCSI port.'))
raise
portal = None
try:
rtslib.NetworkPortal(tpg_new, '::0', 3260, mode='any')
portal = rtslib.NetworkPortal(tpg_new, '::0', 3260, mode='any')
except rtslib.utils.RTSLibError:
# TODO(emh): Binding to IPv6 fails sometimes -- let pass for now.
pass
try:
if portal and iser_enabled == 'True':
portal.iser = True
except rtslib.utils.RTSLibError:
print (_('Error enabling iSER for IPv6 NetworkPortal: please '
'ensure that RDMA is supported on your iSCSI port.'))
raise
def _lookup_target(target_iqn, initiator_iqn):
try: