Skip to content

Instantly share code, notes, and snippets.

@mriedem
Created June 10, 2016 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mriedem/2c28cdd97c046acad867eb31e164848d to your computer and use it in GitHub Desktop.
Save mriedem/2c28cdd97c046acad867eb31e164848d to your computer and use it in GitHub Desktop.
nova.tests.unit.network.test_neutronv2.TestNeutronv2AutoAllocateNetwork.test__ports_needed_per_instance_auto_reqs_no_nets_not_ready
-----------------------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/unit/network/test_neutronv2.py", line 4715, in test__ports_needed_per_instance_auto_reqs_no_nets_not_ready
self.context, mock.sentinel.neutron, requested_networks)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 485, in assertRaises
self.assertThat(our_callable, matcher)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 496, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 547, in _matchHelper
mismatch = matcher.match(matchee)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 475, in match
reraise(*matchee)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 1049, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "nova/network/neutronv2/api.py", line 1149, in _ports_needed_per_instance
if not self._can_auto_allocate_network(neutron):
File "<string>", line 2, in _can_auto_allocate_network
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 292, in checksig
sig.bind(*args, **kwargs)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/funcsigs/__init__.py", line 792, in bind
return args[0]._bind(args[1:], kwargs)
File "/home/user/git/nova/.tox/py27/local/lib/python2.7/site-packages/funcsigs/__init__.py", line 717, in _bind
raise TypeError(msg)
TypeError: 'neutron' parameter lacking default value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment