Remove sahara endpoint 85/15785/1
authorMichael Chapman <michapma@redhat.com>
Thu, 16 Jun 2016 20:30:55 +0000 (16:30 -0400)
committerMichael Chapman <michapma@redhat.com>
Thu, 16 Jun 2016 20:31:50 +0000 (16:31 -0400)
Sahara isn't installed, and having the endpoint confuses testing
services. This patch removes the endpoint after deployment.

Change-Id: Iaab227d398704c31911feaf7ea3bfbfa655d0f54
JIRA: APEX-176
Signed-off-by: Michael Chapman <michapma@redhat.com>
ci/deploy.sh

index 05e2fa2..a004dd3 100755 (executable)
@@ -1044,11 +1044,18 @@ echo "Configuring Neutron external network"
 neutron net-create external --router:external=True --tenant-id \$(openstack project show service | grep id | awk '{ print \$4 }')
 neutron subnet-create --name external-net --tenant-id \$(openstack project show 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}
 
+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)
+openstack endpoint delete \$sahara_endpoint_id
+openstack service delete \$sahara_service_id
+
 echo "Removing swift endpoint and service"
 swift_service_id=\$(openstack service list | grep swift | cut -d ' ' -f 2)
 swift_endpoint_id=\$(openstack endpoint list | grep swift | cut -d ' ' -f 2)
 openstack endpoint delete \$swift_endpoint_id
 openstack service delete \$swift_service_id
+
 EOI
 
   echo -e "${blue}INFO: Checking if OVS bridges have IP addresses...${reset}"