Skip to content

Commit

Permalink
Fix bug 1367208
Browse files Browse the repository at this point in the history
	neutronclient >= 2.3.7 requires public_endpoint and admin_endpoint in the keystone.conf,
	if not defaults to localhost.

Change-Id: I82d6f242161d7c25a8430826bbe01739370bbbc7
  • Loading branch information
cijohnson committed Oct 7, 2014
1 parent ac085c6 commit 516cc6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrail_setup_utils/keystone-server-setup.sh
Expand Up @@ -173,6 +173,8 @@ done
# Update all config files with service username and password
for svc in keystone; do
openstack-config --del /etc/$svc/$svc.conf database connection
openstack-config --set /etc/$svc/$svc.conf DEFAULT public_endpoint "http://$CONTROLLER:%(public_port)s/"
openstack-config --set /etc/$svc/$svc.conf DEFAULT admin_endpoint "http://$CONTROLLER:%(admin_port)s/"
openstack-config --set /etc/$svc/$svc.conf keystone_authtoken admin_tenant_name service
openstack-config --set /etc/$svc/$svc.conf keystone_authtoken admin_user $svc
openstack-config --set /etc/$svc/$svc.conf keystone_authtoken admin_password $SERVICE_PASSWORD
Expand All @@ -194,6 +196,8 @@ fi

if [ "$INTERNAL_VIP" != "none" ]; then
# Openstack HA specific config
openstack-config --set /etc/keystone/keystone.conf DEFAULT public_endpoint "http://$CONTROLLER:%(public_port)s/"
openstack-config --set /etc/keystone/keystone.conf DEFAULT admin_endpoint "http://$CONTROLLER:%(admin_port)s/"
openstack-config --set /etc/keystone/keystone.conf sql connection mysql://keystone:keystone@$CONTROLLER:3306/keystone
openstack-config --set /etc/keystone/keystone.conf token driver keystone.token.backends.sql.Token
openstack-config --del /etc/keystone/keystone.conf memcache servers
Expand Down

0 comments on commit 516cc6a

Please sign in to comment.