Comment 4 for bug 1915678

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/os-brick/+/792359
Committed: https://opendev.org/openstack/os-brick/commit/c336cb76b318f987d43ff908a5b7c9d40b5c4dd6
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit c336cb76b318f987d43ff908a5b7c9d40b5c4dd6
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
    Change-Id: I0278c502806b99f8ec65cb146e3852e43031e9b8
    (cherry picked from commit 4478433550ddab970f106636a4ba5fbba82c5e39)
    (cherry picked from commit 57c8f4334c0e58b151f449f3316bb9e1c8ed6da4)