[fdio] Bump compute RAM defaults for virtual PODs 04/67804/4
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 8 May 2019 20:17:23 +0000 (22:17 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 8 May 2019 22:40:57 +0000 (00:40 +0200)
Hugepage count has been recently bumped for virtual PODs via IDF
changes in Pharos, so align our FDio scenarios with the new RAM
requirements.

While at it, fix wrong pod_config template evaluation by moving it
after the templated scenario files are expanded, since pod_config
relies on scenario node definition.

Also, configure VPP to use decimal interface names by default to
align with Pharos macro for the VPP interface name string.

Change-Id: Ib3a89c294a3a2755567fdbe07e3be2b8ca1a5714
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/config/scenario/os-nosdn-fdio-ha.yaml
mcp/config/scenario/os-nosdn-fdio-noha.yaml
mcp/patches/salt-formula-linux/0002-network-Bring-in-basic-VPP-support.patch
mcp/reclass/classes/cluster/mcp-common-noha/openstack_compute_pdf.yml.j2
mcp/reclass/classes/cluster/mcp-common-noha/openstack_gateway_pdf.yml.j2
mcp/scripts/lib_template.sh

index 3847712..6415d04 100644 (file)
@@ -40,8 +40,8 @@ virtual:
   cmp001:
     disks: 100G;100G
     vcpus: 4
-    ram: 8192
+    ram: 12288
   cmp002:
     disks: 100G;100G
     vcpus: 4
-    ram: 8192
+    ram: 12288
index 187b5bf..028f313 100644 (file)
@@ -25,36 +25,36 @@ virtual:
     ram: 14336
   gtw01:
     vcpus: 8
-    ram: 8192
+    ram: 12288
     cpu_topology:
       sockets: 1
       cores: 4
       threads: 2
     numa:
       cell0:
-        memory: 8388608
+        memory: 12582912
         cpus: 0-7
   cmp001:
     disks: 100G;100G
     vcpus: 8
-    ram: 8192
+    ram: 12288
     cpu_topology:
       sockets: 1
       cores: 4
       threads: 2
     numa:
       cell0:
-        memory: 8388608
+        memory: 12582912
         cpus: 0-7
   cmp002:
     disks: 100G;100G
     vcpus: 8
-    ram: 8192
+    ram: 12288
     cpu_topology:
       sockets: 1
       cores: 4
       threads: 2
     numa:
       cell0:
-        memory: 8388608
+        memory: 12582912
         cpus: 0-7
index 44883ae..6c26ae8 100644 (file)
@@ -17,10 +17,10 @@ TODO:
 
 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
 ---
- linux/files/vpp_commands.txt |  4 ++++
- linux/files/vpp_startup.conf | 44 ++++++++++++++++++++++++++++++++++++
- linux/network/dpdk.sls       | 38 +++++++++++++++++++++++++++++++
- 3 files changed, 86 insertions(+)
+ linux/files/vpp_commands.txt |  4 +++
+ linux/files/vpp_startup.conf | 47 ++++++++++++++++++++++++++++++++++++
+ linux/network/dpdk.sls       | 38 +++++++++++++++++++++++++++++
+ 3 files changed, 89 insertions(+)
  create mode 100644 linux/files/vpp_commands.txt
  create mode 100644 linux/files/vpp_startup.conf
 
@@ -36,10 +36,10 @@ index 0000000..2ce4726
 +{%- endif %}
 diff --git a/linux/files/vpp_startup.conf b/linux/files/vpp_startup.conf
 new file mode 100644
-index 0000000..d66ecd3
+index 0000000..fcfc1fd
 --- /dev/null
 +++ b/linux/files/vpp_startup.conf
-@@ -0,0 +1,44 @@
+@@ -0,0 +1,47 @@
 +{%- from "linux/map.jinja" import network with context %}
 +unix {
 +  cli-listen /run/vpp/cli.sock
@@ -74,6 +74,9 @@ index 0000000..d66ecd3
 +{%- endif %}
 +}
 +dpdk {
++{%- if network.vpp.decimal_interface_names is defined %}
++  decimal-interface-names
++{%- endif %}
 +{%- if network.vpp.dpdk_socket_mem is defined %}
 +  socket-mem {{ network.vpp.dpdk_socket_mem }}
 +{%- endif %}
index 084a88f..b635553 100644 (file)
@@ -40,6 +40,7 @@ parameters:
         driver: "${_param:compute_dpdk_driver}"
       vpp:
         enabled: true
+        decimal_interface_names: true
         # Reuse ovs-dpdk socket mem configuration from IDF
         dpdk_socket_mem: ${_param:compute_ovs_dpdk_socket_mem}
         main_core: ${linux:system:kernel:isolcpu}
index 23f4ed6..00d8fbd 100644 (file)
@@ -28,6 +28,7 @@ parameters:
 {%- set floating_br_type = 'bridge' %}
       vpp:
         enabled: true
+        decimal_interface_names: true
         # Reuse ovs-dpdk socket mem configuration from IDF
         dpdk_socket_mem: ${_param:compute_ovs_dpdk_socket_mem}
         main_core: ${linux:system:kernel:isolcpu}
index b447022..bec8e15 100644 (file)
@@ -47,11 +47,6 @@ function do_templates_scenario {
       notify_e "[ERROR] IDF does not match yaml schema!"
     fi
   fi
-  if ! "${PHAROS_GEN_CFG}" -y "${LOCAL_PDF}" \
-    -i "$(dirname "$(readlink -f "${PHAROS_IA}")")" \
-    -j "${PHAROS_IA}" -v > "${image_dir}/pod_config.yml"; then
-    notify_e "[ERROR] Could not convert PDF+IDF to reclass model input!"
-  fi
   printenv | \
     awk '/^(SALT|MCP|MAAS).*=/ { gsub(/=/,": "); print }' >> "${LOCAL_PDF}"
   j2args=$(find "${scenario_dir}" -name '*.j2' -exec echo -j {} \;)
@@ -63,6 +58,11 @@ function do_templates_scenario {
   for _yaml in "${extra_yaml[@]}"; do
     awk '/^---$/{f=1;next;}f' "${_yaml}" >> "${LOCAL_PDF}"
   done
+  if ! "${PHAROS_GEN_CFG}" -y "${LOCAL_PDF}" \
+    -i "$(dirname "$(readlink -f "${PHAROS_IA}")")" \
+    -j "${PHAROS_IA}" -v > "${image_dir}/pod_config.yml"; then
+    notify_e "[ERROR] Could not convert PDF+IDF to reclass model input!"
+  fi
 }
 
 # Expand reclass and virsh network templates based on PDF + IDF + others