Patching the eventlet hub by setting the environment variable will not be
effective if hub singleton was already set by some imported module.
Calling `use_hub()` will reset it's value based on the current overrides.
Change-Id: Ida6756b50266b4b2b2545f82e03e83e1c3be1e9e
Closes-Bug: #1897877
(cherry picked from commit 7f75fc1d4e7116b954db8924374e39c9fa8d9f6e)
(cherry picked from commit 5b35903e145a0a1b8c64b7f4ba71fa98ea1d935b)
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.service/ +/760775 /opendev. org/openstack/ oslo.service/ commit/ f22fe54a9e6c7e7 19f58eefefc0a44 b9e3575eb4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit f22fe54a9e6c7e7 19f58eefefc0a44 b9e3575eb4
Author: Jacek Tomasiak <email address hidden>
Date: Wed Sep 30 11:26:11 2020 +0200
[StableOnly] Reset eventlet hub after patching
Patching the eventlet hub by setting the environment variable will not be
effective if hub singleton was already set by some imported module.
Calling `use_hub()` will reset it's value based on the current overrides.
Change-Id: Ida6756b50266b4 b2b2545f82e03e8 3e1c3be1e9e 954db8924374e39 c9fa8d9f6e) b8c64b7f4ba71fa 98ea1d935b)
Closes-Bug: #1897877
(cherry picked from commit 7f75fc1d4e7116b
(cherry picked from commit 5b35903e145a0a1