← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1536437] [NEW] 'module' object has no attribute 'moved_function' failure when buildnig debian package for Mitaka b2

 

Public bug reported:

When building the Debian package of Neutron for the Mitaka b2 release, I
get the below unit test failures. All other tests are ok (6451 tests).
Please help me to fix these last 3.


======================================================================
FAIL: unittest2.loader._FailedTest.neutron.tests.unit.agent.linux.test_bridge_lib
unittest2.loader._FailedTest.neutron.tests.unit.agent.linux.test_bridge_lib
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: neutron.tests.unit.agent.linux.test_bridge_lib
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "neutron/tests/unit/agent/linux/test_bridge_lib.py", line 20, in <module>
    from neutron.agent.linux import bridge_lib
  File "neutron/agent/linux/bridge_lib.py", line 23, in <module>
    from neutron.i18n import _LE
  File "neutron/i18n.py", line 25, in <module>
    _ = moves.moved_function(neutron._i18n._, '_', __name__, message=message)
AttributeError: 'module' object has no attribute 'moved_function'


======================================================================
FAIL: unittest2.loader._FailedTest.neutron.tests.unit.cmd.server
unittest2.loader._FailedTest.neutron.tests.unit.cmd.server
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: neutron.tests.unit.cmd.server
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 490, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "neutron/tests/unit/cmd/server/__init__.py", line 16, in <module>
    from neutron.cmd.eventlet import server
  File "neutron/cmd/eventlet/server/__init__.py", line 17, in <module>
    from neutron.server import wsgi_pecan
  File "neutron/server/wsgi_pecan.py", line 23, in <module>
    from neutron.pecan_wsgi import app as pecan_app 
  File "neutron/pecan_wsgi/app.py", line 23, in <module>
    from neutron.pecan_wsgi import hooks
  File "neutron/pecan_wsgi/hooks/__init__.py", line 23, in <module>
    from neutron.pecan_wsgi.hooks import translation
  File "neutron/pecan_wsgi/hooks/translation.py", line 22, in <module>
    from neutron.i18n import _LE
  File "neutron/i18n.py", line 25, in <module>
    _ = moves.moved_function(neutron._i18n._, '_', __name__, message=message)
AttributeError: 'module' object has no attribute 'moved_function'

======================================================================
FAIL: unittest2.loader._FailedTest.neutron.tests.unit.plugins.ml2.drivers.linuxbridge.agent.test_linuxbridge_neutron_agent
unittest2.loader._FailedTest.neutron.tests.unit.plugins.ml2.drivers.linuxbridge.agent.test_linuxbridge_neutron_agent
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: neutron.tests.unit.plugins.ml2.drivers.linuxbridge.agent.test_linuxbridge_neutron_agent
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py", line 21, in <module>
    from neutron.agent.linux import bridge_lib
  File "neutron/agent/linux/bridge_lib.py", line 23, in <module>
    from neutron.i18n import _LE
  File "neutron/i18n.py", line 25, in <module>
    _ = moves.moved_function(neutron._i18n._, '_', __name__, message=message)
AttributeError: 'module' object has no attribute 'moved_function'

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1536437

Title:
  'module' object has no attribute 'moved_function' failure when
  buildnig debian package for Mitaka b2

Status in neutron:
  New

Bug description:
  When building the Debian package of Neutron for the Mitaka b2 release,
  I get the below unit test failures. All other tests are ok (6451
  tests). Please help me to fix these last 3.

  
  ======================================================================
  FAIL: unittest2.loader._FailedTest.neutron.tests.unit.agent.linux.test_bridge_lib
  unittest2.loader._FailedTest.neutron.tests.unit.agent.linux.test_bridge_lib
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
  ImportError: Failed to import test module: neutron.tests.unit.agent.linux.test_bridge_lib
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
      __import__(name)
    File "neutron/tests/unit/agent/linux/test_bridge_lib.py", line 20, in <module>
      from neutron.agent.linux import bridge_lib
    File "neutron/agent/linux/bridge_lib.py", line 23, in <module>
      from neutron.i18n import _LE
    File "neutron/i18n.py", line 25, in <module>
      _ = moves.moved_function(neutron._i18n._, '_', __name__, message=message)
  AttributeError: 'module' object has no attribute 'moved_function'

  
  ======================================================================
  FAIL: unittest2.loader._FailedTest.neutron.tests.unit.cmd.server
  unittest2.loader._FailedTest.neutron.tests.unit.cmd.server
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
  ImportError: Failed to import test module: neutron.tests.unit.cmd.server
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 490, in _find_test_path
      package = self._get_module_from_name(name)
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
      __import__(name)
    File "neutron/tests/unit/cmd/server/__init__.py", line 16, in <module>
      from neutron.cmd.eventlet import server
    File "neutron/cmd/eventlet/server/__init__.py", line 17, in <module>
      from neutron.server import wsgi_pecan
    File "neutron/server/wsgi_pecan.py", line 23, in <module>
      from neutron.pecan_wsgi import app as pecan_app 
    File "neutron/pecan_wsgi/app.py", line 23, in <module>
      from neutron.pecan_wsgi import hooks
    File "neutron/pecan_wsgi/hooks/__init__.py", line 23, in <module>
      from neutron.pecan_wsgi.hooks import translation
    File "neutron/pecan_wsgi/hooks/translation.py", line 22, in <module>
      from neutron.i18n import _LE
    File "neutron/i18n.py", line 25, in <module>
      _ = moves.moved_function(neutron._i18n._, '_', __name__, message=message)
  AttributeError: 'module' object has no attribute 'moved_function'

  ======================================================================
  FAIL: unittest2.loader._FailedTest.neutron.tests.unit.plugins.ml2.drivers.linuxbridge.agent.test_linuxbridge_neutron_agent
  unittest2.loader._FailedTest.neutron.tests.unit.plugins.ml2.drivers.linuxbridge.agent.test_linuxbridge_neutron_agent
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
  ImportError: Failed to import test module: neutron.tests.unit.plugins.ml2.drivers.linuxbridge.agent.test_linuxbridge_neutron_agent
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
      __import__(name)
    File "neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py", line 21, in <module>
      from neutron.agent.linux import bridge_lib
    File "neutron/agent/linux/bridge_lib.py", line 23, in <module>
      from neutron.i18n import _LE
    File "neutron/i18n.py", line 25, in <module>
      _ = moves.moved_function(neutron._i18n._, '_', __name__, message=message)
  AttributeError: 'module' object has no attribute 'moved_function'

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1536437/+subscriptions


Follow ups