In the case that there is some useful information in the
ProcessExecutionError (like stderr) when trying to terminate the
connection in the lio target, also log the error.
Related-Bug: #
1450658
Change-Id: Id28968735eca27c4c4e5892e14d06aece02b06f5
volume_iqn,
connector['initiator'],
run_as_root=True)
- except putils.ProcessExecutionError:
- LOG.error(_LE("Failed to delete initiator iqn %s to target.") %
- connector['initiator'])
+ except putils.ProcessExecutionError as e:
+ LOG.error(_LE("Failed to delete initiator iqn %(initiator)s to "
+ "target. Error: %(error)s"),
+ {'initiator': connector['initiator'], 'error': e})
raise exception.ISCSITargetDetachFailed(volume_id=volume['id'])
# We make changes persistent