Public bug reported: Neutron api paste pipeline needs a general error handling, though it is just a potential issue. If an error occurs in the pipeline before neutronapiapp_v2_0, a traceback will be returned in an API response.
For example, i added a code which raises an exception [1] to NeutronKeystoneContext middleware, $ neutron net-list Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 389, in handle_one_response result = self.application(self.environ, start_response) File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__ return app(environ, start_response) File "/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 581, in __call__ return self.app(env, start_response) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__ resp = self.call_func(req, *args, **self.kwargs) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func return self.func(req, *args, **kwargs) File "/opt/stack/neutron/neutron/auth.py", line 56, in __call__ print xxxx NameError: global name 'xxxx' is not defined [1] diff --git a/neutron/auth.py b/neutron/auth.py index 220bf3e..e9f700a 100644 --- a/neutron/auth.py +++ b/neutron/auth.py @@ -53,6 +53,8 @@ class NeutronKeystoneContext(wsgi.Middleware): # Inject the context... req.environ['neutron.context'] = ctx + print xxxx + return self.application ** Affects: neutron Importance: Undecided Assignee: Akihiro Motoki (amotoki) Status: New ** Changed in: neutron Assignee: (unassigned) => Akihiro Motoki (amotoki) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1258070 Title: Need general error handling in API paste pipeline Status in OpenStack Neutron (virtual network service): New Bug description: Neutron api paste pipeline needs a general error handling, though it is just a potential issue. If an error occurs in the pipeline before neutronapiapp_v2_0, a traceback will be returned in an API response. For example, i added a code which raises an exception [1] to NeutronKeystoneContext middleware, $ neutron net-list Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 389, in handle_one_response result = self.application(self.environ, start_response) File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__ return app(environ, start_response) File "/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 581, in __call__ return self.app(env, start_response) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__ resp = self.call_func(req, *args, **self.kwargs) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func return self.func(req, *args, **kwargs) File "/opt/stack/neutron/neutron/auth.py", line 56, in __call__ print xxxx NameError: global name 'xxxx' is not defined [1] diff --git a/neutron/auth.py b/neutron/auth.py index 220bf3e..e9f700a 100644 --- a/neutron/auth.py +++ b/neutron/auth.py @@ -53,6 +53,8 @@ class NeutronKeystoneContext(wsgi.Middleware): # Inject the context... req.environ['neutron.context'] = ctx + print xxxx + return self.application To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1258070/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp