From 7b7171d4b505f5774b874225ff079360d550d772 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 30 Dec 2017 23:04:17 +0100 Subject: [baremetal] cmp: Add missing public gw (default) When we dropped the default gw via mas01 NAT, we uncovered a bug, compute nodes do not have the proper public gw set up and used to reach public network via mas01, slowing everything down. Add gw similar to prx nodes. Fixes: d4ab072 Change-Id: I4343c31c376a7a223670cdd623366454396d8d92 Signed-off-by: Alexandru Avadanii (cherry picked from commit e9d597db3a9e8a38577908f36f5f700e875d4d78) --- .../baremetal-mcp-ocata-common-ha/openstack_compute_pdf.yml.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mcp/reclass/classes') diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-common-ha/openstack_compute_pdf.yml.j2 b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-common-ha/openstack_compute_pdf.yml.j2 index ed52b9a93..e9d265ddf 100644 --- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-common-ha/openstack_compute_pdf.yml.j2 +++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-common-ha/openstack_compute_pdf.yml.j2 @@ -101,6 +101,11 @@ parameters: mtu: ${_param:interface_mtu} address: ${_param:external_address} netmask: 255.255.255.0 + route: + public: + address: 0.0.0.0 + netmask: 0.0.0.0 + gateway: ${_param:opnfv_net_public_gw} use_interfaces: - {{ nic_public }}{% if vlan_public and vlan_public != 'native' %}.{{ vlan_public }}{% endif %} use_ovs_ports: -- cgit 1.2.3-korg