[ovs] Start ovs services before networking
[fuel.git] / mcp / reclass / classes / cluster / mcp-ovn-noha / openstack / compute.yml.j2
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {%- import 'net_map.j2' as nm with context %}
9 {%- import 'net_macros.j2' as ma with context %}
10 {%- set vlan_private_start = (nm.vlan_private | string).rsplit('-')[0] %}
11 ---
12 classes:
13   - service.neutron.compute.ovn.single
14   - cluster.mcp-common-noha.openstack_compute
15   - cluster.mcp-ovn-noha
16 parameters:
17   neutron:
18     compute:
19       controller_vip: ${_param:cluster_local_address}
20       ~message_queue: ~
21   linux:
22     network:
23       interface:
24         {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}:
25           enabled: true
26           mtu: ${_param:interface_mtu}
27           proto: manual
28           ovs_port_type: OVSPort
29           type: ovs_port
30           ovs_bridge: br-floating
31           bridge: br-floating
32         br-mesh:
33           enabled: true
34           type: bridge
35           proto: static
36           address: ${_param:tenant_address}
37           netmask: ${_param:opnfv_net_private_mask}
38           use_interfaces:
39             - {{ ma.interface_str(nm.cmp001.nic_private, vlan_private_start) }}
40         br-floating:
41           enabled: true
42           type: ovs_bridge
43           mtu: ${_param:interface_mtu}
44           proto: static
45           address: ${_param:external_address}
46           netmask: ${_param:opnfv_net_public_mask}
47           use_interfaces:
48             - {{ ma.interface_str(nm.cmp001.nic_public, nm.vlan_public) }}
49           gateway: ${_param:opnfv_net_public_gw}
50           name_servers: {{ nm.dns_public }}
51           noifupdown: true