ed91915a4e
If dnspython is present it causes socket.getaddrinfo() to be monkeypatched wiht code that does not work with IPv6. To get around this, the EVENTLET_NO_GREENDNS environment variable must be set before importing eventlet. This is resolved in the eventlet upstream code [1], but has not yet been released. Once our requirements have been raised past the 0.19.0 release with a version that includes this change we can remove this workaround. [1]52b09becac
Change-Id: Id9fe265d67f6e9ea5090bebcacae4a7a9150c5c2 Closes-bug: #1471049 (cherry picked from commit4f31fb7962
) Conflicts: cinder/__init__.py
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
# Copyright 2010 United States Government as represented by the
|
|
# Administrator of the National Aeronautics and Space Administration.
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, 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.
|
|
|
|
"""
|
|
:mod:`cinder` -- Cloud IaaS Platform
|
|
===================================
|
|
|
|
.. automodule:: cinder
|
|
:platform: Unix
|
|
:synopsis: Infrastructure-as-a-Service Cloud platform.
|
|
"""
|
|
|
|
import os
|
|
|
|
# Ensure compatibility issues are covered with pythondsn
|
|
os.environ['EVENTLET_NO_GREENDNS'] = 'yes'
|
|
|
|
# Make sure eventlet is loaded
|
|
import eventlet # noqa
|