deb-python-os-brick/os_brick/tests/initiator/connectors
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
..
__init__.py Splitting Out Connectors from connector.py 2016-08-02 15:54:15 -05:00
test_aoe.py Replace assertDictMatch with assertDictEqual 2016-12-22 11:12:47 +08:00
test_base_iscsi.py Use assertEqual() instead of assertDictEqual() 2016-09-26 11:45:23 +07:00
test_disco.py Stop ignoring E123 and E125 pycodestyle rules 2017-05-24 00:43:02 +02:00
test_drbd.py Splitting Out Connectors from connector.py 2016-08-02 15:54:15 -05:00
test_fibre_channel.py Fix slow test_connect_volume_device_not_valid test 2017-06-09 14:18:58 +02:00
test_fibre_channel_ppc64.py Adding support for FibreChannelConnector for PPC64 2017-04-30 03:06:18 -04:00
test_fibre_channel_s390x.py s390 FC device path fix for Ubuntu 2017-01-12 08:55:23 +01:00
test_gpfs.py Add connector for GPFS volumes 2016-08-16 16:09:52 +05:30
test_hgst.py Fix unittest run on s390x host 2017-02-22 20:43:16 +00:00
test_huawei.py Splitting Out Connectors from connector.py 2016-08-02 15:54:15 -05:00
test_iscsi.py Don't obscure logs on iSCSI sendtargets failure 2017-07-13 14:38:08 +02:00
test_local.py Splitting Out Connectors from connector.py 2016-08-02 15:54:15 -05:00
test_rbd.py Prevent rbd map again if it's already mapped 2017-05-18 12:08:20 +08:00
test_remotefs.py Splitting Out Connectors from connector.py 2016-08-02 15:54:15 -05:00
test_scaleio.py Fix the mocking mess 2016-08-03 18:40:42 +02:00
test_sheepdog.py Change assertTrue(isinstance()) with optimal assert 2016-09-01 18:27:30 +08:00
test_vmware.py Add connector for vmdk volumes 2016-08-09 17:23:30 +05:30
test_vrtshyperscale.py Fixed the veritas connector path 2017-05-23 18:32:54 +00:00