[baremetal] Fix: wrong nic name idf index 73/52273/1
authorGuillermo Herrero <guillermo.herrero@enea.com>
Fri, 2 Feb 2018 14:43:56 +0000 (15:43 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 17 Feb 2018 02:03:21 +0000 (03:03 +0100)
This was only affecting pod deployments with
different board models, under the current limited
support:
- 3 KVMs will be same model and have the same NIC names
- 2 Compute nodes will be the same model and have same NIC names

For the computes nodes, br-mesh NIC name was wrong due
to incorrect idf mapping

Change-Id: I9685b35cb23b03be9fc0e6fe16c0712a9ad70e19
Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
(cherry picked from commit 378b4a72c27c941d5e37216edb23f224fbb58e26)

mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute_pdf.yml.j2
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute_pdf.yml.j2

index d5a4244..519297d 100644 (file)
@@ -16,7 +16,7 @@
     {%- set idx_public = conf['net_config']['public']['interface'] -%}
 
     {#- Physical interface OS name for each network (e.g. em1, enp1s0f1) -#}
-    {%- set node = conf['idf']['fuel']['network']['node'][1] -%}
+    {%- set node = conf['idf']['fuel']['network']['node'][3] -%}
     {%- set nic_admin = node['interfaces'][idx_admin] -%}
     {%- set nic_mgmt = node['interfaces'][idx_mgmt] -%}
     {%- set nic_private = node['interfaces'][idx_private] -%}
index 18ee090..519297d 100644 (file)
@@ -16,7 +16,7 @@
     {%- set idx_public = conf['net_config']['public']['interface'] -%}
 
     {#- Physical interface OS name for each network (e.g. em1, enp1s0f1) -#}
-    {%- set node = conf['idf']['fuel']['network']['node'][0] -%}
+    {%- set node = conf['idf']['fuel']['network']['node'][3] -%}
     {%- set nic_admin = node['interfaces'][idx_admin] -%}
     {%- set nic_mgmt = node['interfaces'][idx_mgmt] -%}
     {%- set nic_private = node['interfaces'][idx_private] -%}