AttributeError: 'MidonetL3ServicePlugin' object has no attribute '_check_router_gw_port_in_use'

Bug #1645569 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

eg.
http://logs.openstack.org/27/400627/12/check/gate-tempest-dsvm-networking-midonet-v2-ubuntu-xenial/28c02c7/logs/screen-q-svc.txt.gz?level=TRACE

2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource [req-6029d431-c6f2-4a63-ab59-fa03311341b0 tempest-NetworkBasicTest-1385313445 -] delete failed: No details.
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/api/v2/resource.py", line 79, in resource
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource result = method(request=request, **args)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/api/v2/base.py", line 563, in delete
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource return self._delete(request, id, **kwargs)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/api.py", line 92, in wrapped
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource self.force_reraise()
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/api.py", line 88, in wrapped
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource self.force_reraise()
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/api.py", line 128, in wrapped
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource traceback.format_exc())
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource self.force_reraise()
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/api.py", line 123, in wrapped
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/api/v2/base.py", line 585, in _delete
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource obj_deleter(request.context, id, **kwargs)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py", line 48, in wrapper
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource return method(*args, **kwargs)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/networking-midonet/midonet/neutron/services/l3/l3_midonet.py", line 167, in delete_router
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource super(MidonetL3ServicePlugin, self).delete_router(context, id)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 1774, in delete_router
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource super(L3_NAT_db_mixin, self).delete_router(context, id)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/api.py", line 163, in wrapped
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource return method(*args, **kwargs)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 505, in delete_router
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource self._delete_current_gw_port(context, id, router, None)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource File "/opt/stack/new/networking-midonet/midonet/neutron/db/l3_db_midonet.py", line 140, in _delete_current_gw_port
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource self._check_router_gw_port_in_use(context, router_id)
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource AttributeError: 'MidonetL3ServicePlugin' object has no attribute '_check_router_gw_port_in_use'
2016-11-29 05:29:04.358 24238 ERROR neutron.api.v2.resource

Tags: gate-failure
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
importance: Undecided → Critical
milestone: none → 3.0.0
status: New → In Progress
tags: added: gate-failure
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (master)

Fix proposed to branch: master
Review: https://review.openstack.org/404028

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/404028
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=7ab5045458bb25aee57d49b968279c256a449804
Submitter: Jenkins
Branch: master

commit 7ab5045458bb25aee57d49b968279c256a449804
Author: YAMAMOTO Takashi <email address hidden>
Date: Tue Nov 29 15:11:07 2016 +0900

    l3: Clean up router-interface-fip code

    After [1], we don't need to override the whole method.
    This also fixes AttributeError after the recent Neutron change. [2]

    [1] Ied3bd9eac8bf2c3e6af9d4281aa8aa5a78e49870
    [2] I1d17706652811383d4bc968812d5cd6526febc4b

    Closes-Bug: #1645569
    Change-Id: I74c3a9ab06a8cc8585adb7e61673c6ba86a4ed19

Changed in networking-midonet:
status: In Progress → Fix Released
Changed in networking-midonet:
milestone: 3.0.0 → 4.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 4.0.0

This issue was fixed in the openstack/networking-midonet 4.0.0 release.

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.