diff --git a/ironic_python_agent/__init__.py b/ironic_python_agent/__init__.py index d2480d8ff..c059101a9 100644 --- a/ironic_python_agent/__init__.py +++ b/ironic_python_agent/__init__.py @@ -9,8 +9,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - import eventlet +import os + +os.environ["EVENTLET_NO_GREENDNS"] = "yes" # NOTE(JayF) Without monkey_patching socket, API requests will hang with TLS # enabled. Enabling more than just socket for monkey patching causes failures