iSCSI: log exception if portals not found
If an exception occurs in _get_ips_iqns_luns(), a
TargetPortalsNotFound exception is raised, but nothing is logged. It
would be useful for debugging to know what led to the exception.
Closes-Bug:
@@ -195,6 +195,7 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
except exception.TargetPortalsNotFound:
raise
except Exception:
+ LOG.exception('Exception encountered during portal discovery')
if 'target_portals' in connection_properties:
raise exception.TargetPortalsNotFound(
target_portals=connection_properties['target_portals'])
