Reviewed: https://review.openstack.org/540551 Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=8b18f0574a6619279b7fc6169f74f2bbea0e30f1 Submitter: Zuul Branch: stable/pike
commit 8b18f0574a6619279b7fc6169f74f2bbea0e30f1 Author: Eric K <email address hidden> Date: Fri Feb 2 15:22:36 2018 -0800
eventlet workaround to avoid import cycle issue
Do get_hub() before monkey_patch() to workaround issue with import cycles in eventlet < 0.22.0; Based on the worked-around in eventlet with patch https://github.com/eventlet/eventlet/commit/b756447bab51046dfc6f1e0e299cc997ab343701
Also moved monkey_patch() up as far as possible to make sure all imports get patched modules.
Closes-Bug: 1746136 Closes-Bug: 1745112
Conceptually cherry-picked from change I72c349e81dfc02136b22637c707ad4908c9f269e
Change-Id: I0ed736f30f8fd7a3ec046e5810b84b52910fa4c9
Reviewed: https:/ /review. openstack. org/540551 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=8b18f0574a6 619279b7fc6169f 74f2bbea0e30f1
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 8b18f0574a66192 79b7fc6169f74f2 bbea0e30f1
Author: Eric K <email address hidden>
Date: Fri Feb 2 15:22:36 2018 -0800
eventlet workaround to avoid import cycle issue
Do get_hub() before monkey_patch() to workaround issue with /github. com/eventlet/ eventlet/ commit/ b756447bab51046 dfc6f1e0e299cc9 97ab343701
import cycles in eventlet < 0.22.0;
Based on the worked-around in eventlet with patch
https:/
Also moved monkey_patch() up as far as possible to make sure all imports
get patched modules.
Closes-Bug: 1746136
Closes-Bug: 1745112
Conceptually cherry-picked from change I72c349e81dfc02 136b22637c707ad 4908c9f269e
Change-Id: I0ed736f30f8fd7 a3ec046e5810b84 b52910fa4c9