← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1771107] Re: unit test networking_bgpvpn.tests.unit.extensions.test_bgpvpn.BgpvpnExtensionTestCase.test_bgpvpn_list fails

 

I don't have a full analysis yet, but the part of [1] that causes the
breakage is more precisely the fact that the
extensions.PluginAwareExtensionManager singleton instance is created at
a different time than previously [2], and, in the context of the failing
unit test, at a time when the extension path does not include the path
to the directory containing the bgpvpn.py extension.

[1] https://review.openstack.org/#/c/545490/
[2] https://review.openstack.org/#/c/545490/19/neutron/api/api_common.py lines 78 -> 98

** Also 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/1771107

Title:
  unit test
  networking_bgpvpn.tests.unit.extensions.test_bgpvpn.BgpvpnExtensionTestCase.test_bgpvpn_list
  fails

Status in networking-bgpvpn:
  New
Status in neutron:
  New

Bug description:
  A change in neutron results in a networking-bgpvpn unit test failure:

  ======================================================================
  ERROR: networking_bgpvpn.tests.unit.extensions.test_bgpvpn.BgpvpnExtensionTestCase.test_bgpvpn_list
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/teom7365/prog/openstack/neutron/neutron/tests/base.py", line 140, in func
      return f(self, *args, **kwargs)
    File "networking_bgpvpn/tests/unit/extensions/test_bgpvpn.py", line 192, in test_bgpvpn_list
      _get_path(BGPVPN_URI, fmt=self.fmt))
    File "/home/teom7365/prog/openstack/networking-bgpvpn/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 331, in get
      expect_errors=expect_errors)
    File "/home/teom7365/prog/openstack/networking-bgpvpn/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 651, in do_request
      self._check_status(status, res)
    File "/home/teom7365/prog/openstack/networking-bgpvpn/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 683, in _check_status
      res)
  webtest.app.AppError: Bad response: 404 Not Found (not 200 OK or 3xx redirect for http://localhost/bgpvpn/bgpvpns.json)
  '{"NeutronError": {"message": "Extensions not found: [\'bgpvpn\'].", "type": "ExtensionsNotFound", "detail": ""}}'


  'git bisect' allows to identify the neutron commit which introduces
  the issue:

     https://review.openstack.org/#/c/545490/

  
  At this point, I don't have identified /why/ this commit causes this failure.

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