← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1014591] Re: GET /v2.0 HTTP/1.1 gives internal server error

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1014591

Title:
  GET /v2.0 HTTP/1.1 gives internal server error

Status in neutron:
  Expired

Bug description:
  When we query server with GET /v2.0 HTTP/1.1 the server response is
  500 Internal server error with following error in response body:

  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/eventlet-0.9.16-py2.7.egg/eventlet/wsgi.py", line 336, in handle_one_response
      result = self.application(self.environ, start_response)
    File "/usr/local/lib/python2.7/dist-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py", line 203, in __call__
      return app(environ, start_response)
    File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
      return resp(environ, start_response)
    File "/usr/local/lib/python2.7/dist-packages/Routes-1.13-py2.7.egg/routes/middleware.py", line 80, in __call__
      config.environ = environ
    File "/usr/local/lib/python2.7/dist-packages/Routes-1.13-py2.7.egg/routes/__init__.py", line 22, in __setattr__
      self.load_wsgi_environ(value)
    File "/usr/local/lib/python2.7/dist-packages/Routes-1.13-py2.7.egg/routes/__init__.py", line 51, in load_wsgi_environ
      result = mapper.routematch(path)
    File "/usr/local/lib/python2.7/dist-packages/Routes-1.13-py2.7.egg/routes/mapper.py", line 688, in routematch
      raise RoutesException('URL or environ must be provided')
  RoutesException: URL or environ must be provided

  I think the server should not reply with its internals in response body.
  Also to be noted is that when we query with GET /v2.0/ HTTP/1.1 then server responds with:

  <resources><resource collection="subnets" name="subnet"><links><link
  href="http://127.0.0.1:9696/v2.0/subnets";
  rel="self"/></links></resource><resource collection="networks"
  name="network"><links><link href="http://127.0.0.1:9696/v2.0/networks";
  rel="self"/></links></resource><resource collection="ports"
  name="port"><links><link href="http://127.0.0.1:9696/v2.0/ports";
  rel="self"/></links></resource></resources>

  which looks kind of appropriate. Should such error be allowed by the
  server?

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1014591/+subscriptions