Unit tests fail with Routes==2.1

Bug #1469883 reported by Davanum Srinivas (DIMS)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Davanum Srinivas (DIMS)

Bug Description

Don't know yet why we are not seeing this in CI as Routes has been out since Jan. our g-r does exclude 2.0, but not 2.1

dims@dims-mac:~/openstack/openstack/nova$ . .tox/py27/bin/activate
(py27)dims@dims-mac:~/openstack/openstack/nova$ pip freeze | grep Route
Routes==1.13
(py27)dims@dims-mac:~/openstack/openstack/nova$ python
Python 2.7.9 (default, Feb 10 2015, 03:28:08)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from nova.api.ec2 import apirequest
>>>
(py27)dims@dims-mac:~/openstack/openstack/nova$ pip install -U Routes==2.1
Collecting Routes==2.1
Requirement already up-to-date: repoze.lru>=0.3 in ./.tox/py27/lib/python2.7/site-packages (from Routes==2.1)
Installing collected packages: Routes
  Found existing installation: Routes 1.13
    Uninstalling Routes-1.13:
      Successfully uninstalled Routes-1.13
Successfully installed Routes-2.1
(py27)dims@dims-mac:~/openstack/openstack/nova$ python
Python 2.7.9 (default, Feb 10 2015, 03:28:08)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from nova.api.ec2 import apirequest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "nova/api/ec2/__init__.py", line 47, in <module>
    from nova import wsgi
  File "nova/wsgi.py", line 34, in <module>
    import routes.middleware
  File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/__init__.py", line 145, in <module>
    from routes.mapper import Mapper
  File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/mapper.py", line 8, in <module>
    from routes.util import (
  File "/Users/dims/openstack/openstack/nova/.tox/py27/lib/python2.7/site-packages/routes/util.py", line 10, in <module>
    import urllib.request, urllib.parse, urllib.error
ImportError: No module named request
>>>

tags: added: testing versioning
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Will be fixed in proposal bot review:
https://review.openstack.org/#/c/197597/

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

197597 has merged

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-2 → 12.0.0
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.