A regular expression error occurs when running Quantum service on a Red Hat installation. The Quantum service is not able to process any requests on account of which this error. The exception trace can be found at http://paste.openstack.org/show/1638/
The offending regular expression appears to be coming from the URL mapper for the "port" resource:
Trying to validate the above regex points to a "group" error.
Possible workaround is to comment out the mapper.connect() calls for the "port" resource in quantum/api/__init__.py
I did not see this error when running Quantum on Ubuntu. Is this an artifact of an incorrect "routes" version that I might be running on RHEL, or is it something else? Any pointers are appreciated.
Thanks,
~Sumit.
Exception trace:
...
...
2011-06-11 17:04:54 DEBUG [routes.middleware] Initialized with method
overriding = True, and path info altering = True
2011-06-11 17:04:54 DEBUG [eventlet.wsgi.server] (19740) wsgi
starting up on http://0.0.0.0:9696/
2011-06-11 17:09:41 DEBUG [quantum.common.wsgi] HERE -
wsgi.Router.__call__
2011-06-11 17:09:41 DEBUG [eventlet.wsgi.server] Traceback (most
recent call last):
File "/usr/lib/python2.6/site-packages/eventlet/wsgi.py", line 336, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 203, in __call__
return app(environ, start_response)
File "/usr/lib/python2.6/site-packages/webob/dec.py", line 159, in __call__
return resp(environ, start_response)
File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 82, in __call__
config.environ = environ
File "/usr/lib/python2.6/site-packages/routes/__init__.py", line 22, in __setattr__
self.load_wsgi_environ(value)
File "/usr/lib/python2.6/site-packages/routes/__init__.py", line 51, in load_wsgi_environ
result = mapper.routematch(path)
File "/usr/lib/python2.6/site-packages/routes/mapper.py", line 336, in routematch
result = self._match(url)
File "/usr/lib/python2.6/site-packages/routes/mapper.py", line 270, in _match
self.create_regs()
File "/usr/lib/python2.6/site-packages/routes/mapper.py", line 237, in create_regs
self._create_regs(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/routes/mapper.py", line 251, in _create_regs
route.makeregexp(clist)
File "/usr/lib/python2.6/site-packages/routes/route.py", line 287, in makeregexp
self.regmatch = re.compile(reg)
File "/usr/lib64/python2.6/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib64/python2.6/re.py", line 245, in _compile
raise error, v # invalid expression
error: bad character in group name
2011-06-11 17:09:41 DEBUG [eventlet.wsgi.server] 10.10.9.99 - -
[11/Jun/2011 17:09:41] "DELETE /v0.1/tenants/totore/networks/000003.json
HTTP/1.1" 500 1735 0.004934
A regular expression error occurs when running Quantum service on a Red Hat installation. The Quantum service is not able to process any requests on account of which this error. The exception trace can be found at http:// paste.openstack .org/show/ 1638/
The offending regular expression appears to be coming from the URL mapper for the "port" resource:
^/tenants\ /(?P<tenant_ id>[^/] +?)\/networks\ /(?P<network_ id>[^/] +?)\/port id>[^/] +?)\/attachment (?P<.format> [^/]+?) (/)?$
s\/(?P<
Trying to validate the above regex points to a "group" error.
Possible workaround is to comment out the mapper.connect() calls for the "port" resource in quantum/ api/__init_ _.py
I did not see this error when running Quantum on Ubuntu. Is this an artifact of an incorrect "routes" version that I might be running on RHEL, or is it something else? Any pointers are appreciated.
Thanks,
~Sumit.
Exception trace:
... wsgi.server] (19740) wsgi 0.0.0.0: 9696/ common. wsgi] HERE - __call_ _ wsgi.server] Traceback (most python2. 6/site- packages/ eventlet/ wsgi.py" , line 336, in handle_one_response n(self. environ, start_response) python2. 6/site- packages/ paste/urlmap. py", line 203, in __call__ python2. 6/site- packages/ webob/dec. py", line 159, in __call__ python2. 6/site- packages/ routes/ middleware. py", line 82, in __call__ python2. 6/site- packages/ routes/ __init_ _.py", line 22, in __setattr__ load_wsgi_ environ( value) python2. 6/site- packages/ routes/ __init_ _.py", line 51, in load_wsgi_environ routematch( path) python2. 6/site- packages/ routes/ mapper. py", line 336, in routematch python2. 6/site- packages/ routes/ mapper. py", line 270, in _match create_ regs() python2. 6/site- packages/ routes/ mapper. py", line 237, in create_regs _create_ regs(*args, **kwargs) python2. 6/site- packages/ routes/ mapper. py", line 251, in _create_regs makeregexp( clist) python2. 6/site- packages/ routes/ route.py" , line 287, in makeregexp python2. 6/re.py" , line 190, in compile python2. 6/re.py" , line 245, in _compile wsgi.server] 10.10.9.99 - - totore/ networks/ 000003. json
...
2011-06-11 17:04:54 DEBUG [routes.middleware] Initialized with method
overriding = True, and path info altering = True
2011-06-11 17:04:54 DEBUG [eventlet.
starting up on http://
2011-06-11 17:09:41 DEBUG [quantum.
wsgi.Router.
2011-06-11 17:09:41 DEBUG [eventlet.
recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
return app(environ, start_response)
File "/usr/lib/
return resp(environ, start_response)
File "/usr/lib/
config.environ = environ
File "/usr/lib/
self.
File "/usr/lib/
result = mapper.
File "/usr/lib/
result = self._match(url)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
route.
File "/usr/lib/
self.regmatch = re.compile(reg)
File "/usr/lib64/
return _compile(pattern, flags)
File "/usr/lib64/
raise error, v # invalid expression
error: bad character in group name
2011-06-11 17:09:41 DEBUG [eventlet.
[11/Jun/2011 17:09:41] "DELETE /v0.1/tenants/
HTTP/1.1" 500 1735 0.004934