X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-keystone%2Fkeystone-explicitly-import-localcontext-from-oslo.me.patch;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-keystone%2Fkeystone-explicitly-import-localcontext-from-oslo.me.patch;h=5c152e00de5fcdbc5d061d9ef3103ba100a26670;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-explicitly-import-localcontext-from-oslo.me.patch b/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-explicitly-import-localcontext-from-oslo.me.patch new file mode 100644 index 0000000..5c152e0 --- /dev/null +++ b/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-explicitly-import-localcontext-from-oslo.me.patch @@ -0,0 +1,32 @@ +From 0d6b66b2d5314b454a421bd22fcc8173baf0bc95 Mon Sep 17 00:00:00 2001 +From: Bruce Ashfield +Date: Mon, 20 Oct 2014 15:59:33 -0400 +Subject: [PATCH] keystone: explicitly import localcontext from oslo.messaging + +When using apache as a front end to keystone, juno has a problem when +authenticating clients due to a failure to import localcontext from +oslo. + +We can work around this issue by doing the export explicitly in the +entry routine versus in the library itself. + +Signed-off-by: Bruce Ashfield +--- + httpd/keystone.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/httpd/keystone.py b/httpd/keystone.py +index f5ce498c5152..b2b9285ad2ab 100644 +--- a/httpd/keystone.py ++++ b/httpd/keystone.py +@@ -32,6 +32,7 @@ from keystone.common import sql + from keystone import config + from keystone.openstack.common import log + from keystone import service ++from oslo.messaging import localcontext + + + CONF = config.CONF +-- +1.9.1 +