create network failed as allocate_tenant_segment function break out TypeError

Bug #1820174 reported by ZhangChi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tricircle
Fix Released
Undecided
Unassigned
neutron
Invalid
Undecided
Unassigned

Bug Description

when runnning tricircle testcase
TypeError was breaked out when create netowrk as follows:
2019-03-11 16:20:46.679438 | ubuntu-xenial | {3} tricircle.tests.unit.network.test_central_plugin.PluginTest.test_delete_local_router [0.259334s] ... FAILED
2019-03-11 16:20:46.679531 | ubuntu-xenial |
2019-03-11 16:20:46.679675 | ubuntu-xenial | Captured traceback:
2019-03-11 16:20:46.679858 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~
2019-03-11 16:20:46.680116 | ubuntu-xenial | Traceback (most recent call last):
2019-03-11 16:20:46.680737 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
2019-03-11 16:20:46.680941 | ubuntu-xenial | return func(*args, **keywargs)
2019-03-11 16:20:46.681347 | ubuntu-xenial | File "tricircle/tests/unit/network/test_central_plugin.py", line 3465, in test_delete_local_router
2019-03-11 16:20:46.681701 | ubuntu-xenial | t_ctx, q_ctx, fake_plugin, '["pod_1"]', ["pod_1"], '["pod_1"]')
2019-03-11 16:20:46.682279 | ubuntu-xenial | File "tricircle/tests/unit/network/test_central_plugin.py", line 3090, in _prepare_associate_floatingip_test
2019-03-11 16:20:46.682600 | ubuntu-xenial | e_net = fake_plugin.create_network(q_ctx, {'network': net_body})
2019-03-11 16:20:46.682995 | ubuntu-xenial | File "tricircle/tests/unit/network/test_central_plugin.py", line 825, in create_network
2019-03-11 16:20:46.683289 | ubuntu-xenial | net = super(FakePlugin, self).create_network(context, network)
2019-03-11 16:20:46.683604 | ubuntu-xenial | File "tricircle/network/central_plugin.py", line 319, in create_network
2019-03-11 16:20:46.683721 | ubuntu-xenial | tenant_id)
2019-03-11 16:20:46.684041 | ubuntu-xenial | File "tricircle/network/managers.py", line 76, in create_network_segments
2019-03-11 16:20:46.684298 | ubuntu-xenial | segment = self._allocate_tenant_net_segment(context)
2019-03-11 16:20:46.684959 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/local/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 282, in _allocate_tenant_net_segment
2019-03-11 16:20:46.685257 | ubuntu-xenial | segment = self._allocate_segment(context, network_type, filters)
2019-03-11 16:20:46.685942 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/local/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py", line 276, in _allocate_segment
2019-03-11 16:20:46.686259 | ubuntu-xenial | return driver.obj.allocate_tenant_segment(context.session, filters)
2019-03-11 16:20:46.686573 | ubuntu-xenial | TypeError: allocate_tenant_segment() takes exactly 2 arguments (3 given)
2019-03-11 16:20:46.686643 | ubuntu-xenial |
2019-03-11 16:20:46.687094 | ubuntu-xenial | {7} tricircle.tests.unit.common.test_exception.TricircleExceptionTestCase.test_error_code_from_kwarg [0.000366s] ... ok

Revision history for this message
LIU Yulong (dragon889) wrote :
Changed in neutron:
status: New → Invalid
baisen (song1)
Changed in tricircle:
status: New → Fix Committed
status: Fix Committed → Fix Released
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.