** Patch added: "lp1915678-bionic.debdiff" https://bugs.launchpad.net/ubuntu/+source/python-os-brick/+bug/1915678/+attachment/5540269/+files/lp1915678-bionic.debdiff
-- You received this bug notification because you are a member of STS Sponsors, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1915678 Title: [SRU] iSCSI+Multipath: Volume attachment hungs if sessiong scanning fails Status in Ubuntu Cloud Archive: New Status in Ubuntu Cloud Archive stein series: New Status in Ubuntu Cloud Archive train series: New Status in Ubuntu Cloud Archive ussuri series: New Status in Ubuntu Cloud Archive victoria series: New Status in os-brick: Fix Released Status in python-os-brick package in Ubuntu: Fix Released Status in python-os-brick source package in Bionic: In Progress Status in python-os-brick source package in Focal: In Progress Status in python-os-brick source package in Hirsute: Fix Released Status in python-os-brick source package in Impish: Fix Released Status in python-os-brick source package in Jammy: Fix Released Bug description: [Impact] * If some commands like "iscsiadm -m session" fail, the thread can abort immediately without updating any counters like failed_logins or stopped_threads properly, because there are no try-except block to catch exceptions. * The main thread keeps waiting until these counters are updated, and this results in stuck of volume attachment process. [Test Case] * Deploy Cinder with an iSCSI driver and multipath enabled. * TBC. [Where problems could occur] * Change primarily introduces error handling and doesn't change implementation details. As such we may see an error condition logged. [Other Info] * - --- Original Description --- Currently we execute login to iscsi portals and device discovery in multiple threads concurrently when multipath is enabled. However if some commands like "iscsiadm -m session" fail, the thread can abort immediately without updating any counters like failed_logins or stopped_threads properly, because there are no try-except block to catch exceptions. However the main thread keeps waiting until these counters are updated, and this results in stuck of volume attachment process. This issue was initially reported in downstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1923975 , and maybe is caused by a bug in iscsiadm command. However we should handle the error more properly because current behavior requires operators to restart services like cinder-volume to resolve the stuck. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1915678/+subscriptions -- Mailing list: https://launchpad.net/~sts-sponsors Post to : [email protected] Unsubscribe : https://launchpad.net/~sts-sponsors More help : https://help.launchpad.net/ListHelp

