Fix parametrized nic name variables 25/44825/1
authorGuillermo Herrero <guillermo.herrero@enea.com>
Mon, 9 Oct 2017 11:56:08 +0000 (13:56 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 11 Oct 2017 17:55:38 +0000 (17:55 +0000)
-Fix interface order for reclass config node
-Interface types regruped on 3 sets for each cpu arch
  -Foundation VM interface names
  -VCP VM interface names
  -Baremetal node interface names

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

17 files changed:
mcp/reclass/classes/cluster/all-mcp-ocata-common/aarch64/init.yml
mcp/reclass/classes/cluster/all-mcp-ocata-common/x86_64/init.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/config.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/init.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/maas.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/config.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/init.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/kvm.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/infra/maas.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-dpdk-ha/openstack/compute.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/config.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/init.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/maas.yml
mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml

index 18d39c4..6027150 100644 (file)
@@ -15,13 +15,8 @@ parameters:
     opnfv_vcp_vm_primary_interface: ${_param:opnfv_fn_vm_primary_interface}
     opnfv_vcp_vm_secondary_interface: ${_param:opnfv_fn_vm_secondary_interface}
 
-
-    infra_primary_nic: enp1s0
-    infra_secondary_nic: enp2s0
-    infra_tertiary_nic: enp3s0
-    infra_quaternary_nic: enp4s0
-
-    openstack_primary_nic: eth0
-    openstack_secondary_nic: eth1
-    openstack_tertiary_nic: eth2
-    openstack_quaternary_nic: eth3
+    # Baremetal interface names (target nodes)
+    opnfv_baremetal_primary_nic: eth0
+    opnfv_baremetal_secondary_nic: eth1
+    opnfv_baremetal_tertiary_nic: eth2   # not used in current reclass model
+    opnfv_baremetal_quaternary_nic: eth3 # not used in current reclass model
index 0b66920..2181040 100644 (file)
@@ -15,12 +15,8 @@ parameters:
     opnfv_vcp_vm_primary_interface: ens2
     opnfv_vcp_vm_secondary_interface: ens3
 
-    infra_primary_nic: ens3
-    infra_secondary_nic: ens4
-    infra_tertiary_nic: ens5
-    infra_quaternary_nic: ens6
-
-    openstack_primary_nic: enp6s0
-    openstack_secondary_nic: enp7s0
-    openstack_tertiary_nic: enp8s0
-    openstack_quaternary_nic: enp9s0
+    # Baremetal interface names (target nodes)
+    opnfv_baremetal_primary_nic: enp6s0
+    opnfv_baremetal_secondary_nic: enp7s0
+    opnfv_baremetal_tertiary_nic: enp8s0
+    opnfv_baremetal_quaternary_nic: enp9s0 # not used in current reclass model
index 2e3e9d1..33f2804 100644 (file)
@@ -31,8 +31,8 @@ parameters:
     salt_master_host: ${_param:infra_config_deploy_address}
     # yamllint disable rule:line-length
     salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
-    dhcp_nic: ${_param:infra_secondary_nic}
-    single_nic: ${_param:infra_tertiary_nic}
+    dhcp_nic: ${_param:opnfv_fn_vm_primary_interface}
+    single_nic: ${_param:opnfv_fn_vm_secondary_interface}
   linux:
     network:
       interface:
index a849116..4f8f87a 100644 (file)
@@ -45,8 +45,8 @@ parameters:
       storage:
         node:
           name: default
-    dhcp_nic: ${_param:infra_primary_nic}
-    single_nic: ${_param:infra_secondary_nic}
+    dhcp_nic: ${_param:opnfv_vcp_vm_primary_interface}
+    single_nic: ${_param:opnfv_vcp_vm_secondary_interface}
     linux_dhcp_interface:
       enabled: true
       type: eth
index ae2ae4b..c9b3bc1 100644 (file)
@@ -25,7 +25,7 @@ parameters:
     cluster_node03_address: ${_param:infra_kvm_node03_address}
     keepalived_vip_interface: br-ctl
     keepalived_vip_virtual_router_id: 69
-    deploy_nic: ${_param:openstack_primary_nic}
+    deploy_nic: ${_param:opnfv_baremetal_primary_nic}
   salt:
     control:
       size:  # RAM 4096,8192,16384,32768,65536
index 40e23eb..260da22 100644 (file)
@@ -5,9 +5,9 @@ classes:
   - cluster.baremetal-mcp-ocata-odl-ha.infra
 parameters:
   _param:
-    dhcp_interface: ${_param:infra_primary_nic}
-    primary_interface: ${_param:infra_secondary_nic}
-    pxe_interface: ${_param:infra_tertiary_nic}
+    dhcp_interface: ${_param:opnfv_fn_vm_primary_interface}
+    primary_interface: ${_param:opnfv_fn_vm_secondary_interface}
+    pxe_interface: ${_param:opnfv_fn_vm_tertiary_interface}
     interface_mtu: 1500
     # MaaS has issues using MTU > 1500 for PXE interface
     pxe_interface_mtu: 1500
index 841d2f2..032dd84 100644 (file)
@@ -24,9 +24,9 @@ parameters:
     cluster_node03_hostname: ctl03
     cluster_node03_address: ${_param:openstack_control_node03_address}
     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
-    mgmt_nic: ${_param:openstack_primary_nic}
-    tenant_nic: ${_param:openstack_secondary_nic}
-    external_nic: ${_param:openstack_tertiary_nic}
+    mgmt_nic: ${_param:opnfv_baremetal_primary_nic}
+    tenant_nic: ${_param:opnfv_baremetal_secondary_nic}
+    external_nic: ${_param:opnfv_baremetal_tertiary_nic}
     interface_mtu: 1500
     keepalived_vip_interface: br-ctl
     keepalived_vip_virtual_router_id: 69
index c95c7fe..cd70830 100644 (file)
@@ -30,8 +30,8 @@ parameters:
     salt_master_host: ${_param:infra_config_deploy_address}
     # yamllint disable rule:line-length
     salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
-    dhcp_nic: ${_param:infra_secondary_nic}
-    single_nic: ${_param:infra_tertiary_nic}
+    dhcp_nic: ${_param:opnfv_fn_vm_primary_interface}
+    single_nic: ${_param:opnfv_fn_vm_secondary_interface}
   linux:
     network:
       interface:
index 4a3ef5c..f68d484 100644 (file)
@@ -45,8 +45,8 @@ parameters:
       storage:
         node:
           name: default
-    dhcp_nic: ${_param:infra_primary_nic}
-    single_nic: ${_param:infra_secondary_nic}
+    dhcp_nic: ${_param:opnfv_vcp_vm_primary_interface}
+    single_nic: ${_param:opnfv_vcp_vm_secondary_interface}
     linux_dhcp_interface:
       enabled: true
       type: eth
index 4b9816b..d5f2e92 100644 (file)
@@ -25,7 +25,7 @@ parameters:
     cluster_node03_address: ${_param:infra_kvm_node03_address}
     keepalived_vip_interface: br-ctl
     keepalived_vip_virtual_router_id: 69
-    deploy_nic: ${_param:openstack_primary_nic}
+    deploy_nic: ${_param:opnfv_baremetal_primary_nic}
   salt:
     control:
       size:  # RAM 4096,8192,16384,32768,65536
index 7d9cb64..9c76526 100644 (file)
@@ -5,9 +5,9 @@ classes:
   - cluster.baremetal-mcp-ocata-ovs-dpdk-ha.infra
 parameters:
   _param:
-    dhcp_interface: ${_param:infra_primary_nic}
-    primary_interface: ${_param:infra_secondary_nic}
-    pxe_interface: ${_param:infra_tertiary_nic}
+    dhcp_interface: ${_param:opnfv_fn_vm_primary_interface}
+    primary_interface: ${_param:opnfv_fn_vm_secondary_interface}
+    pxe_interface: ${_param:opnfv_fn_vm_tertiary_interface}
     interface_mtu: 1500
     # MaaS has issues using MTU > 1500 for PXE interface
     pxe_interface_mtu: 1500
index ca191ad..e8fc087 100644 (file)
@@ -24,8 +24,8 @@ parameters:
     cluster_node03_hostname: ctl03
     cluster_node03_address: ${_param:openstack_control_node03_address}
     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
-    mgmt_nic: ${_param:openstack_primary_nic}
-    external_nic: ${_param:openstack_tertiary_nic}
+    mgmt_nic: ${_param:opnfv_baremetal_primary_nic}
+    external_nic: ${_param:opnfv_baremetal_tertiary_nic}
     interface_mtu: 1500
     keepalived_vip_interface: br-ctl
     keepalived_vip_virtual_router_id: 69
index 98443d9..75c20f4 100644 (file)
@@ -30,8 +30,8 @@ parameters:
     salt_master_host: ${_param:infra_config_deploy_address}
     # yamllint disable rule:line-length
     salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
-    dhcp_nic: ${_param:infra_secondary_nic}
-    single_nic: ${_param:infra_tertiary_nic}
+    dhcp_nic: ${_param:opnfv_fn_vm_primary_interface}
+    single_nic: ${_param:opnfv_fn_vm_secondary_interface}
   linux:
     network:
       interface:
index 3798304..7c250a3 100644 (file)
@@ -45,8 +45,8 @@ parameters:
       storage:
         node:
           name: default
-    dhcp_nic: ${_param:infra_primary_nic}
-    single_nic: ${_param:infra_secondary_nic}
+    dhcp_nic: ${_param:opnfv_vcp_vm_primary_interface}
+    single_nic: ${_param:opnfv_vcp_vm_secondary_interface}
     linux_dhcp_interface:
       enabled: true
       type: eth
index ab802c6..eb73e1c 100644 (file)
@@ -25,7 +25,7 @@ parameters:
     cluster_node03_address: ${_param:infra_kvm_node03_address}
     keepalived_vip_interface: br-ctl
     keepalived_vip_virtual_router_id: 69
-    deploy_nic: ${_param:openstack_primary_nic}
+    deploy_nic: ${_param:opnfv_baremetal_primary_nic}
   salt:
     control:
       size:  # RAM 4096,8192,16384,32768,65536
index 7a91723..1ec662d 100644 (file)
@@ -5,9 +5,9 @@ classes:
   - cluster.baremetal-mcp-ocata-ovs-ha.infra
 parameters:
   _param:
-    dhcp_interface: ${_param:infra_primary_nic}
-    primary_interface: ${_param:infra_secondary_nic}
-    pxe_interface: ${_param:infra_tertiary_nic}
+    dhcp_interface: ${_param:opnfv_fn_vm_primary_interface}
+    primary_interface: ${_param:opnfv_fn_vm_secondary_interface}
+    pxe_interface: ${_param:opnfv_fn_vm_tertiary_interface}
     interface_mtu: 1500
     # MaaS has issues using MTU > 1500 for PXE interface
     pxe_interface_mtu: 1500
index 422f65d..165e0c9 100644 (file)
@@ -23,9 +23,9 @@ parameters:
     cluster_node03_hostname: ctl03
     cluster_node03_address: ${_param:openstack_control_node03_address}
     nova_vncproxy_url: https://${_param:cluster_public_host}:6080
-    mgmt_nic: ${_param:openstack_primary_nic}
-    tenant_nic: ${_param:openstack_secondary_nic}
-    external_nic: ${_param:openstack_tertiary_nic}
+    mgmt_nic: ${_param:opnfv_baremetal_primary_nic}
+    tenant_nic: ${_param:opnfv_baremetal_secondary_nic}
+    external_nic: ${_param:opnfv_baremetal_tertiary_nic}
     linux_system_codename: xenial
     interface_mtu: 1500
     keepalived_vip_interface: br-ctl