9709dfad2c7c098db62a61341f5d1d4d3ca3fdcf
[fuel.git] / mcp / reclass / classes / cluster / mcp-fdio-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 ---
10 classes:
11   - service.neutron.compute.single
12   - system.nova.compute.nfv.hugepages
13   - cluster.mcp-common-noha.openstack_compute
14   - cluster.mcp-fdio-noha
15 parameters:
16   nova:
17     compute:
18       # yamllint disable-line rule:truthy
19       vif_plugging_is_fatal: False
20       vif_plugging_timeout: 10
21   neutron:
22     compute:
23       backend:
24         router: 'vpp-router'
25         tenant_network_types: "${_param:neutron_tenant_network_types}"
26         ~mechanism:
27           vpp:
28             driver: vpp
29             etcd_port: ${_param:node_port}
30             etcd_host: ${_param:node_address}
31             l3_hosts: ${_param:openstack_gateway_node01_hostname}
32         physnets:
33           physnet1:
34             vpp_interface: ${_param:external_vpp_tap}
35           physnet2:
36             vpp_interface: ${_param:dpdk0_vpp}
37   linux:
38     system:
39       kernel:
40         isolcpu: 1  # NOTE: Hardcoded for now
41         boot_options:
42           - spectre_v2=off
43           - nopti
44           - intel_iommu=on
45           - iommu=pt
46           - nohz_full=${linux:system:kernel:isolcpu}
47           - rcu_nocbs=${linux:system:kernel:isolcpu}
48           - iommu.passthrough=1
49     network:
50       interface:
51         dpdk0:
52           name: ${_param:dpdk0_name}
53           pci: ${_param:dpdk0_pci}
54           driver: ${_param:dpdk0_driver}
55           enabled: true
56           type: dpdk_vpp_port
57           mtu: ${_param:interface_mtu}
58         {{ nm.cmp001.nic_private }}:
59           type: dpdk  # Not a meaningful type, just match 'dpdk' for filtering
60         pxe_admin_int:
61           # For scenarios without public network on cmp, set admin gw
62           gateway: {{ nm.net_admin_gw }}
63           name_servers:
64             - {{ nm.net_admin_gw }}