In commit 7c1d964faa we fixed how we disable greendns. This patch adds
a test for this. It also lays down the groundwork for future tests
of how we manage eventlet's monkeypatching.
How and what eventlet monkeypatches can be controlled by environment
variables that are processed by eventlet at import-time (for exmaple,
EVENTLET_NO_GREENDNS). Nova manages all of this in nova.monkey_patch.
Therefore, nova.monkey_patch must be the first thing to import
eventlet. As nova.tests.functional.__init__ imports nova.monkey_patch,
our new test can go in the functional tree.
Related-bug: 1895322
Change-Id: I5b6c45b7b9a9eca3c13ecfaa5f50942922b69270
(cherry picked from commit 6f35e4fd2afdb8e26682fc5bd73dbe23236d25c7)
Reviewed: https:/ /review. opendev. org/754220 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9ac794b93b8 27dde1d9545b88f d7913b7c00dacb
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 9ac794b93b827dd e1d9545b88fd791 3b7c00dacb
Author: Artom Lifshitz <email address hidden>
Date: Mon Sep 21 11:47:08 2020 -0400
Test for disabling greendns
In commit 7c1d964faa we fixed how we disable greendns. This patch adds
a test for this. It also lays down the groundwork for future tests
of how we manage eventlet's monkeypatching.
How and what eventlet monkeypatches can be controlled by environment NO_GREENDNS) . Nova manages all of this in nova.monkey_patch. functional. __init_ _ imports nova.monkey_patch,
variables that are processed by eventlet at import-time (for exmaple,
EVENTLET_
Therefore, nova.monkey_patch must be the first thing to import
eventlet. As nova.tests.
our new test can go in the functional tree.
Related-bug: 1895322 a3c13ecfaa5f509 42922b69270 26682fc5bd73dbe 23236d25c7)
Change-Id: I5b6c45b7b9a9ec
(cherry picked from commit 6f35e4fd2afdb8e