gate-neutron-*-python27 fails with ImportError: cannot import name test_db_plugin

Bug #1441501 reported by Thierry Carrez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Paul Michali

Bug Description

Currently on master all gate-neutron-fwaas-python27 tests fail with the following error:

2015-04-08 03:05:00.445 | Failed to import test module: neutron_fwaas.tests.unit.db.firewall.test_db_firewall
2015-04-08 03:05:00.446 | Traceback (most recent call last):
2015-04-08 03:05:00.446 | File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
2015-04-08 03:05:00.446 | module = self._get_module_from_name(name)
2015-04-08 03:05:00.446 | File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
2015-04-08 03:05:00.446 | __import__(name)
2015-04-08 03:05:00.446 | File "neutron_fwaas/tests/unit/db/firewall/test_db_firewall.py", line 35, in <module>
2015-04-08 03:05:00.446 | from neutron_fwaas.tests import base
2015-04-08 03:05:00.446 | File "neutron_fwaas/tests/base.py", line 18, in <module>
2015-04-08 03:05:00.447 | from neutron.tests.unit import test_db_plugin
2015-04-08 03:05:00.447 | ImportError: cannot import name test_db_plugin

See example at http://logs.openstack.org/39/169239/2/check/gate-neutron-fwaas-python27/0346944/

This blocks merging of version bumps for Kilo release.

Revision history for this message
Paul Michali (pcm) wrote :

I can work on this, if no one has started already... will take assignment.

Changed in neutron:
assignee: nobody → Paul Michali (pcm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-fwaas (master)

Fix proposed to branch: master
Review: https://review.openstack.org/171584

Changed in neutron:
assignee: Paul Michali (pcm) → Jakub Libosvar (libosvar)
status: New → In Progress
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote : Re: gate-neutron-fwaas-python27 fails with ImportError: cannot import name test_db_plugin

Is it just fwaas?

Revision history for this message
Thierry Carrez (ttx) wrote :

Maybe not. Looks like vpnaas triggered the same issue in a past check:

http://logs.openstack.org/06/171206/1/check/gate-neutron-vpnaas-python27/7fae11e/

Revision history for this message
Thierry Carrez (ttx) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-fwaas (master)

Change abandoned by Jakub Libosvar (<email address hidden>) on branch: master
Review: https://review.openstack.org/171584
Reason: Abandoned in favor of https://review.openstack.org/#/c/171602

Revision history for this message
Thierry Carrez (ttx) wrote :
summary: - gate-neutron-fwaas-python27 fails with ImportError: cannot import name
+ gate-neutron-*-python27 fails with ImportError: cannot import name
test_db_plugin
Changed in neutron:
assignee: Jakub Libosvar (libosvar) → Kyle Mestery (mestery)
Changed in neutron:
assignee: Kyle Mestery (mestery) → Paul Michali (pcm)
Revision history for this message
Thierry Carrez (ttx) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-fwaas (master)

Reviewed: https://review.openstack.org/171602
Committed: https://git.openstack.org/cgit/openstack/neutron-fwaas/commit/?id=96dc29350d3a728bd395a441d04861bab7775775
Submitter: Jenkins
Branch: master

commit 96dc29350d3a728bd395a441d04861bab7775775
Author: Paul Michali <email address hidden>
Date: Wed Apr 8 12:16:39 2015 +0000

    FWaaS: Reorganize unit test tree

    Similar to what is happening in Neutron, this commit renames and moves unit
    test files so that they match the directory structure of the code tree.
    Since the FWaaS repo's test files have imports from Neutron, there are import
    changes as well, to the imports to match the Neutron test file organization.
    A check script is added to monitor the test file naming and locations (to
    ensure consistency).

    Note: In the future the Neutron check_unit_test_structure.sh should be made
    configurable, and duplicate files removed from *aaS repos.

    Change-Id: I4cf1093eac88f62bbe1303233bfd37058db3821a
    Closes-Bug: #1441501

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-rc1 → 2015.1.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.