fix kury-cni exits unexpectedly when MTU of network is 0
If the MTU of the netowrk of interface is 0,
"Netlink Error, invalid argument" will be raised,
and kury-cni exits unexpectedly.
When mtu is 0,
1. dhcp-option-force of dnsmasq for is not set,
and mtu of interface of vm is set to be 1500 by default
2. mtu of qvo-xxx and qvb-xxx is set to 1500,
which is determined by configuration,network_device_mtu.
Fix this by adding default network device MTU configuration,
which is used instead if MTU of network is 0
Reviewed: https:/ /review. openstack. org/552856 /git.openstack. org/cgit/ openstack/ kuryr-kubernete s/commit/ ?id=c00513bb641 8b69e57cd4e9ae3 823409f3574579
Committed: https:/
Submitter: Zuul
Branch: master
commit c00513bb6418b69 e57cd4e9ae38234 09f3574579
Author: QingchuanHao <email address hidden>
Date: Wed Mar 14 17:41:14 2018 +0800
fix kury-cni exits unexpectedly when MTU of network is 0
If the MTU of the netowrk of interface is 0,
"Netlink Error, invalid argument" will be raised,
and kury-cni exits unexpectedly.
When mtu is 0, network_ device_ mtu.
1. dhcp-option-force of dnsmasq for is not set,
and mtu of interface of vm is set to be 1500 by default
2. mtu of qvo-xxx and qvb-xxx is set to 1500,
which is determined by configuration,
Fix this by adding default network device MTU configuration,
which is used instead if MTU of network is 0
Change-Id: I7c1140b116aa63 04aca13479a7d7e b82d828d16f
Close-Bug: 1738812