Open fqucuo opened 2 years ago
ndb = pyroute2.NDB(log='debug')
900+ is not a number, I test it on 50k+ routes, so it must work
if doesn't — it's clearly a bug, and thanks for the report
as I see from the logs, the error is related to the netns monitoring, I'm to investigate & fix it tonight
@fqucuo a fix is under way: https://github.com/svinota/pyroute2/pull/994
I can not reproduce the error yet, so it takes some time to fix everything properly.
Meanwhile you can switch off the netns manager source by:
ndb = NDB(log='debug', sources=[{'target': 'localhost'}])
A fix that helps to mitigate the issue is merged into the master, but it doesn't fix the root cause. The work on that will be continued.
@svinota got it, thanks.
same here
Linux xxx 5.10.0-24-amd64 #1 SMP Debian 5.10.179-5 (2023-08-08) x86_64 GNU/Linux
workaround seem to work
OS: debian 11, Upgraded to latest uname -a: Linux debian 5.10.0-16-amd64 #1 SMP Debian 5.10.127-2 (2022-07-23) x86_64 GNU/Linux Python: 3.9.2 pyroute2: 0.7.2 Docker containers: 60+ More than 900+ route records(ip route show table all)
Steps to reproduce and exceptions
YES, I have a very huge number routes in host, every host run more than 60+ docker containers, but only hangs on debian 11.