Move external net into service tenant 95/9495/2
authorMichael Chapman <woppin@gmail.com>
Mon, 8 Feb 2016 05:33:54 +0000 (16:33 +1100)
committerMichael Chapman <woppin@gmail.com>
Tue, 9 Feb 2016 04:08:10 +0000 (15:08 +1100)
Change-Id: I3474118e58ae4946abfe9e74bb73084aad3634b2
JIRA: APEX-88

ci/deploy.sh

index 2e3bea7..8778788 100755 (executable)
@@ -932,9 +932,10 @@ function configure_post_install {
   ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
 source overcloudrc
 set -o errexit
+service_tenant_id=$(keystone tenant-get service 2>/dev/null | grep id | cut -d '|' -f 3)
 echo "Configuring Neutron external network"
-neutron net-create external --router:external=True
-neutron subnet-create --name external-net --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 $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}
 EOI
 
   echo -e "${blue}INFO: Checking if OVS bridges have IP addresses...${reset}"