From 516cc6a26487675a5d1eb914f390a84bf00e26b6 Mon Sep 17 00:00:00 2001 From: Ignatious Johnson Date: Tue, 7 Oct 2014 16:49:49 -0700 Subject: [PATCH] Fix bug 1367208 neutronclient >= 2.3.7 requires public_endpoint and admin_endpoint in the keystone.conf, if not defaults to localhost. Change-Id: I82d6f242161d7c25a8430826bbe01739370bbbc7 --- contrail_setup_utils/keystone-server-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrail_setup_utils/keystone-server-setup.sh b/contrail_setup_utils/keystone-server-setup.sh index 2cedb635..51e8d536 100755 --- a/contrail_setup_utils/keystone-server-setup.sh +++ b/contrail_setup_utils/keystone-server-setup.sh @@ -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 @@ -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