nova-powervm tox failing with ImportError for wsgi_intercept

Bug #1707951 reported by Matthew Edmonds
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-powervm
Fix Released
High
Eric Fried

Bug Description

nova-powervm's tox is failing with numerous errors like the following:

2017-08-01 12:39:34.982547 | Failed to import test module: nova_powervm.tests.virt.powervm.volume.test_nfs
2017-08-01 12:39:34.982559 | Traceback (most recent call last):
2017-08-01 12:39:34.982597 | File "/home/jenkins/workspace/gate-nova-powervm-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
2017-08-01 12:39:34.982611 | module = self._get_module_from_name(name)
2017-08-01 12:39:34.982658 | File "/home/jenkins/workspace/gate-nova-powervm-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
2017-08-01 12:39:34.982667 | __import__(name)
2017-08-01 12:39:34.982688 | File "nova_powervm/tests/virt/powervm/volume/test_nfs.py", line 19, in <module>
2017-08-01 12:39:34.982708 | from nova_powervm.tests.virt.powervm.volume import test_driver as test_vol
2017-08-01 12:39:34.982730 | File "nova_powervm/tests/virt/powervm/volume/test_driver.py", line 21, in <module>
2017-08-01 12:39:34.982740 | from nova import test
2017-08-01 12:39:34.982770 | File "/home/jenkins/workspace/gate-nova-powervm-python27-ubuntu-xenial/.tox/py27/src/nova/nova/test.py", line 58, in <module>
2017-08-01 12:39:34.982786 | from nova.tests import fixtures as nova_fixtures
2017-08-01 12:39:34.982818 | File "/home/jenkins/workspace/gate-nova-powervm-python27-ubuntu-xenial/.tox/py27/src/nova/nova/tests/fixtures.py", line 34, in <module>
2017-08-01 12:39:34.982832 | from wsgi_intercept import interceptor
2017-08-01 12:39:34.982845 | ImportError: No module named wsgi_intercept

Appears to be the result of the combination of https://github.com/openstack/nova/commit/fdf27abf7db233ca51f12e2926d78c272b54935b and https://github.com/openstack/nova/commit/d3dfeb44d649a8e100ee4ce91468086cfebd9ab6

Revision history for this message
Eric Fried (efried) wrote :
Changed in nova-powervm:
assignee: nobody → Eric Fried (efried)
importance: Undecided → High
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova-powervm (master)

Reviewed: https://review.openstack.org/489645
Committed: https://git.openstack.org/cgit/openstack/nova-powervm/commit/?id=6cf382b960fb1cb27a1059108fbd97e789047ebe
Submitter: Jenkins
Branch: master

commit 6cf382b960fb1cb27a1059108fbd97e789047ebe
Author: Eric Fried <email address hidden>
Date: Tue Aug 1 10:41:55 2017 -0500

    Install nova test requirements for tox

    Because nova-powervm follows nova at a development level, we have to
    install the latest master branch, so we can't put nova in our
    [test-]requirements.txt. Instead, we put it in our tox.ini testenv
    deps as a git clone and install. This pulls in nova's requirements.txt,
    but not its test-requirements.txt.

    Change [1] moved nova's wsgi_intercept dependency from requirements.txt
    to test-requirements.txt; but this didn't cause problems yet because
    wsgi_intercept wasn't actually being imported in a path that mattered to
    nova-powervm testing until [2].

    This change set explicitly adds nova's test-requirements.txt, pulled
    from the master branch, to the nova-powervm testenv deps.

    [1] I0d8325e12ed7d5d022877782d6aa4ba4055c30db
    [2] I03b3abea152d45575ac6dde22ccbe32b6acb4646

    Change-Id: I9f4263f22fb73bf694bf0d2f766d1b921c1f2704
    Closes-Bug: #1707951

Changed in nova-powervm:
status: In Progress → 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.