summaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-21 22:44:23 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-21 22:44:23 +0200
commit6a9754a949105a68b0e4fe8a34fca73809d736d5 (patch)
tree4c439a0c3a18828f0e569a7f92a5f2dd81620375 /patches/opnfv-fuel
parent1c7244f450d220447ee7efafaa3397ab5317da28 (diff)
reclass: baremetal: openstack: Fix eth assignment
Change-Id: I3a4ce93f36c5a01481601a1f38b562c7ca0a6650 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'patches/opnfv-fuel')
-rw-r--r--patches/opnfv-fuel/0000-reclass-baremetal-openstack-Fix-eth-assignment.patch146
-rw-r--r--patches/opnfv-fuel/0009-classes-baremetal-AArch64-virtio-NIC-names-sync.patch94
2 files changed, 199 insertions, 41 deletions
diff --git a/patches/opnfv-fuel/0000-reclass-baremetal-openstack-Fix-eth-assignment.patch b/patches/opnfv-fuel/0000-reclass-baremetal-openstack-Fix-eth-assignment.patch
new file mode 100644
index 00000000..4a2a9434
--- /dev/null
+++ b/patches/opnfv-fuel/0000-reclass-baremetal-openstack-Fix-eth-assignment.patch
@@ -0,0 +1,146 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Mon, 21 Aug 2017 22:26:09 +0200
+Subject: [PATCH] reclass: baremetal: openstack: Fix eth assignment
+
+Baremetal support introduced a couple of VCP VMs, which have 2
+network interfaces:
+- primary (ens3 inside x86 VM) - connected to "br-mgmt" bridge on
+ each kvm node, serves for MaaS DHCP / connection to salt master;
+- secondary (ens4 inside x86 VM) - connected to "br-ctl" bridge on
+ each kvm node, serves for Openstack Management network;
+
+However, the reclass model was configured to use a single IP address
+on the primary interface, breaking the connnection to salt master,
+while also not connecting the Openstack Management network properly.
+
+Fix this by configuring the primary interface for DHCP, while the
+secondary gets a static IP in Openstack Management network.
+
+Change-Id: I9f1d6f080e882bfaae7b5f209bc3c5536826ba06
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ .../classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml | 5 +++--
+ .../cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml | 3 ++-
+ .../cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml | 5 +++--
+ .../cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml | 5 +++--
+ .../classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml | 5 +++--
+ .../cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml | 5 +++--
+ 6 files changed, 17 insertions(+), 11 deletions(-)
+
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml
+index 995c50c..20b470d 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml
+@@ -23,7 +23,7 @@ classes:
+ - cluster.baremetal-mcp-ocata-ovs-ha.infra
+ parameters:
+ _param:
+- keepalived_vip_interface: ens3
++ keepalived_vip_interface: ens4
+ keepalived_vip_virtual_router_id: 50
+ cluster_vip_address: ${_param:openstack_control_address}
+ cluster_local_address: ${_param:single_address}
+@@ -37,7 +37,8 @@ parameters:
+ linux:
+ network:
+ interface:
+- ens3: ${_param:linux_single_interface}
++ ens3: ${_param:linux_dhcp_interface}
++ ens4: ${_param:linux_single_interface}
+ bind:
+ server:
+ control:
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml
+index b7ed814..522719a 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml
+@@ -7,4 +7,5 @@ parameters:
+ linux:
+ network:
+ interface:
+- ens3: ${_param:linux_single_interface}
++ ens3: ${_param:linux_dhcp_interface}
++ ens4: ${_param:linux_single_interface}
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
+index c0e21aa..8aa8b70 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
+@@ -16,7 +16,7 @@ classes:
+ - cluster.baremetal-mcp-ocata-ovs-ha
+ parameters:
+ _param:
+- keepalived_vip_interface: ens3
++ keepalived_vip_interface: ens4
+ keepalived_vip_virtual_router_id: 80
+ galera_server_cluster_name: openstack_cluster
+ cluster_vip_address: ${_param:openstack_database_address}
+@@ -30,4 +30,5 @@ parameters:
+ linux:
+ network:
+ interface:
+- ens3: ${_param:linux_single_interface}
++ ens3: ${_param:linux_dhcp_interface}
++ ens4: ${_param:linux_single_interface}
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml
+index 3b79030..0840cc4 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml
+@@ -7,7 +7,7 @@ classes:
+ - cluster.baremetal-mcp-ocata-ovs-ha
+ parameters:
+ _param:
+- keepalived_vip_interface: ens3
++ keepalived_vip_interface: ens4
+ keepalived_vip_virtual_router_id: 90
+ cluster_vip_address: ${_param:openstack_message_queue_address}
+ cluster_local_address: ${_param:single_address}
+@@ -20,4 +20,5 @@ parameters:
+ linux:
+ network:
+ interface:
+- ens3: ${_param:linux_single_interface}
++ ens3: ${_param:linux_dhcp_interface}
++ ens4: ${_param:linux_single_interface}
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml
+index 2695c96..86f331d 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml
+@@ -15,7 +15,7 @@ classes:
+ # - cluster.baremetal-mcp-ocata-ovs-ha.stacklight.proxy
+ parameters:
+ _param:
+- keepalived_vip_interface: ens3
++ keepalived_vip_interface: ens4
+ keepalived_vip_virtual_router_id: 240
+ nginx_proxy_ssl:
+ enabled: true
+@@ -27,7 +27,8 @@ parameters:
+ linux:
+ network:
+ interface:
+- ens3: ${_param:linux_single_interface}
++ ens3: ${_param:linux_dhcp_interface}
++ ens4: ${_param:linux_single_interface}
+ system:
+ package:
+ libapache2-mod-wsgi:
+diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml
+index ca655dd..b46319f 100644
+--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml
++++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml
+@@ -10,7 +10,7 @@ classes:
+ - cluster.baremetal-mcp-ocata-ovs-ha.infra
+ parameters:
+ _param:
+- keepalived_vip_interface: ens3
++ keepalived_vip_interface: ens4
+ keepalived_vip_virtual_router_id: 230
+ cluster_vip_address: ${_param:openstack_telemetry_address}
+ cluster_local_address: ${_param:single_address}
+@@ -23,4 +23,5 @@ parameters:
+ linux:
+ network:
+ interface:
+- ens3: ${_param:linux_single_interface}
++ ens3: ${_param:linux_dhcp_interface}
++ ens4: ${_param:linux_single_interface}
diff --git a/patches/opnfv-fuel/0009-classes-baremetal-AArch64-virtio-NIC-names-sync.patch b/patches/opnfv-fuel/0009-classes-baremetal-AArch64-virtio-NIC-names-sync.patch
index 94686f3b..5fd456ba 100644
--- a/patches/opnfv-fuel/0009-classes-baremetal-AArch64-virtio-NIC-names-sync.patch
+++ b/patches/opnfv-fuel/0009-classes-baremetal-AArch64-virtio-NIC-names-sync.patch
@@ -24,13 +24,13 @@ Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
.../cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml | 18 ++++++++++++------
.../cluster/baremetal-mcp-ocata-ovs-ha/infra/maas.yml | 8 ++++----
.../baremetal-mcp-ocata-ovs-ha/openstack/compute.yml | 18 +++++++++---------
- .../baremetal-mcp-ocata-ovs-ha/openstack/control.yml | 4 ++--
- .../baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml | 2 +-
- .../baremetal-mcp-ocata-ovs-ha/openstack/database.yml | 4 ++--
- .../openstack/message_queue.yml | 4 ++--
- .../baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml | 4 ++--
- .../baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml | 4 ++--
- 10 files changed, 38 insertions(+), 32 deletions(-)
+ .../baremetal-mcp-ocata-ovs-ha/openstack/control.yml | 6 +++---
+ .../baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml | 4 ++--
+ .../baremetal-mcp-ocata-ovs-ha/openstack/database.yml | 6 +++---
+ .../openstack/message_queue.yml | 6 +++---
+ .../baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml | 6 +++---
+ .../baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml | 6 +++---
+ 10 files changed, 44 insertions(+), 38 deletions(-)
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/config.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/config.yml
index 77443de..824b979 100644
@@ -172,113 +172,125 @@ index 18a7a0b..d052e23 100644
- - ${_param:mgmt_nic}.300
+ - ${_param:tenant_nic}.2183
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml
-index 995c50c..97f44ca 100644
+index 20b470d..5ba1411 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/control.yml
@@ -23,7 +23,7 @@ classes:
- cluster.baremetal-mcp-ocata-ovs-ha.infra
parameters:
_param:
-- keepalived_vip_interface: ens3
-+ keepalived_vip_interface: enp1s0
+- keepalived_vip_interface: ens4
++ keepalived_vip_interface: enp2s0
keepalived_vip_virtual_router_id: 50
cluster_vip_address: ${_param:openstack_control_address}
cluster_local_address: ${_param:single_address}
-@@ -37,7 +37,7 @@ parameters:
+@@ -37,8 +37,8 @@ parameters:
linux:
network:
interface:
-- ens3: ${_param:linux_single_interface}
-+ enp1s0: ${_param:linux_single_interface}
+- ens3: ${_param:linux_dhcp_interface}
+- ens4: ${_param:linux_single_interface}
++ enp1s0: ${_param:linux_dhcp_interface}
++ enp2s0: ${_param:linux_single_interface}
bind:
server:
control:
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml
-index b7ed814..bfca091 100644
+index 522719a..18f622c 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/dashboard.yml
-@@ -7,4 +7,4 @@ parameters:
+@@ -7,5 +7,5 @@ parameters:
linux:
network:
interface:
-- ens3: ${_param:linux_single_interface}
-+ enp1s0: ${_param:linux_single_interface}
+- ens3: ${_param:linux_dhcp_interface}
+- ens4: ${_param:linux_single_interface}
++ enp1s0: ${_param:linux_dhcp_interface}
++ enp2s0: ${_param:linux_single_interface}
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
-index c0e21aa..3fcf34b 100644
+index 8aa8b70..7a6934b 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
@@ -16,7 +16,7 @@ classes:
- cluster.baremetal-mcp-ocata-ovs-ha
parameters:
_param:
-- keepalived_vip_interface: ens3
-+ keepalived_vip_interface: enp1s0
+- keepalived_vip_interface: ens4
++ keepalived_vip_interface: enp2s0
keepalived_vip_virtual_router_id: 80
galera_server_cluster_name: openstack_cluster
cluster_vip_address: ${_param:openstack_database_address}
-@@ -30,4 +30,4 @@ parameters:
+@@ -30,5 +30,5 @@ parameters:
linux:
network:
interface:
-- ens3: ${_param:linux_single_interface}
-+ enp1s0: ${_param:linux_single_interface}
+- ens3: ${_param:linux_dhcp_interface}
+- ens4: ${_param:linux_single_interface}
++ enp1s0: ${_param:linux_dhcp_interface}
++ enp2s0: ${_param:linux_single_interface}
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml
-index 3b79030..4910196 100644
+index 0840cc4..f510a7b 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/message_queue.yml
@@ -7,7 +7,7 @@ classes:
- cluster.baremetal-mcp-ocata-ovs-ha
parameters:
_param:
-- keepalived_vip_interface: ens3
-+ keepalived_vip_interface: enp1s0
+- keepalived_vip_interface: ens4
++ keepalived_vip_interface: enp2s0
keepalived_vip_virtual_router_id: 90
cluster_vip_address: ${_param:openstack_message_queue_address}
cluster_local_address: ${_param:single_address}
-@@ -20,4 +20,4 @@ parameters:
+@@ -20,5 +20,5 @@ parameters:
linux:
network:
interface:
-- ens3: ${_param:linux_single_interface}
-+ enp1s0: ${_param:linux_single_interface}
+- ens3: ${_param:linux_dhcp_interface}
+- ens4: ${_param:linux_single_interface}
++ enp1s0: ${_param:linux_dhcp_interface}
++ enp2s0: ${_param:linux_single_interface}
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml
-index 2695c96..d146d8a 100644
+index 86f331d..4e25b78 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/proxy.yml
@@ -15,7 +15,7 @@ classes:
# - cluster.baremetal-mcp-ocata-ovs-ha.stacklight.proxy
parameters:
_param:
-- keepalived_vip_interface: ens3
-+ keepalived_vip_interface: enp1s0
+- keepalived_vip_interface: ens4
++ keepalived_vip_interface: enp2s0
keepalived_vip_virtual_router_id: 240
nginx_proxy_ssl:
enabled: true
-@@ -27,7 +27,7 @@ parameters:
+@@ -27,8 +27,8 @@ parameters:
linux:
network:
interface:
-- ens3: ${_param:linux_single_interface}
-+ enp1s0: ${_param:linux_single_interface}
+- ens3: ${_param:linux_dhcp_interface}
+- ens4: ${_param:linux_single_interface}
++ enp1s0: ${_param:linux_dhcp_interface}
++ enp2s0: ${_param:linux_single_interface}
system:
package:
libapache2-mod-wsgi:
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml
-index ca655dd..69ca07f 100644
+index b46319f..6ad13ae 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/telemetry.yml
@@ -10,7 +10,7 @@ classes:
- cluster.baremetal-mcp-ocata-ovs-ha.infra
parameters:
_param:
-- keepalived_vip_interface: ens3
-+ keepalived_vip_interface: enp1s0
+- keepalived_vip_interface: ens4
++ keepalived_vip_interface: enp2s0
keepalived_vip_virtual_router_id: 230
cluster_vip_address: ${_param:openstack_telemetry_address}
cluster_local_address: ${_param:single_address}
-@@ -23,4 +23,4 @@ parameters:
+@@ -23,5 +23,5 @@ parameters:
linux:
network:
interface:
-- ens3: ${_param:linux_single_interface}
-+ enp1s0: ${_param:linux_single_interface}
+- ens3: ${_param:linux_dhcp_interface}
+- ens4: ${_param:linux_single_interface}
++ enp1s0: ${_param:linux_dhcp_interface}
++ enp2s0: ${_param:linux_single_interface}