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 %}
14 # NOTE: Until SDF is in place, assume all computes are identical
15 openstack_compute_node01: &openstack_compute_node01
17 {#- No partial defaults, all or nothing. Defaults tuned for lf-pod2. #}
18 {%- if conf.idf.fuel.reclass is defined %}
19 {%- if conf.idf.fuel.reclass.node[nm.cmp001.idx].compute_params.common is defined %}
20 {%- set _common = conf.idf.fuel.reclass.node[nm.cmp001.idx].compute_params.common %}
21 {%- for _i in _common %}
22 {{ _i }}: '"{{ _common[_i] }}"'
28 nova_cpu_pinning: '"1,2,3,4,5,7,8,9,10,11"'
29 compute_hugepages_size: 1G
30 compute_hugepages_count: 16
31 compute_hugepages_mount: /mnt/hugepages_1G
32 compute_kernel_isolcpu: ${_param:nova_cpu_pinning}
34 openstack_compute_node02:
35 <<: *openstack_compute_node01