::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-: Copyright (c) 2017 Enea AB and others.
+: Copyright (c) 2018 Enea AB and others.
:
: All rights reserved. This program and the accompanying materials
: are made available under the terms of the Apache License, Version 2.0
-e 's/10\.0\.9\.1/10.0.9.254/g'
NOTE: This should be converted into a dynamic configuration read from
-the universal POD descriptor in securedlab, once that is ready.
+the universal POD descriptor in pharos, once that is ready.
Until then, just align the public network configuration used by the
virtual POD with the Enea lab configuration specific to arm-virtual2
virsh, respectively our lab's static config).
This will ensure deploys continue to work in both enviroments.
-Also, since our new gateway resides at 10.0.9.254, trim the DHCP pool
-range for the public network to not include that address.
-
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
- mcp/config/states/networks | 6 +++---
- .../classes/cluster/virtual-mcp-pike-common-noha/infra/config.yml | 4 ++--
- .../classes/cluster/virtual-mcp-pike-common-noha/openstack_init.yml | 2 +-
- .../classes/cluster/virtual-mcp-pike-odl-noha/infra/config.yml | 2 +-
- .../classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/config.yml | 2 +-
- .../classes/cluster/virtual-mcp-pike-ovs-noha/infra/config.yml | 2 +-
- mcp/scripts/net_public.xml | 2 +-
- 7 files changed, 10 insertions(+), 10 deletions(-)
+ mcp/config/states/networks | 8 ++++----
+ .../classes/cluster/virtual-mcp-pike-common-noha/infra/config.yml | 4 ++--
+ .../cluster/virtual-mcp-pike-common-noha/openstack_init.yml | 2 +-
+ .../classes/cluster/virtual-mcp-pike-odl-noha/infra/config.yml | 2 +-
+ .../cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/config.yml | 2 +-
+ .../classes/cluster/virtual-mcp-pike-ovs-noha/infra/config.yml | 2 +-
+ mcp/scripts/net_public.xml | 2 +-
+ 7 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/mcp/config/states/networks b/mcp/config/states/networks
-index 5beabdb..ca59ee3 100755
+index 222a072..9bbc0ce 100755
--- a/mcp/config/states/networks
+++ b/mcp/config/states/networks
-@@ -18,7 +18,7 @@ PUBLIC_NET=$(salt --out yaml -C 'I@nova:compute and *01*' pillar.get _param:exte
- pillar.get _param:openstack_compute_node01_external_address | \
- awk --re-interval '/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/{print $2; exit}')
+@@ -17,10 +17,10 @@ POOL_START_IP=$(get_nova_compute_pillar_data 'opnfv_net_public_pool_start')
+ POOL_END_IP=$(get_nova_compute_pillar_data 'opnfv_net_public_pool_end')
--[ -n "${PUBLIC_NET}" ] && PUBLIC_NET="${PUBLIC_NET%.*}.0/24" || PUBLIC_NET="10.16.0.0/24"
-+[ -n "${PUBLIC_NET}" ] && PUBLIC_NET="${PUBLIC_NET%.*}.0/24" || PUBLIC_NET="10.0.9.0/24"
+ # Default values
+-PUBLIC_NET="${PUBLIC_NET:-10.16.0.0/24}"
+-PUBLIC_NET_GATEWAY="${PUBLIC_NET_GATEWAY:-10.16.0.1}"
+-POOL_START_IP="${POOL_START_IP:-10.16.0.130}"
+-POOL_END_IP="${POOL_END_IP:-10.16.0.254}"
++PUBLIC_NET="${PUBLIC_NET:-10.0.9.0/24}"
++PUBLIC_NET_GATEWAY="${PUBLIC_NET_GATEWAY:-10.0.9.254}"
++POOL_START_IP="${POOL_START_IP:-10.0.9.130}"
++POOL_END_IP="${POOL_END_IP:-10.0.9.200}"
+ # Print openstack status and setup network
salt -C 'I@nova:controller and *01*' cmd.run ". /root/keystonercv3; \
- openstack compute service list; \
-@@ -29,6 +29,6 @@ salt -C 'I@nova:controller and *01*' cmd.run ". /root/keystonercv3; \
- openstack network create --external --default --provider-network-type flat \
- --provider-physical-network physnet1 floating_net"
- salt -C 'I@nova:controller and *01*' cmd.run ". /root/keystonercv3; \
-- openstack subnet create --gateway ${PUBLIC_NET%.*}.1 --no-dhcp \
-- --allocation-pool start=${PUBLIC_NET%.*}.130,end=${PUBLIC_NET%.*}.254 \
-+ openstack subnet create --gateway ${PUBLIC_NET%.*}.254 --no-dhcp \
-+ --allocation-pool start=${PUBLIC_NET%.*}.130,end=${PUBLIC_NET%.*}.200 \
- --network floating_net --subnet-range ${PUBLIC_NET} floating_subnet"
diff --git a/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/infra/config.yml b/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/infra/config.yml
-index 7e3a494..3a240b0 100644
+index 576925e..8530b10 100644
--- a/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/infra/config.yml
+++ b/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/infra/config.yml
@@ -61,9 +61,9 @@ parameters:
- external_address: 10.16.0.106
+ external_address: 10.0.9.106
diff --git a/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/openstack_init.yml b/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/openstack_init.yml
-index 89b06fb..0086470 100644
+index d5606b5..508d5e1 100644
--- a/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/openstack_init.yml
+++ b/mcp/reclass/classes/cluster/virtual-mcp-pike-common-noha/openstack_init.yml
@@ -14,7 +14,7 @@ parameters:
- external_address: 10.16.0.110
+ external_address: 10.0.9.110
diff --git a/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/config.yml b/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/config.yml
-index e80c442..1df99b4 100644
+index abe13ef..ba3a6fc 100644
--- a/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/config.yml
+++ b/mcp/reclass/classes/cluster/virtual-mcp-pike-ovs-dpdk-noha/infra/config.yml
@@ -25,4 +25,4 @@ parameters: