deb-python-os-brick/os_brick
Gorka Eguileor 8e4adda001 Don't obscure logs on iSCSI sendtargets failure
On iSCSI connections that make use of discovery we will be obscuring the
the logs if the sendtargets command fails because when we try to do the
cleanup another exception will be raised (TargetPortalsNotFound).

The original exception is still logged since we are using
excutils.save_and_reraise_exception(), but it will be misleading if we
don't pay close attention.

This patch fixes this by ignoring the 'Unable to find target portals
information on discoverydb.' error, but logging a debug log message,
when doing the cleanup because this exception means that the sendtargets
failed and therefore we don't have anything to cleanup.

Change-Id: I7ddf827c7f2285acd72fd5a2fcd351928cb5d2df
2017-07-13 14:38:08 +02:00
..
encryptors Merge "encryptors: Delay removal of legacy provider names" 2017-05-28 23:06:02 +00:00
initiator Don't obscure logs on iSCSI sendtargets failure 2017-07-13 14:38:08 +02:00
local_dev Revert "Don't use ignoreskipactivation for thin LVM" 2017-07-05 13:16:38 +00:00
privileged Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
remotefs Stop ignoring H405 hacking rule in tox 2017-05-24 00:44:57 +02:00
tests Don't obscure logs on iSCSI sendtargets failure 2017-07-13 14:38:08 +02:00
__init__.py Update os-brick requirements 2015-04-17 17:11:34 +00:00
exception.py Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
executor.py iSCSI multipath: improve logging on connect 2017-06-26 20:31:59 +02:00
i18n.py Remove log translations 2017-03-22 09:19:01 +08:00
utils.py Mask passwords in utils.trace for func params 2016-11-08 12:55:46 -05:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00