825d9d550e99204a9fd65c0d2ff7a9d83b7e5172
[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   neutron:
17     compute:
18       backend:
19         router: 'vpp-router'
20         tenant_network_types: "${_param:neutron_tenant_network_types}"
21         ~mechanism:
22           vpp:
23             driver: vpp
24             etcd_port: ${_param:node_port}
25             etcd_host: ${_param:node_address}
26             l3_hosts: ${_param:openstack_gateway_node01_hostname}
27         physnets:
28           physnet1:
29             vpp_interface: ${_param:external_vpp_tap}
30           physnet2:
31             vpp_interface: ${_param:dpdk0_vpp}
32   linux:
33     system:
34       kernel:
35         isolcpu: 1  # NOTE: Hardcoded for now
36         boot_options:
37           - spectre_v2=off
38           - nopti
39           - intel_iommu=on
40           - iommu=pt
41           - nohz_full=${linux:system:kernel:isolcpu}
42           - rcu_nocbs=${linux:system:kernel:isolcpu}
43           - iommu.passthrough=1
44     network:
45       interface:
46         dpdk0:
47           name: ${_param:dpdk0_name}
48           pci: ${_param:dpdk0_pci}
49           driver: ${_param:dpdk0_driver}
50           enabled: true
51           type: dpdk_vpp_port
52           mtu: ${_param:interface_mtu}
53         {{ nm.cmp001.nic_private }}:
54           type: dpdk  # Not a meaningful type, just match 'dpdk' for filtering
55         pxe_admin_int:
56           # For scenarios without public network on cmp, set admin gw
57           gateway: {{ nm.net_admin_gw }}
58           name_servers:
59             - {{ nm.net_admin_gw }}