[ovs] Start ovs services before networking 73/66773/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 25 Jan 2019 20:28:27 +0000 (21:28 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 29 Jan 2019 16:24:39 +0000 (17:24 +0100)
commit4b6ff1d93fd53d6f3cfca70c70e99afd42636b5c
treeec51409ade1a35f4cb87d32a6f3bf629ae1b17cf
parent0c05f52aaf024db6443336f69ebc7c6e037d06b9
[ovs] Start ovs services before networking

Fix broken systemd service unit dependecies:
- OVS should start before networking service;
- OVS ports & bridges should not be automatically ifup-ed by
  networking service to avoid races, so drop 'auto' for both
  (OVS ports are automatically handled when part of an OVS bridge);
- explicitly ifup OVS bridges as part of networking service, but
  after all Linux interfaces have been handled;
- use 'allow-ovs br-prv' to let OVS handle br-prv and avoid another
  race condition;

While at it, fix some other related issues:
- make OVS service start after DPDK service (if present);
- bump OVS-DPDK compute VMs RAM since since switching from MTU 1500
  to jumbo frames for virtual PODs a while ago failed to do so [1];
- avoid creating conflicting reclass linux.network.interfaces entries
  for OVS ports by using their name (drop 'ovs_port_' prefix):
  * for untagged networks they will override existing common defs;
  * for tagged networks, they will create separate entries;
- DPDK scenarios: make gtw01 br-prv members OVS ports to avoid race
  conditions after node reboot by letting OVS handle them;

[1] https://developers.redhat.com/blog/2018/03/16/\
    ovs-dpdk-hugepage-memory/

Change-Id: I0266ba67f3849b6f7e331a758146b331730bae55
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry-picked from commit ac7fd699468ad9a02b250e5ef890aff8a03ce1bf)
13 files changed:
mcp/config/scenario/os-nosdn-ovs-ha.yaml
mcp/config/scenario/os-nosdn-ovs-noha.yaml
mcp/config/scenario/os-odl-ovs-noha.yaml
mcp/patches/fuel-patch-copyright.template
mcp/patches/salt-formula-linux/0001-Set-ovs-bridges-as-L3-interfaces.patch
mcp/patches/salt-formula-linux/0002-network-Bring-in-basic-VPP-support.patch
mcp/patches/salt-formula-linux/0003-OVS-Fix-Debian-service-deps-OVS-bridge-ifup.patch [new file with mode: 0644]
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-odl-noha/openstack/gateway.yml.j2
mcp/reclass/classes/cluster/mcp-ovn-noha/openstack/compute.yml.j2
mcp/reclass/classes/cluster/mcp-ovs-dpdk-noha/openstack/gateway.yml.j2