nokia / danm

TelCo grade network management in a Kubernetes cluster
BSD 3-Clause "New" or "Revised" License
373 stars 81 forks source link

Tenant network always loss ipvlan link #257

Closed antzjm closed 3 years ago

antzjm commented 3 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

bug

What happened: After I restart host infra, The tenant network with ipvlan always loss links. And I restart network-watch daemon-set to recover. What you expected to happen: Restart host and keep fine. How to reproduce it:

Anything else we need to know?:

Environment:

Levovar commented 3 years ago

@antzjm : just to check if I understand the problem description 1: you deploy above network -> netwatcher creates the host interface as usual 2: you restart the host -> host VLAN interface disappears 3: you restart netwatcher on this host -> host VLAN interface is re-created again is this correct?

antzjm commented 3 years ago

@Levovar Yes. When host VLAN interface loss, pod can not created due to CNI network plugin fail.

Levovar commented 3 years ago
# ip l | grep 2000
# kubectl create -f test_net.yaml
clusternetwork.danm.k8s.io/external created
# ip l | grep 2000
117: external.2000@infra-bond: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default
# reboot
...
# ip l | grep 2000
91: external.2000@infra-bond: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default

I'm not sure what's your issue exactly, but the described scenario works as intended

Levovar commented 3 years ago

closing as the reported scenario cannot be reproduced, and is working as intended