Unit tests are broken

Bug #1801745 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tricircle
Fix Released
Undecided
baisen

Bug Description

The last change to merge in tricircle was on Oct 14. It looks like since then, something has changed in neutronlib which causes unit tests to fail. Here are failures from a patch which should not have any impacts on what is failing in the tests:

http://logs.openstack.org/70/615470/1/check/openstack-tox-py27/c27f4fe/testr_results.html.gz

ft1.22: unit.network.test_central_plugin.PluginTest.test_update_network_StringException: Traceback (most recent call last):
  File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/zuul/src/git.openstack.org/openstack/tricircle/tricircle/tests/unit/network/test_central_plugin.py", line 1336, in test_update_network
    fake_plugin.update_network(neutron_context, t_net_id, update_body)
  File "tricircle/network/central_plugin.py", line 448, in update_network
    context, network_id, network)
  File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/local/lib/python2.7/site-packages/neutron_lib/db/api.py", line 233, in wrapped
    return method(*args, **kwargs)
  File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/src/neutron/neutron/db/db_base_plugin_v2.py", line 430, in update_network
    np_rbac_obj.create()
  File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/src/neutron/neutron/objects/base.py", line 316, in decorator
    return func(self, *args, **kwargs)
  File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/src/neutron/neutron/objects/base.py", line 771, in create
    self, self.obj_context, self.modify_fields_to_db(fields))
  File "/home/zuul/src/git.openstack.org/openstack/tricircle/.tox/py27/src/neutron/neutron/objects/db/api.py", line 63, in create_object
    context.session.add(db_obj)
  File "tricircle/tests/unit/utils.py", line 425, in add
    if net['id'] == model_dict['object']:
KeyError: 'object'

baisen (song1)
Changed in tricircle:
status: New → Confirmed
baisen (song1)
Changed in tricircle:
assignee: nobody → baisen (song1)
Revision history for this message
baisen (song1) wrote :

it is a neutron bug,wait for neutron to merge it!

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

baisen (song1)
Changed in tricircle:
status: Confirmed → 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.