deprecate eventlet monkey patching with oslo.rootwrap

Change-Id: I4e0b5583151e3077d7cfe313d246babaa941614a
This commit is contained in:
Hervé Beraud
2025-01-29 13:42:33 +01:00
parent 6c3ee033c9
commit 75b1af0b30
3 changed files with 19 additions and 0 deletions
+6
View File
@@ -15,6 +15,8 @@
import os
import debtcollector
try:
import eventlet.patcher
except ImportError:
@@ -27,4 +29,8 @@ else:
if not _patched_socket:
import subprocess
else:
debtcollector.deprecate(
"Eventlet support is deprecated "
"and will be soon no longer supported. "
"Please migrate your code and stop monkey patching your environment.")
from eventlet.green import subprocess # noqa
@@ -0,0 +1,11 @@
---
deprecations:
- |
Eventlet usages are deprecated and the removal of Eventlet from
OpenStack `is planned <https://governance.openstack.org/tc//goals/proposed/remove-eventlet.html>`_,
for this reason using oslo.rootwrap in a monkey patched environment is
now deprecated. The support of Eventlet will be soon removed from
oslo.rootwrap.
Please start considering removing your internal Eventlet usages and
start migrating your stack.
+2
View File
@@ -1,3 +1,5 @@
# Requirements lower bounds listed here are our best effort to keep them up to
# date but we do not test them so no guarantee of having them all correct. If
# you find any incorrect lower bounds, let us know or propose a fix.
debtcollector>=3.0.0 # Apache-2.0