cefed963e54f260eb22ed34bb776e4b3bff3eda7
[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           - nospec_store_bypass_disable
45           - noibrs
46           - noibpb
47           - intel_iommu=on
48           - iommu=pt
49           - nohz_full=${linux:system:kernel:isolcpu}
50           - rcu_nocbs=${linux:system:kernel:isolcpu}
51           - iommu.passthrough=1
52     network:
53       interface:
54         dpdk0:
55           name: ${_param:dpdk0_name}
56           pci: ${_param:dpdk0_pci}
57           driver: ${_param:dpdk0_driver}
58           enabled: true
59           type: dpdk_vpp_port
60           mtu: ${_param:interface_mtu}
61         {{ nm.cmp001.nic_private }}:
62           type: dpdk  # Not a meaningful type, just match 'dpdk' for filtering
63         pxe_admin_int:
64           # For scenarios without public network on cmp, set admin gw
65           gateway: {{ nm.net_admin_gw }}
66           name_servers:
67             - {{ nm.net_admin_gw }}