Public bug reported:
In cleanup_deleted_ports
https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L1044
the port is deleted from _deleted_ports, but not from _deleted_ports_ts. In the
next loop, the port will be deleted again. However, the port has been deleted
from _deleted_ports, and a keyerror error is reported.
ERROR [oslo.service.loopingcall] Fixed interval looping call
'neutron.agent.dhcp.agent.NetworkCache.cleanup_deleted_ports' failed
Traceback (most recent call last):
File
"/home/isabek/projects/GIT/neutron/.tox/py38/lib/python3.8/site-packages/oslo_service/loopingcall.py",
line 150, in _run_loop
result = func(*self.args, **self.kw)
File "/home/isabek/projects/GIT/neutron/neutron/agent/dhcp/agent.py", line
1057, in cleanup_deleted_ports
self._deleted_ports.remove(port_id)
KeyError: '12345678-1234-aaaa-1234567890ab'
** Affects: neutron
Importance: Undecided
Assignee: Mamatisa Nurmatov (isabek)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Mamatisa Nurmatov (isabek)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1930838
Title:
key error in deleted_ports
Status in neutron:
New
Bug description:
In cleanup_deleted_ports
https://github.com/openstack/neutron/blob/master/neutron/agent/dhcp/agent.py#L1044
the port is deleted from _deleted_ports, but not from _deleted_ports_ts. In
the next loop, the port will be deleted again. However, the port has been
deleted from _deleted_ports, and a keyerror error is reported.
ERROR [oslo.service.loopingcall] Fixed interval looping call
'neutron.agent.dhcp.agent.NetworkCache.cleanup_deleted_ports' failed
Traceback (most recent call last):
File
"/home/isabek/projects/GIT/neutron/.tox/py38/lib/python3.8/site-packages/oslo_service/loopingcall.py",
line 150, in _run_loop
result = func(*self.args, **self.kw)
File "/home/isabek/projects/GIT/neutron/neutron/agent/dhcp/agent.py", line
1057, in cleanup_deleted_ports
self._deleted_ports.remove(port_id)
KeyError: '12345678-1234-aaaa-1234567890ab'
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1930838/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp