deb-python-os-brick/os_brick/tests/initiator
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
..
connectors Don't obscure logs on iSCSI sendtargets failure 2017-07-13 14:38:08 +02:00
__init__.py renamed the project to os-brick 2015-02-05 23:58:37 +00:00
test_connector.py Fix supported connectors for Power platform 2017-05-24 19:31:10 +00:00
test_host_driver.py Fix race in check and access of /dev/disk/by-path/ 2015-07-28 18:30:06 +02:00
test_linuxfc.py Detect if Fibre Channel support exists 2016-10-05 03:31:03 -07:00
test_linuxrbd.py Close connection to ceph after cinder bakcup 2016-09-30 13:02:00 +00:00
test_linuxscsi.py Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
test_linuxsheepdog.py Add sheepdog support 2016-02-19 04:57:12 +00:00