Disable eventlet monkey-patching of DNS
This change avoids eventlet's monkey-patching of DNS resolution. eventlet's doesn't support IPv6, for example. A similar change was made in nova, so this is just copying that code and technique to ceilometer. Fixes bug #1404886 bug #1325399 Change-Id: I06391fb5f651dbd430a6fb75b0fd0c337aa0a634
This commit is contained in:
parent
0978b918e7
commit
001d13cc0b
@ -14,6 +14,13 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
# This must be set before the initial import of eventlet because if
|
||||||
|
# dnspython is present in your environment then eventlet monkeypatches
|
||||||
|
# socket.getaddrinfo() with an implementation which doesn't work for IPv6.
|
||||||
|
import os
|
||||||
|
|
||||||
|
os.environ['EVENTLET_NO_GREENDNS'] = 'yes'
|
||||||
|
|
||||||
|
|
||||||
class NotImplementedError(NotImplementedError):
|
class NotImplementedError(NotImplementedError):
|
||||||
# FIXME(jd) This is used by WSME to return a correct HTTP code. We should
|
# FIXME(jd) This is used by WSME to return a correct HTTP code. We should
|
||||||
|
Loading…
x
Reference in New Issue
Block a user