← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1448040] [NEW] run_tests.sh failed with code coverage

 

*** This bug is a duplicate of bug 1448031 ***
    https://bugs.launchpad.net/bugs/1448031

Public bug reported:

When we try to run nova code coverage using ./run_tests.sh --coverage or
./run_tests.sh -c it does not run test suit and fails with following
errors

Failed to import test module: nova.tests.unit.volume.test_cinder
Traceback (most recent call last):
  File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
    module = self._get_module_from_name(name)
  File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
    __import__(name)
  File "/opt/stack/nova/nova/tests/unit/volume/test_cinder.py", line 21, in <module>
    from nova import test
  File "/opt/stack/nova/nova/test.py", line 47, in <module>
    from nova.network import manager as network_manager
  File "/opt/stack/nova/nova/network/manager.py", line 51, in <module>
    from nova import ipv6
  File "/opt/stack/nova/nova/ipv6/__init__.py", line 15, in <module>
    from nova.ipv6.api import *  # noqa
  File "/opt/stack/nova/nova/ipv6/api.py", line 42, in <module>
    reset_backend()
  File "/opt/stack/nova/nova/ipv6/api.py", line 31, in reset_backend
    CONF.ipv6_backend).driver
  File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/stevedore/driver.py", line 45, in __init__
    verify_requirements=verify_requirements,
  File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/stevedore/named.py", line 56, in __init__
    self._init_plugins(extensions)
  File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/stevedore/driver.py", line 97, in _init_plugins
    (self.namespace, name))
RuntimeError: No 'nova.ipv6_backend' driver found, looking for 'rfc2462'

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1448040

Title:
  run_tests.sh failed with code coverage

Status in OpenStack Compute (Nova):
  New

Bug description:
  When we try to run nova code coverage using ./run_tests.sh --coverage
  or ./run_tests.sh -c it does not run test suit and fails with
  following errors

  Failed to import test module: nova.tests.unit.volume.test_cinder
  Traceback (most recent call last):
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
      module = self._get_module_from_name(name)
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
      __import__(name)
    File "/opt/stack/nova/nova/tests/unit/volume/test_cinder.py", line 21, in <module>
      from nova import test
    File "/opt/stack/nova/nova/test.py", line 47, in <module>
      from nova.network import manager as network_manager
    File "/opt/stack/nova/nova/network/manager.py", line 51, in <module>
      from nova import ipv6
    File "/opt/stack/nova/nova/ipv6/__init__.py", line 15, in <module>
      from nova.ipv6.api import *  # noqa
    File "/opt/stack/nova/nova/ipv6/api.py", line 42, in <module>
      reset_backend()
    File "/opt/stack/nova/nova/ipv6/api.py", line 31, in reset_backend
      CONF.ipv6_backend).driver
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/stevedore/driver.py", line 45, in __init__
      verify_requirements=verify_requirements,
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/stevedore/named.py", line 56, in __init__
      self._init_plugins(extensions)
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/stevedore/driver.py", line 97, in _init_plugins
      (self.namespace, name))
  RuntimeError: No 'nova.ipv6_backend' driver found, looking for 'rfc2462'

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


Follow ups

References