Actions
Bug #21778
openhandle repos that are not present to recreate/update
Status:
New
Priority:
Normal
Assignee:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: [2017-10-12 22:15:38 +0000] [4173] [ERROR] Error handling request /repos/ceph/wip-pdonnell-testing-20171012/883ce3323ddcef26c8a67e8e4d6e2db545d6dbd5/centos/7/recreate Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: Traceback (most recent call last): Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: self.handle_request(listener, req, client, addr) Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: respiter = self.wsgi(environ, resp.start_response) Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/middleware/recursive.py", line 56, in __call__ Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: return self.application(environ, start_response) Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/core.py", line 835, in __call__ Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: return super(Pecan, self).__call__(environ, start_response) Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/core.py", line 678, in __call__ Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: self.invoke_controller(controller, args, kwargs, state) Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/core.py", line 569, in invoke_controller Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: result = controller(*args, **kwargs) Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/src/chacra/chacra/controllers/repos/__init__.py", line 111, in recreate Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: logger.info('removing repository path: %s', self.repo_obj.path) Oct 12 22:15:38 chacra2 gunicorn_pecan[4155]: AttributeError: 'NoneType' object has no attribute 'path'
And
Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: [2017-10-12 22:13:07 +0000] [4173] [ERROR] Error handling request /repos/ceph/wip-pdonnell-testing-20171012/883ce3323ddcef26c8a67e8e4d6e2db545d6dbd5/centos/7/flavors/notcmalloc/recreate Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: Traceback (most recent call last): Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: self.handle_request(listener, req, client, addr) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: respiter = self.wsgi(environ, resp.start_response) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/middleware/recursive.py", line 56, in __call__ Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: return self.application(environ, start_response) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/core.py", line 835, in __call__ Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: return super(Pecan, self).__call__(environ, start_response) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/core.py", line 678, in __call__ Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: self.invoke_controller(controller, args, kwargs, state) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/local/lib/python2.7/site-packages/pecan/core.py", line 569, in invoke_controller Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: result = controller(*args, **kwargs) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/src/chacra/chacra/controllers/repos/__init__.py", line 113, in recreate Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: shutil.rmtree(self.repo_obj.path) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/usr/lib/python2.7/shutil.py", line 228, in rmtree Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: if os.path.islink(path): Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: File "/opt/chacra/lib/python2.7/posixpath.py", line 135, in islink Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: st = os.lstat(path) Oct 12 22:13:07 chacra2 gunicorn_pecan[4155]: TypeError: coercing to Unicode: need string or buffer, NoneType found
Updated by David Galloway over 2 years ago
I guess this one is still valid. chacractl
gets a 500 instead of a 404 if the repo doesn't exist. That doesn't seem ideal.
Actions