commit | 9b3a0ede99fd8434495d39da0afdaa1146cb9232 | [log] [tgz] |
---|---|---|
author | Petr Jediný <pjediny@mirantis.com> | Thu Apr 13 15:12:09 2017 +0200 |
committer | Petr Jediný <pjediny@mirantis.com> | Thu Apr 13 15:12:09 2017 +0200 |
tree | 4e14f67b34a678cf2e5d897c56b8faca46c3f481 | |
parent | 3d9baab80e18974b599ea3ffdf895f425fa18fae [diff] |
Fix dhcp multiple default gateways issue The system only adds one gateway and if it receives default gateway from incorrect interface (like control plane primary interface), the instance loses access to external network. Fixing by making primary interfaces (control plane) static. Change-Id: I511f6721c2ecac29eccbdd63160f748c1cc2ee07
diff --git a/classes/cluster/virtual-mcp11-ovs/infra/config.yml b/classes/cluster/virtual-mcp11-ovs/infra/config.yml index f8b32d1..e97504a 100644 --- a/classes/cluster/virtual-mcp11-ovs/infra/config.yml +++ b/classes/cluster/virtual-mcp11-ovs/infra/config.yml
@@ -41,7 +41,9 @@ ens4: enabled: true type: eth - proto: dhcp + proto: static + address: ${_param:single_address} + netmask: 255.255.255.0 nginx: server: site:
diff --git a/classes/cluster/virtual-mcp11-ovs/openstack/control.yml b/classes/cluster/virtual-mcp11-ovs/openstack/control.yml index fbd1676..9a94459 100644 --- a/classes/cluster/virtual-mcp11-ovs/openstack/control.yml +++ b/classes/cluster/virtual-mcp11-ovs/openstack/control.yml
@@ -44,7 +44,9 @@ ens4: enabled: true type: eth - proto: dhcp + proto: static + address: ${_param:single_address} + netmask: 255.255.255.0 keepalived: cluster: instance:
diff --git a/classes/cluster/virtual-mcp11-ovs/openstack/dashboard.yml b/classes/cluster/virtual-mcp11-ovs/openstack/dashboard.yml index 1667347..050681d 100644 --- a/classes/cluster/virtual-mcp11-ovs/openstack/dashboard.yml +++ b/classes/cluster/virtual-mcp11-ovs/openstack/dashboard.yml
@@ -11,4 +11,6 @@ ens4: enabled: true type: eth - proto: dhcp + proto: static + address: ${_param:single_address} + netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp11-ovs/stacklight/server.yml b/classes/cluster/virtual-mcp11-ovs/stacklight/server.yml index 3021299..c32e8a9 100644 --- a/classes/cluster/virtual-mcp11-ovs/stacklight/server.yml +++ b/classes/cluster/virtual-mcp11-ovs/stacklight/server.yml
@@ -40,4 +40,6 @@ ens4: enabled: true type: eth - proto: dhcp + proto: static + address: ${_param:single_address} + netmask: 255.255.255.0