Any import of middleware emits DeprecationWarning

Bug #1629671 reported by Henry Gessau
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.middleware
Fix Released
Undecided
Unassigned

Bug Description

For example, neutron's test logs are filled with:

2016-10-02 06:51:44.072206 | /home/jenkins/workspace/gate-neutron-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_middleware/ssl.py:28: DeprecationWarning: The 'oslo_middleware.ssl' module usage is deprecated, please use oslo_middleware.http_proxy_to_wsgi instead
2016-10-02 06:51:44.072236 | "oslo_middleware.http_proxy_to_wsgi")

Neutron is not making any attempt to use oslo_middleware.ssl

The warning is due to the import of ssl.SSLMiddleware from __init__:

  File "neutron/tests/unit/api/v2/test_base.py", line 32, in <module>
    from neutron.api import api_common
  File "neutron/api/api_common.py", line 30, in <module>
    from neutron import wsgi
  File "neutron/wsgi.py", line 42, in <module>
    from neutron.common import config
  File "neutron/common/config.py", line 28, in <module>
    from oslo_middleware import cors
  File ".tox/py27/local/lib/python2.7/site-packages/oslo_middleware/__init__.py", line 31, in <module>
    from oslo_middleware.ssl import SSLMiddleware
  File ".tox/py27/local/lib/python2.7/site-packages/oslo_middleware/ssl.py", line 28, in <module>
    "oslo_middleware.http_proxy_to_wsgi")

Henry Gessau (gessau)
description: updated
Revision history for this message
Henry Gessau (gessau) wrote :
Changed in oslo.middleware:
assignee: nobody → Henry Gessau (gessau)
status: New → In Progress
Henry Gessau (gessau)
Changed in oslo.middleware:
assignee: Henry Gessau (gessau) → nobody
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.middleware 3.20.0

This issue was fixed in the openstack/oslo.middleware 3.20.0 release.

Changed in oslo.middleware:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.