diff options
author | Georg Kunz <georg.kunz@ericsson.com> | 2017-02-14 17:56:24 +0100 |
---|---|---|
committer | Georg Kunz <georg.kunz@ericsson.com> | 2017-02-16 09:52:44 +0100 |
commit | 3044900e61775ab01f90a1c40cac31e4212c7e45 (patch) | |
tree | d0ee7d0f9e477de19188cc1d116c4ba8dd0b297d /lib | |
parent | 6a2aaff3dbf80e91b873d15601c326d7eb194809 (diff) |
Adding Gluon to post-install and bumping version
Adding the creation of the Gluon dummy network and subnet
to the post installation steps.
Bumping the version of Gluon to the latest.
opnfv-tht-pr: 106
Change-Id: I5123916f0e153cbd1e70e443d9c8af38ac55fdef
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/post-install-functions.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index e2d9327d..5ca91897 100755 --- a/lib/post-install-functions.sh +++ b/lib/post-install-functions.sh @@ -104,6 +104,12 @@ else neutron subnet-create --name external-net --tenant-id \$(openstack project show service | grep id | awk '{ print \$4 }') --disable-dhcp external --gateway ${admin_gateway} --allocation-pool start=${admin_introspection_range%%,*},end=${admin_introspection_range##*,} ${admin_cidr} fi +if [ "${deploy_options_array['gluon']}" == 'True' ]; then + echo "Creating Gluon dummy network and subnet" + neutron net-create --shared --provider:network_type vxlan GluonNetwork + neutron subnet-create --name GluonSubnet --no-gateway --disable-dhcp GluonNetwork 0.0.0.0/1 +fi + echo "Removing sahara endpoint and service" sahara_service_id=\$(openstack service list | grep sahara | cut -d ' ' -f 2) sahara_endpoint_id=\$(openstack endpoint list | grep sahara | cut -d ' ' -f 2) @@ -166,6 +172,13 @@ fi EOI + # we need to restart neutron-server in Gluon deployments to allow the Gluon core + # plugin to correctly register itself with Neutron + if [ "${deploy_options_array['gluon']}" == 'True' ]; then + echo "Restarting neutron-server to finalize Gluon installation" + overcloud_connect "controller0" "sudo systemctl restart neutron-server" + fi + # for virtual, we NAT external network through Undercloud # same goes for baremetal if only jumphost has external connectivity if [ "$virtual" == "TRUE" ] || ! test_overcloud_connectivity && [ "$external_network_ipv6" != "True" ]; then |