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.
Reviewed: https:/ /review. opendev. org/753072 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6f35e4fd2af db8e26682fc5bd7 3dbe23236d25c7
Committed: https:/
Submitter: Zuul
Branch: master
commit 6f35e4fd2afdb8e 26682fc5bd73dbe 23236d25c7
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
Change-Id: I5b6c45b7b9a9ec