external network creation fix 05/10105/2
authorDan Radez <dradez@redhat.com>
Tue, 16 Feb 2016 18:48:52 +0000 (13:48 -0500)
committerDan Radez <dradez@redhat.com>
Wed, 17 Feb 2016 02:18:11 +0000 (02:18 +0000)
Change-Id: I618a6d6e762a464751d61c070571df400a3c8eda
cherry-picked from: 53122093b40ad3c53a83cc1595b0a2afe6c79378

ci/deploy.sh

index 31b5d2f..f7b30a1 100755 (executable)
@@ -951,10 +951,9 @@ function configure_post_install {
   ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
 source overcloudrc
 set -o errexit
-service_tenant_id="\$(keystone tenant-get service | grep id | awk '{ print \$4 }')"
 echo "Configuring Neutron external network"
-neutron net-create external --router:external=True --tenant-id \$service_tenant_id
-neutron subnet-create --name external-net --tenant-id \$service_tenant_id --disable-dhcp external --gateway ${public_network_gateway} --allocation-pool start=${public_network_floating_ip_range%%,*},end=${public_network_floating_ip_range##*,} ${public_network_cidr}
+neutron net-create external --router:external=True --tenant-id \$(keystone tenant-get service | grep id | awk '{ print \$4 }')
+neutron subnet-create --name external-net --tenant-id \$(keystone tenant-get service | grep id | awk '{ print \$4 }') --disable-dhcp external --gateway ${public_network_gateway} --allocation-pool start=${public_network_floating_ip_range%%,*},end=${public_network_floating_ip_range##*,} ${public_network_cidr}
 EOI
 
   echo -e "${blue}INFO: Checking if OVS bridges have IP addresses...${reset}"
@@ -1035,8 +1034,7 @@ done
 
 # Print out the dashboard URL
 source stackrc
-publicvip=\$(heat output-show overcloud PublicVip | sed 's/"//g')
-echo "Overcloud dashboard available at http://\$publicvip/dashboard"
+echo "Overcloud dashboard available at http://\$(heat output-show overcloud PublicVip | sed 's/"//g')/dashboard"
 EOI
 
 }