flannel icon indicating copy to clipboard operation
flannel copied to clipboard

restart network service will lost routing tables

Open miaoshixuan opened this issue 5 years ago • 4 comments

I use vxlan backend and set DirectRouting true.when I run service network restart , routing table added by flanneld will lose

Expected Behavior

all routing tables should recover

Current Behavior

routing talble added by flannel will lose

Possible Solution

Steps to Reproduce (for bugs)

  1. deploy flannel using vxlan backend and set DirectRouting true
  2. restart network service

Context

Your Environment

  • Flannel version: v0.10.0
  • Backend used (e.g. vxlan or udp): vxlan DirectRouting=true
  • Etcd version: 3.2.15
  • Kubernetes version (if used): 1.11.2
  • Operating System and version: centos 7.4
  • Link to your project (optional):

miaoshixuan avatar Dec 05 '18 08:12 miaoshixuan

Flannel doesn't monitor the state of host network. You should restart flannel if you restart network

lihezhong93 avatar Jan 11 '19 09:01 lihezhong93

There is automatic checking of routing tables and completion when the backend type is A host-gw. when vxlan default,network interface flannel.1 added, restarting the network will not affect the routing table of this interface.But if Directrouting turned on, the routing table will lost after restart network,I think this situation also needs to be checked like host-gw

yuchunyun avatar Sep 12 '19 09:09 yuchunyun

@zhangxiangui40542 any update on this issue - I too have the same issue - flannel routes get lost when used with vxlan with direct routing.

pravin-singhal avatar Jul 31 '20 02:07 pravin-singhal

It is not only network service restart problem. After interface is suddenly reset/disconnected (any maintenance on host/network, or network "flapped") direct routes are being lost and one is to monitor and maintain this situation manually.

apakhomov avatar Jun 08 '22 06:06 apakhomov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 25 '23 20:01 stale[bot]