New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
olsr watchdog does not delete old smartgateway tunnel #522
Comments
Sounds to me like only a cosmetically issue. |
I disagree. I believe that when the smartgateway plugin is not able to create the tunnel (because the tunnel already exists) that it also does not set up the necessary firewall rules. I believe it can lead to unexpected behaviour. Another case example is if the old existing tunnel interface goes to a node which no longer exists, then olsrd restarts and builds a new tunnel interface. But in the routing table, the old tunnel interface is still there. This can also lead to unexpected behaviour. |
When OLSRd crashes, the old tunnels still exist. This can lead to unexpected behaviour. The tunnels to be removed start with "tnl_" See freifunk-berlin/firmware#522
A neighbor node of mine recently had an issue with this. No more internet was available because after each olsrd crash, the tunnels weren't removed. When I logged in, there were 7 stale tunnels, and the olsr daemon couldn't create a new one (unable to bind to link name since it already existed). I had to manually delete each tunnel instance and restart olsrd for the node to start working again. I highly recommend that the changes in pr #1761 in openwrt/luci be included in the next Hedy release. |
The pull request with openwrt/luci has been sitting idle for 3 months. Should I submit this as a patch for freifunk-berlin only? It would be unfortunate because this change could be useful to other communities as well. |
When OLSRd crashes, the old tunnels still exist. This can lead to unexpected behaviour. The tunnels to be removed start with "tnl_" See freifunk-berlin/firmware#522 Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
merged in openwrt/luci#1761 closed |
When OLSRd crashes, the old tunnels still exist. This can lead to unexpected behaviour. The tunnels to be removed start with "tnl_" See freifunk-berlin/firmware#522 Signed-off-by: pmelange <isprotejesvalkata@gmail.com> (cherry picked from commit 5d0b720)
When OLSRd crashes, the old tunnels still exist. This can lead to unexpected behaviour. The tunnels to be removed start with "tnl_" See freifunk-berlin/firmware#522 Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
When the olsr watchdog notices that the olsr daemon no longer runs, it simply restarts the daemon. But the smartgateway tunnel "tnl_+" is not deleted. When the olsr daemon then restarts, it is unable to create a tunnel if the tunnel to the same destination already exists. See the error log below.
By deleting the tunnel and restarting olsr, everything works again.
The text was updated successfully, but these errors were encountered: