When a port needs to be fixed or created from the maintenance thread on the OVN side due to a discrepancy on the revisions this error is seen on the neutron server log:
Feb 01 20:42:11.533666 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance [None req-7865ae16-582c-400b-b302-6aedbac761e0 None None] Failed to fix resource 3a4bfdf8-e93a-45be-be00-c4eaf21fd2c2 (type: router_ports): RouterNotFound: Router network:router_gateway could not be found
Feb 01 20:42:11.533923 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance Traceback (most recent call last):
Feb 01 20:42:11.534153 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/networking-ovn/networking_ovn/common/maintenance.py", line 233, in check_for_inconsistencies
Feb 01 20:42:11.534367 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance self._fix_create_update(row)
Feb 01 20:42:11.534570 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/networking-ovn/networking_ovn/common/maintenance.py", line 160, in _fix_create_update
Feb 01 20:42:11.534784 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance res_map['ovn_create'](n_obj)
Feb 01 20:42:11.535001 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/networking-ovn/networking_ovn/common/maintenance.py", line 261, in _create_lrouter_port
Feb 01 20:42:11.535203 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance {'port_id': port['id']})
Feb 01 20:42:11.535414 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/networking-ovn/networking_ovn/l3/l3_ovn.py", line 165, in add_router_interface
Feb 01 20:42:11.535626 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance context, router_id, interface_info)
Feb 01 20:42:11.535966 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 1892, in add_router_interface
Feb 01 20:42:11.536265 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance context, router_id, interface_info)
Feb 01 20:42:11.536567 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/api.py", line 161, in wrapped
Feb 01 20:42:11.536915 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance return method(*args, **kwargs)
Feb 01 20:42:11.537208 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/api.py", line 91, in wrapped
Feb 01 20:42:11.537533 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance setattr(e, '_RETRY_EXCEEDED', True)
Feb 01 20:42:11.537870 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
Feb 01 20:42:11.538243 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance self.force_reraise()
Feb 01 20:42:11.538546 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
Feb 01 20:42:11.538828 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance six.reraise(self.type_, self.value, self.tb)
Feb 01 20:42:11.539123 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/api.py", line 87, in wrapped
Feb 01 20:42:11.539422 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance return f(*args, **kwargs)
Feb 01 20:42:11.539716 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 147, in wrapper
Feb 01 20:42:11.539963 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance ectxt.value = e.inner_exc
Feb 01 20:42:11.540178 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
Feb 01 20:42:11.540387 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance self.force_reraise()
Feb 01 20:42:11.540591 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
Feb 01 20:42:11.542243 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance six.reraise(self.type_, self.value, self.tb)
Feb 01 20:42:11.542512 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 135, in wrapper
Feb 01 20:42:11.542770 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance return f(*args, **kwargs)
Feb 01 20:42:11.542986 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/api.py", line 126, in wrapped
Feb 01 20:42:11.543194 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance LOG.debug("Retry wrapper got retriable exception: %s", e)
Feb 01 20:42:11.543400 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
Feb 01 20:42:11.543636 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance self.force_reraise()
Feb 01 20:42:11.543854 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
Feb 01 20:42:11.544052 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance six.reraise(self.type_, self.value, self.tb)
Feb 01 20:42:11.544252 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/api.py", line 122, in wrapped
Feb 01 20:42:11.544469 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance return f(*dup_args, **dup_kwargs)
Feb 01 20:42:11.544669 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 835, in add_router_interface
Feb 01 20:42:11.544887 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance router = self._get_router(context, router_id)
Feb 01 20:42:11.545119 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance File "/opt/stack/new/neutron/neutron/db/l3_db.py", line 187, in _get_router
Feb 01 20:42:11.545359 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance raise l3_exc.RouterNotFound(router_id=router_id)
Feb 01 20:42:11.545562 ubuntu-xenial-rax-ord-0002331188 neutron-server[25811]: ERROR networking_ovn.common.maintenance RouterNotFound: Router network:router_gateway could not be found
And the fix fails.
Fix proposed to branch: master /review. openstack. org/540391
Review: https:/