In the devstack plugin, restart keystone after modifying conf

Keystone was complaining about not being able to load the
remote_id_attribute in the mapped group [0]. Since moving
to uwsgi, restarting keystone is done separately from apache,
so the configuration file wasn't being reloaded. Added a line
to restart the keystone service.

Also added a line to restart apache after configuration.

[0] http://paste.openstack.org/show/616498/

Change-Id: I4e7c04241c5058152529f8c95963be6f05f51a51
Closes-Bug: 1700847
This commit is contained in:
Kristi Nikolla 2017-07-25 16:31:10 -04:00
parent 025e844fc4
commit e5666f92d5
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,8 @@ function configure_apache {
cat $KEYSTONE_PLUGIN/files/federation/shib_apache_handler.txt | sudo tee -a $keystone_apache_conf
sudo sed -i -e "s|%IDP_ID%|$IDP_ID|g;" $keystone_apache_conf
restart_apache_server
}
function install_federation {
@ -95,6 +97,10 @@ function configure_federation {
# Specify the header that contains information about the identity provider
iniset $KEYSTONE_CONF mapped remote_id_attribute "Shib-Identity-Provider"
if [[ "$WSGI_MODE" == "uwsgi" ]]; then
restart_service "devstack@keystone"
fi
# Register the service provider
upload_sp_metadata
}