Avoid unhandled exceptions during connecting to iSCSI portals
Currently we don't properly catch some possible exceptions during
connectiing to iSCSI portals, like failures in "iscsiadm -m session".
Because of this _connect_vol threads can abort unexpectedly in some
failure patterns, and this abort causes hung in subsequent steps
waiting for results from _connct_vol threads.
This change ensures that any exceptions during connecting to iSCSI
portals are handled in the _connect_vol method corectly, to avoid
unexpected abort without updating thread results.
Reviewed: https:/ /review. opendev. org/c/openstack /os-brick/ +/792359 /opendev. org/openstack/ os-brick/ commit/ c336cb76b318f98 7d43ff908a5b7c9 d40b5c4dd6
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/ussuri
commit c336cb76b318f98 7d43ff908a5b7c9 d40b5c4dd6
Author: Takashi Kajinami <email address hidden>
Date: Mon Feb 15 10:58:13 2021 +0900
Avoid unhandled exceptions during connecting to iSCSI portals
Currently we don't properly catch some possible exceptions during
connectiing to iSCSI portals, like failures in "iscsiadm -m session".
Because of this _connect_vol threads can abort unexpectedly in some
failure patterns, and this abort causes hung in subsequent steps
waiting for results from _connct_vol threads.
This change ensures that any exceptions during connecting to iSCSI
portals are handled in the _connect_vol method corectly, to avoid
unexpected abort without updating thread results.
Conflicts:
os_ brick/tests/ initiator/ connectors/ test_iscsi. py
Closes-Bug: #1915678 f8ec65cb146e385 2e43031e9b8 70f106636a4ba5f bba82c5e39) 151f449f3316bb9 e1c8ed6da4)
Change-Id: I0278c502806b99
(cherry picked from commit 4478433550ddab9
(cherry picked from commit 57c8f4334c0e58b