Reviewed: https://review.openstack.org/446598 Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=86866f9ba5655ada618be4ebdb4dd6d62dece314 Submitter: Jenkins Branch: master
commit 86866f9ba5655ada618be4ebdb4dd6d62dece314 Author: Jakub Libosvar <[email protected]> Date: Thu Mar 16 11:28:10 2017 -0400 pecan: Make admin context if no context was created Simlarly to legacy [1] this patch creates context in case environment doesn't have one. Closes-bug: #1673105 [1] https://git.openstack.org/cgit/openstack/neutron/tree/neutron/wsgi.py?id=fe4559f475757c7fc1314862eba4705a27c06c87#n276 Change-Id: I4bf17d115166a8b18b054da41e79914eab27f6d3 ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1673105 Title: Pecan doesn't work with noauth auth_strategy Status in neutron: Fix Released Bug description: All fullstack tests fail because server is unable to server GET requests: 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation [-] GET failed. 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation Traceback (most recent call last): 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/new/neutron/.tox/dsvm-fullstack/local/lib/python2.7/site-packages/pecan/core.py", line 682, in __call__ 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation controller, args, kwargs = self.find_controller(state) 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/new/neutron/.tox/dsvm-fullstack/local/lib/python2.7/site-packages/pecan/core.py", line 858, in find_controller 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation controller, args, kw = super(Pecan, self).find_controller(_state) 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/new/neutron/.tox/dsvm-fullstack/local/lib/python2.7/site-packages/pecan/core.py", line 550, in find_controller 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation self.handle_hooks(self.determine_hooks(controller), 'before', state) 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/new/neutron/.tox/dsvm-fullstack/local/lib/python2.7/site-packages/pecan/core.py", line 865, in handle_hooks 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation return super(Pecan, self).handle_hooks(hooks, *args, **kw) 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/new/neutron/.tox/dsvm-fullstack/local/lib/python2.7/site-packages/pecan/core.py", line 342, in handle_hooks 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation result = getattr(hook, hook_type)(*args) 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/new/neutron/neutron/pecan_wsgi/hooks/context.py", line 24, in before 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation ctx = state.request.environ['neutron.context'] 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation KeyError: 'neutron.context' 2017-03-15 05:04:13.916 12991 ERROR neutron.pecan_wsgi.hooks.translation Switching web_framework to legacy works so it's related to pecan switch. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1673105/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

