[EVPN-Driver] Cannot remove routes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ovn-bgp-agent |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When executing remove_
```
Python 3.10.12 (main, Jul 4 2023, 05:58:45) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyroute2
>>> ipr = pyroute2.IPRoute()
>>> r = ipr.get_
>>> r[1]
{'family': 2, 'dst_len': 32, 'src_len': 0, 'tos': 0, 'table': 200, 'proto': 3, 'scope': 253, 'type': 1, 'flags': 0, 'attrs': [('RTA_TABLE', 200), ('RTA_DST', '92.148.12.2'), ('RTA_OIF', 11)], 'header': {'length': 52, 'type': 24, 'flags': 2, 'sequence_number': 255, 'pid': 1264284, 'error': None, 'target': 'localhost', 'stats': Stats(qsize=0, delta=0, delay=0)}, 'event': 'RTM_NEWROUTE'}
>>> r[1]['dst']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
return dict.__
KeyError: 'dst'
>>> r[1].get('dst')
'92.148.12.2'
>>>
```
```
2023-10-09 11:41:53.366 7 INFO ovn_bgp_
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent [-] Unexpected exception while running the sync: 'dst': KeyError: 'dst'
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent Traceback (most recent call last):
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent File "/usr/local/
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent self.agent_
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent File "/usr/local/
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent return f(*args, **kwargs)
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent File "/usr/local/
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent self._remove_
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent File "/usr/local/
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent possible_matchings = [
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent File "/usr/local/
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent if (r['dst'] == route_info[
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent File "/usr/local/
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent return dict.__
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent KeyError: 'dst'
2023-10-09 11:41:54.113 7 ERROR ovn_bgp_agent.agent
```
Changed in ovn-bgp-agent: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Fix proposed to branch: master /review. opendev. org/c/openstack /ovn-bgp- agent/+ /898824
Review: https:/