I have no clue while all dmesg pasted below:
dxc1:~# dmesg [33172557.649156] nr_pdflush_threads exported in /proc is scheduled for removal [39743274.216544] device fanbr0-mtu left promiscuous mode [39743274.216551] fanbr0: port 1(fanbr0-mtu) entered disabled state [39743274.259105] fanbr0: port 2(fanbr0-fan) entered disabled state [39743274.259320] device fanbr0-fan left promiscuous mode [39743274.259322] fanbr0: port 2(fanbr0-fan) entered disabled state [39743274.566557] device fanbr0-mtu entered promiscuous mode
in fact restart lxd will bring back the fan interface but with a wrong ip,
let me explain it, after running lxd cluster for a long time, I add a vip( 10.2.1.42 ) to the loopback device lo:1 for lvs usage, it seems fan interface choose the wrong interface and ip address
ip -d l show fanbr0-fan 6: fanbr0-fan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 65486 qdisc noqueue master fanbr0 state UNKNOWN mode DEFAULT group default qlen 1000 link/ether 4e:3a:18:86:5a:8b brd ff:ff:ff:ff:ff:ff promiscuity 1 vxlan id 15728640 fan-map 240.0.0.0/8:10.2.1.0/24 local 10.2.1.42 dev lo srcport 0 0 dstport 8472 ageing 300 bridge_slave state forwarding priority 32 cost 100 hairpin off guard off root_block off fastleave off learning on flood on addrgenmode none
its ok, I can temprary remove vip to fix this.
the real problem still why fan interface get remove when delete a stopped container ?