Fix accepting longer PKI keystone auth requests to Barbican

Passing CLI option '-b' during barbican start is not honored by uwsgi.
So, set buffer-size=65535 in /etc/barbican/vassals/barbican-api.ini
Removed redundant '--logto' CLI option to uwsgi.

Change-Id: Icea0144f2c19e916d65c9836ddc9d7e48ecd9412
This commit is contained in:
Ravi Sankar Penta 2014-06-17 15:15:11 -07:00
parent 9d70030e58
commit 7fffe9540c

@ -101,6 +101,9 @@ function configure_barbican {
# Set the database connection url
iniset $BARBICAN_CONF DEFAULT sql_connection `database_connection_url barbican`
# Increase default request buffer size, keystone auth PKI tokens can be very long
iniset $BARBICAN_CONF_DIR/vassals/barbican-api.ini uwsgi buffer-size 65535
# Rabbit settings
if is_service_enabled rabbit; then
iniset $BARBICAN_CONF 'secrets' broker rabbit://guest:$RABBIT_PASSWORD@$RABBIT_HOST
@ -148,7 +151,7 @@ function install_barbicanclient {
# start_barbican - Start running processes, including screen
function start_barbican {
screen_it barbican "uwsgi --master --emperor $BARBICAN_CONF_DIR/vassals --logto $BARBICAN_API_LOG_DIR/barbican.log -b 65535"
screen_it barbican "uwsgi --master --emperor $BARBICAN_CONF_DIR/vassals"
}
# stop_barbican - Stop running processes