Add noifupdown for all br-floating 63/61363/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 25 Aug 2018 02:14:40 +0000 (04:14 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 29 Aug 2018 15:04:16 +0000 (17:04 +0200)
Since we reboot all nodes, applying the network configuration via
Salt before reboot is pointless and creates a race condition with
OVS.

While at it, add `--ignore-errors` to ifup call for OVS bridge to
prevent a race condition during linux.network state apply.

Change-Id: I22fe0afaffecd7b850a6b77d7b810ed296bfc9ca
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/patches/salt-formula-linux/0002-Set-ovs-bridges-as-L3-interfaces.patch
mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute_pdf.yml.j2
mcp/reclass/classes/cluster/mcp-common-noha/openstack_gateway_pdf.yml.j2
mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2
mcp/reclass/classes/cluster/mcp-ovn-noha/openstack/compute.yml.j2

index ee82474..5bc3975 100644 (file)
@@ -61,7 +61,7 @@ index 222ca8e..03072cd 100644
  mtu {{ port.get('mtu', '1500') }}
  ovs_bridge {{ port.bridge }}
 diff --git a/linux/network/interface.sls b/linux/network/interface.sls
-index c2d2a23..01131fa 100644
+index c2d2a23..7efdc80 100644
 --- a/linux/network/interface.sls
 +++ b/linux/network/interface.sls
 @@ -91,6 +91,34 @@ add_int_{{ int_name }}_to_ovs_dpdk_bridge_{{ interface_name }}:
@@ -88,7 +88,7 @@ index c2d2a23..01131fa 100644
 +
 +ovs_bridge_up_{{ interface_name }}:
 +  cmd.run:
-+  - name: ifup {{ interface_name }}
++  - name: ifup --ignore-errors {{ interface_name }}
 +  - require:
 +    - file: ovs_bridge_{{ interface_name }}
 +    - openvswitch_bridge: ovs_bridge_{{ interface_name }}
index 51a6dbd..50de921 100644 (file)
@@ -66,6 +66,7 @@ parameters:
             - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
           gateway: ${_param:opnfv_net_public_gw}
           name_servers: {{ nm.dns_public }}
+          noifupdown: true
         ovs_port_{{ nm.cmp001.nic_public }}:
           enabled: true
           name: {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
index 72c3810..ed5fb72 100644 (file)
@@ -58,6 +58,7 @@ parameters:
             - {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}
           gateway: ${_param:opnfv_net_public_gw}
           name_servers: {{ nm.dns_public }}
+          noifupdown: true
         br-mgmt:
           enabled: true
           type: bridge
index bde5e7a..fc064c1 100644 (file)
@@ -71,3 +71,4 @@ parameters:
             - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
           gateway: ${_param:opnfv_net_public_gw}
           name_servers: {{ nm.dns_public }}
+          noifupdown: true
index ac35556..c7c9787 100644 (file)
@@ -47,3 +47,4 @@ parameters:
             - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
           gateway: ${_param:opnfv_net_public_gw}
           name_servers: {{ nm.dns_public }}
+          noifupdown: true