From d88f3882d4fe1bba12ce592ffd86fd6c71133b13 Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Thu, 22 May 2014 13:34:28 -0400 Subject: barbican: increase uwsgi buffer-size to work with keystone uWSGI defaults to a maximum packet size of 4096 bytes. This is too small to support working with PKI tokens that are now default in Keystone. The size of the packets within Barbican are dependent on both the size of the Keystone token and the size of the secret to be stored & retrieved. Increasing the buffer size to the maximum allowed by uWSGI allows Barbican to support the largest possible secrets. Signed-off-by: Keith Holman --- meta-openstack/recipes-devtools/python/python-barbican_git.bb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-barbican_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-barbican_git.bb b/meta-openstack/recipes-devtools/python/python-barbican_git.bb index 765bd0f..713813f 100644 --- a/meta-openstack/recipes-devtools/python/python-barbican_git.bb +++ b/meta-openstack/recipes-devtools/python/python-barbican_git.bb @@ -6,9 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=fc8be9e7dffe97390d1216b01fd0be01" PR = "r0" SRCNAME = "barbican" +BARBICAN_MAX_PACKET_SIZE ?= "65535" SRC_URI = "git://github.com/stackforge/barbican.git;branch=master \ file://barbican.init \ + file://barbican-increase-buffer-size-to-support-PKI-tokens.patch \ " SRCREV="177d4499af6b261f48814503e3565f433e86cc66" @@ -26,11 +28,15 @@ do_install_append() { install -d ${D}${localstatedir}/lib/barbican + sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-api.ini + sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-admin.ini + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d for binary in api; do sed "s:@suffix@:$binary:" < ${WORKDIR}/barbican.init >${WORKDIR}/barbican-$binary.init.sh + sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${WORKDIR}/barbican-$binary.init.sh install -m 0755 ${WORKDIR}/barbican-$binary.init.sh ${D}${sysconfdir}/init.d/barbican-$binary done rm -f ${D}/usr/bin/barbican.sh -- cgit v1.2.3-54-g00ecf