From e9d597db3a9e8a38577908f36f5f700e875d4d78 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 30 Dec 2017 23:04:17 +0100 Subject: [baremetal] cmp: Add missing public gw (default) When we dropped the default gw via mas01 NAT, we uncovered a bug, compute nodes do not have the proper public gw set up and used to reach public network via mas01, slowing everything down. Add gw similar to prx nodes. Fixes: d4ab072 Change-Id: I4343c31c376a7a223670cdd623366454396d8d92 Signed-off-by: Alexandru Avadanii --- ...rk.interface-Fix-ifup-OVS-port-with-route.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mcp/patches/0007-network.interface-Fix-ifup-OVS-port-with-route.patch (limited to 'mcp/patches/0007-network.interface-Fix-ifup-OVS-port-with-route.patch') diff --git a/mcp/patches/0007-network.interface-Fix-ifup-OVS-port-with-route.patch b/mcp/patches/0007-network.interface-Fix-ifup-OVS-port-with-route.patch new file mode 100644 index 000000000..c36631aea --- /dev/null +++ b/mcp/patches/0007-network.interface-Fix-ifup-OVS-port-with-route.patch @@ -0,0 +1,32 @@ +From: Alexandru Avadanii +Date: Sun, 31 Dec 2017 16:06:30 +0100 +Subject: [PATCH] network.interface: Fix ifup OVS port with route + +This change attempts to fix the following sequence for nodes with +OVS ports that also have routes defined: +- state.sls linux.network; system.reboot; state.sls linux.network; + +If an OVS port also has a route defined, a route cfg file is +created in , which is sourced after +system reboot before we (eventually) re-run `interface.sls`, leaving +the OVS port in UP state, so `ifup` would fail. + +Signed-off-by: Alexandru Avadanii +--- + linux/network/interface.sls | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/linux/network/interface.sls b/linux/network/interface.sls +--- a/linux/network/interface.sls ++++ b/linux/network/interface.sls +@@ -146,6 +146,10 @@ ovs_port_up_{{ interface_name }}: + - file: ovs_port_{{ interface_name }}_line2 + - openvswitch_bridge: ovs_bridge_{{ interface.bridge }} + - file: linux_interfaces_final_include ++ {%- if interface.route is defined %} ++ - unless: ++ - ip link show {{ interface_name }} | grep -q '\' ++ {% endif %} + + {%- endif %} + -- cgit 1.2.3-korg