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-mcp-ocata-dvr/infra/config.yml b/classes/cluster/virtual-mcp-ocata-dvr/infra/config.yml
index 0d85bae..1353739 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/infra/config.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/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-mcp-ocata-dvr/openstack/control.yml b/classes/cluster/virtual-mcp-ocata-dvr/openstack/control.yml
index df120a0..02ca8ae 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/openstack/control.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/openstack/control.yml
@@ -45,7 +45,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-mcp-ocata-dvr/openstack/dashboard.yml b/classes/cluster/virtual-mcp-ocata-dvr/openstack/dashboard.yml
index 36697db..fba1f30 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/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-mcp-ocata-dvr/stacklight/server.yml b/classes/cluster/virtual-mcp-ocata-dvr/stacklight/server.yml
index 338c914..fb2bf0d 100644
--- a/classes/cluster/virtual-mcp-ocata-dvr/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp-ocata-dvr/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
diff --git a/classes/cluster/virtual-mcp-ocata-ovs/infra/config.yml b/classes/cluster/virtual-mcp-ocata-ovs/infra/config.yml
index 0f2908c..9bd65ba 100644
--- a/classes/cluster/virtual-mcp-ocata-ovs/infra/config.yml
+++ b/classes/cluster/virtual-mcp-ocata-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-mcp-ocata-ovs/openstack/control.yml b/classes/cluster/virtual-mcp-ocata-ovs/openstack/control.yml
index cdc9e65..17842bf 100644
--- a/classes/cluster/virtual-mcp-ocata-ovs/openstack/control.yml
+++ b/classes/cluster/virtual-mcp-ocata-ovs/openstack/control.yml
@@ -45,7 +45,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-mcp-ocata-ovs/openstack/dashboard.yml b/classes/cluster/virtual-mcp-ocata-ovs/openstack/dashboard.yml
index 7e4683b..af39937 100644
--- a/classes/cluster/virtual-mcp-ocata-ovs/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp-ocata-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-mcp-ocata-ovs/stacklight/server.yml b/classes/cluster/virtual-mcp-ocata-ovs/stacklight/server.yml
index 1d1682b..1b84d4d 100644
--- a/classes/cluster/virtual-mcp-ocata-ovs/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp-ocata-ovs/stacklight/server.yml
@@ -41,4 +41,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-mcp05-dvr/infra/config.yml b/classes/cluster/virtual-mcp05-dvr/infra/config.yml
index 1626f1a..f752a2d 100644
--- a/classes/cluster/virtual-mcp05-dvr/infra/config.yml
+++ b/classes/cluster/virtual-mcp05-dvr/infra/config.yml
@@ -39,7 +39,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-mcp05-dvr/openstack/control.yml b/classes/cluster/virtual-mcp05-dvr/openstack/control.yml
index eebcacd..31559c7 100644
--- a/classes/cluster/virtual-mcp05-dvr/openstack/control.yml
+++ b/classes/cluster/virtual-mcp05-dvr/openstack/control.yml
@@ -48,7 +48,9 @@
eth1:
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-mcp05-dvr/openstack/dashboard.yml b/classes/cluster/virtual-mcp05-dvr/openstack/dashboard.yml
index 63dd2be..d321ec3 100644
--- a/classes/cluster/virtual-mcp05-dvr/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp05-dvr/openstack/dashboard.yml
@@ -16,4 +16,6 @@
eth1:
enabled: true
type: eth
- proto: dhcp
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp05-dvr/stacklight/server.yml b/classes/cluster/virtual-mcp05-dvr/stacklight/server.yml
index 1dc1e58..198bfe7 100644
--- a/classes/cluster/virtual-mcp05-dvr/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp05-dvr/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
diff --git a/classes/cluster/virtual-mcp05-ovs/infra/config.yml b/classes/cluster/virtual-mcp05-ovs/infra/config.yml
index 231babf..f09d72e 100644
--- a/classes/cluster/virtual-mcp05-ovs/infra/config.yml
+++ b/classes/cluster/virtual-mcp05-ovs/infra/config.yml
@@ -39,7 +39,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-mcp05-ovs/openstack/control.yml b/classes/cluster/virtual-mcp05-ovs/openstack/control.yml
index 4b29e9e..0610079 100644
--- a/classes/cluster/virtual-mcp05-ovs/openstack/control.yml
+++ b/classes/cluster/virtual-mcp05-ovs/openstack/control.yml
@@ -42,7 +42,9 @@
eth1:
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-mcp05-ovs/openstack/dashboard.yml b/classes/cluster/virtual-mcp05-ovs/openstack/dashboard.yml
index 1a2e6b0..87bfbdf 100644
--- a/classes/cluster/virtual-mcp05-ovs/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp05-ovs/openstack/dashboard.yml
@@ -27,4 +27,6 @@
eth1:
enabled: true
type: eth
- proto: dhcp
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp05-ovs/stacklight/server.yml b/classes/cluster/virtual-mcp05-ovs/stacklight/server.yml
index 943cc4e..2288aeb 100644
--- a/classes/cluster/virtual-mcp05-ovs/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp05-ovs/stacklight/server.yml
@@ -40,4 +40,7 @@
ens4:
enabled: true
type: eth
- proto: dhcp
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
+
diff --git a/classes/cluster/virtual-mcp10-contrail/infra/config.yml b/classes/cluster/virtual-mcp10-contrail/infra/config.yml
index ec64f71..9996261 100755
--- a/classes/cluster/virtual-mcp10-contrail/infra/config.yml
+++ b/classes/cluster/virtual-mcp10-contrail/infra/config.yml
@@ -38,7 +38,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-mcp10-contrail/openstack/control.yml b/classes/cluster/virtual-mcp10-contrail/openstack/control.yml
index 51294a2..3295d9c 100755
--- a/classes/cluster/virtual-mcp10-contrail/openstack/control.yml
+++ b/classes/cluster/virtual-mcp10-contrail/openstack/control.yml
@@ -67,7 +67,9 @@
eth1:
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-mcp10-contrail/openstack/dashboard.yml b/classes/cluster/virtual-mcp10-contrail/openstack/dashboard.yml
index 0c6e349..6bcb96c 100755
--- a/classes/cluster/virtual-mcp10-contrail/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp10-contrail/openstack/dashboard.yml
@@ -19,4 +19,6 @@
eth1:
enabled: true
type: eth
- proto: dhcp
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp10-contrail/stacklight/server.yml b/classes/cluster/virtual-mcp10-contrail/stacklight/server.yml
index 721bdd3..11def8a 100755
--- a/classes/cluster/virtual-mcp10-contrail/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp10-contrail/stacklight/server.yml
@@ -42,4 +42,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-mcp10-dvr/infra/config.yml b/classes/cluster/virtual-mcp10-dvr/infra/config.yml
index e1ca1e7..93dd07a 100644
--- a/classes/cluster/virtual-mcp10-dvr/infra/config.yml
+++ b/classes/cluster/virtual-mcp10-dvr/infra/config.yml
@@ -39,7 +39,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-mcp10-dvr/openstack/control.yml b/classes/cluster/virtual-mcp10-dvr/openstack/control.yml
index b0d9a71..7a60877 100644
--- a/classes/cluster/virtual-mcp10-dvr/openstack/control.yml
+++ b/classes/cluster/virtual-mcp10-dvr/openstack/control.yml
@@ -43,7 +43,9 @@
eth1:
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-mcp10-dvr/openstack/dashboard.yml b/classes/cluster/virtual-mcp10-dvr/openstack/dashboard.yml
index b38a35a..70ef115 100644
--- a/classes/cluster/virtual-mcp10-dvr/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp10-dvr/openstack/dashboard.yml
@@ -19,4 +19,6 @@
eth1:
enabled: true
type: eth
- proto: dhcp
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp10-dvr/stacklight/server.yml b/classes/cluster/virtual-mcp10-dvr/stacklight/server.yml
index f5a17ec..08cfa82 100644
--- a/classes/cluster/virtual-mcp10-dvr/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp10-dvr/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
diff --git a/classes/cluster/virtual-mcp10-ovs/infra/config.yml b/classes/cluster/virtual-mcp10-ovs/infra/config.yml
index 99b4212..a4461c3 100644
--- a/classes/cluster/virtual-mcp10-ovs/infra/config.yml
+++ b/classes/cluster/virtual-mcp10-ovs/infra/config.yml
@@ -39,7 +39,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-mcp10-ovs/openstack/control.yml b/classes/cluster/virtual-mcp10-ovs/openstack/control.yml
index 997fdae..b235a84 100644
--- a/classes/cluster/virtual-mcp10-ovs/openstack/control.yml
+++ b/classes/cluster/virtual-mcp10-ovs/openstack/control.yml
@@ -42,7 +42,9 @@
eth1:
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-mcp10-ovs/openstack/dashboard.yml b/classes/cluster/virtual-mcp10-ovs/openstack/dashboard.yml
index 2088261..a2b9762 100644
--- a/classes/cluster/virtual-mcp10-ovs/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp10-ovs/openstack/dashboard.yml
@@ -29,4 +29,6 @@
eth1:
enabled: true
type: eth
- proto: dhcp
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0
diff --git a/classes/cluster/virtual-mcp10-ovs/stacklight/server.yml b/classes/cluster/virtual-mcp10-ovs/stacklight/server.yml
index 4a8f12b..288e9d9 100644
--- a/classes/cluster/virtual-mcp10-ovs/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp10-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
diff --git a/classes/cluster/virtual-mcp11-contrail/infra/config.yml b/classes/cluster/virtual-mcp11-contrail/infra/config.yml
index 91125e3..3d88f4e 100755
--- a/classes/cluster/virtual-mcp11-contrail/infra/config.yml
+++ b/classes/cluster/virtual-mcp11-contrail/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-contrail/opencontrail/control.yml b/classes/cluster/virtual-mcp11-contrail/opencontrail/control.yml
index 9abe3e7..e547a4c 100644
--- a/classes/cluster/virtual-mcp11-contrail/opencontrail/control.yml
+++ b/classes/cluster/virtual-mcp11-contrail/opencontrail/control.yml
@@ -34,7 +34,9 @@
eth1:
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-contrail/openstack/control.yml b/classes/cluster/virtual-mcp11-contrail/openstack/control.yml
index 087a8aa..4825074 100755
--- a/classes/cluster/virtual-mcp11-contrail/openstack/control.yml
+++ b/classes/cluster/virtual-mcp11-contrail/openstack/control.yml
@@ -59,7 +59,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-contrail/openstack/dashboard.yml b/classes/cluster/virtual-mcp11-contrail/openstack/dashboard.yml
index 80b36fd..8a79ed1 100755
--- a/classes/cluster/virtual-mcp11-contrail/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp11-contrail/openstack/dashboard.yml
@@ -14,4 +14,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-contrail/stacklight/server.yml b/classes/cluster/virtual-mcp11-contrail/stacklight/server.yml
index 9345cca..00f12ca 100755
--- a/classes/cluster/virtual-mcp11-contrail/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp11-contrail/stacklight/server.yml
@@ -42,4 +42,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-dvr/infra/config.yml b/classes/cluster/virtual-mcp11-dvr/infra/config.yml
index 0e81862..19508f8 100644
--- a/classes/cluster/virtual-mcp11-dvr/infra/config.yml
+++ b/classes/cluster/virtual-mcp11-dvr/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-dvr/openstack/control.yml b/classes/cluster/virtual-mcp11-dvr/openstack/control.yml
index 4082915..efd7374 100644
--- a/classes/cluster/virtual-mcp11-dvr/openstack/control.yml
+++ b/classes/cluster/virtual-mcp11-dvr/openstack/control.yml
@@ -45,7 +45,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-dvr/openstack/dashboard.yml b/classes/cluster/virtual-mcp11-dvr/openstack/dashboard.yml
index 729262e..28c8f01 100644
--- a/classes/cluster/virtual-mcp11-dvr/openstack/dashboard.yml
+++ b/classes/cluster/virtual-mcp11-dvr/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-dvr/stacklight/server.yml b/classes/cluster/virtual-mcp11-dvr/stacklight/server.yml
index 88af2c8..579a653 100644
--- a/classes/cluster/virtual-mcp11-dvr/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp11-dvr/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
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