Comment 10 for bug 1983863

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.log (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/oslo.log/+/911940
Committed: https://opendev.org/openstack/oslo.log/commit/95461ed9dfb4fb02378ef9e5782ce6642a1a102b
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 95461ed9dfb4fb02378ef9e5782ce6642a1a102b
Author: Gorka Eguileor <email address hidden>
Date: Mon Aug 8 16:44:20 2022 +0200

    Fix logging in eventlet native threads

    There is a bug in eventlet where logging within a native thread can lead
    to a deadlock situation: https://github.com/eventlet/eventlet/issues/432

    When encountered with this issue some projects in OpenStack using
    oslo.log, eg. Cinder, resolve them by removing any logging withing
    native threads.

    There is actually a better approach. The Swift team came up with a
    solution a long time ago [1], and in this patch that fix is included as
    part of the setup method, but will only be run if the eventlet library
    has already been loaded.

    This patch adds the eventlet library as a testing dependency for the
    PipeMutext unit tests.

    [1]: https://opendev.org/openstack/swift/commit/69c715c505cf9e5df29dc1dff2fa1a4847471cb6

    Closes-Bug: #1983863
    Change-Id: Iac1b0891ae584ce4b95964e6cdc0ff2483a4e57d
    (cherry picked from commit 94b9dc32ec1f52a582adbd97fe2847f7c87d6c17)