From 920d7ef405e9fed9af7b0576b94f6d19fe265c81 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 29 Dec 2018 23:54:32 +0100 Subject: [MaaS] Implement aarch64 tags for kernel_opts On AArch64, 1G hugepages need to be enabled via kernel cmdline before mounting hugetlbfs [1]. Leverage MaaS tags to apply custom kernel args to AArch64 nodes. [1] https://wiki.debian.org/Hugepages Change-Id: Ie68ddf805836ee62f725019b0b873082b1d40948 Signed-off-by: Alexandru Avadanii (cherry picked from commit f19e6e8f4c50f3c2198f8871dde44334ed636eff) --- mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mcp/reclass/classes/cluster/all-mcp-arch-common') diff --git a/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 b/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 index 40a14c4a6..29bfa7378 100644 --- a/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 +++ b/mcp/reclass/classes/cluster/all-mcp-arch-common/infra/maas.yml.j2 @@ -29,6 +29,13 @@ parameters: opnfv_maas_timeout_deploying: {{ nm.maas_timeout_deploying }} maas: region: +{%- if '-ovs-' in conf.MCP_DEPLOY_SCENARIO or '-fdio-' in conf.MCP_DEPLOY_SCENARIO %} + tags: + aarch64_hugepages_1g: + comment: 'Enable 1G pagesizes on aarch64' + definition: '//capability[@id="asimd"]' + kernel_opts: 'default_hugepagesz=1G hugepagesz=1G' +{%- endif %} boot_sources_delete_all_others: true boot_sources: resources_mirror: -- cgit 1.2.3-korg