summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-barbican_git.bb
diff options
context:
space:
mode:
authorKeith Holman <Keith.Holman@windriver.com>2014-05-22 13:34:28 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-05-23 23:39:38 -0400
commit6350b155270f7f086624db36ecc6e6008ebcd378 (patch)
tree1be9f4036c0d32962c9cba3a87cc4d3a6b0b7e8f /meta-openstack/recipes-devtools/python/python-barbican_git.bb
parent601fb3a5c7c77ae940720830ee21a177f8fc322e (diff)
downloadmeta-cloud-services-6350b155270f7f086624db36ecc6e6008ebcd378.tar.gz
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 <Keith.Holman@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-barbican_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-barbican_git.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-barbican_git.bb b/meta-openstack/recipes-devtools/python/python-barbican_git.bb
index bc12fcd..eb4b44e 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"
6 6
7PR = "r0" 7PR = "r0"
8SRCNAME = "barbican" 8SRCNAME = "barbican"
9BARBICAN_MAX_PACKET_SIZE ?= "65535"
9 10
10SRC_URI = "git://github.com/stackforge/barbican.git;branch=master \ 11SRC_URI = "git://github.com/stackforge/barbican.git;branch=master \
11 file://barbican.init \ 12 file://barbican.init \
13 file://barbican-increase-buffer-size-to-support-PKI-tokens.patch \
12 " 14 "
13 15
14SRCREV="177d4499af6b261f48814503e3565f433e86cc66" 16SRCREV="177d4499af6b261f48814503e3565f433e86cc66"
@@ -26,11 +28,15 @@ do_install_append() {
26 28
27 install -d ${D}${localstatedir}/lib/barbican 29 install -d ${D}${localstatedir}/lib/barbican
28 30
31 sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-api.ini
32 sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-admin.ini
33
29 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 34 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
30 install -d ${D}${sysconfdir}/init.d 35 install -d ${D}${sysconfdir}/init.d
31 36
32 for binary in api; do 37 for binary in api; do
33 sed "s:@suffix@:$binary:" < ${WORKDIR}/barbican.init >${WORKDIR}/barbican-$binary.init.sh 38 sed "s:@suffix@:$binary:" < ${WORKDIR}/barbican.init >${WORKDIR}/barbican-$binary.init.sh
39 sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${WORKDIR}/barbican-$binary.init.sh
34 install -m 0755 ${WORKDIR}/barbican-$binary.init.sh ${D}${sysconfdir}/init.d/barbican-$binary 40 install -m 0755 ${WORKDIR}/barbican-$binary.init.sh ${D}${sysconfdir}/init.d/barbican-$binary
35 done 41 done
36 rm -f ${D}/usr/bin/barbican.sh 42 rm -f ${D}/usr/bin/barbican.sh