Project

Profile

Help

Issue #446

Traceback in the logs if user tries to bind a non-existing consumer

Added by rbarlow over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Master
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

If users try to bind a non-existing consumer, a traceback is printed in the logs. I don't think this needs to be logged at all, but if it does get logged it at least shouldn't be a traceback.

Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: Missing resource(s): consumer=pineapplef
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: Traceback (most recent call last):
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/middleware/exception.py", line 44, in call
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return self.app(environ, start_response)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/middleware/postponed.py", line 42, in call
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return self.app(environ, start_response)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 279, in wsgi
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: result = self.handle_with_processors()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 29, in _handle_with_processors
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return process(self.processors)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in process
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return handler()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in <lambda>
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in process
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: result = handler()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in <lambda>
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 28, in process
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return self.handle()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return self._delegate(fn, self.fvars, args)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 422, in _delegate
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return f()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 430, in <lambda>
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: f = lambda: self._delegate_sub_application(pat, what)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 455, in _delegate_sub_application
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return app.handle_with_processors()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 29, in _handle_with_processors
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return process(self.processors)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in process
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return handler()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in <lambda>
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in process
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: result = handler()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 26, in <lambda>
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return p(lambda: process(processors))
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/application.py", line 28, in process
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return self.handle()
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return self._delegate(fn, self.fvars, args)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 405, in _delegate
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return handle_class(f)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: return tocall(*args)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/controllers/decorators.py", line 227, in _auth_decorator
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: value = method(self, *args, **kwargs)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/webservices/controllers/consumers.py", line 225, in POST
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: consumer_id, repo_id, distributor_id, notify_agent, binding_config, options)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/tasks/consumer.py", line 45, in bind
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: binding = bind_manager.bind(consumer_id, repo_id, distributor_id, notify_agent, binding_config)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/managers/consumer/bind.py", line 73, in bind
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: manager.get_consumer(consumer_id)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: File "/home/rbarlow/devel/pulp/server/pulp/server/managers/consumer/cud.py", line 218, in get_consumer
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: raise MissingResource(consumer=id)
Jun 3 16:51:30 grapefruit pulp: pulp.server.webservices.middleware.exception:ERROR: MissingResource: Missing resource(s): consumer=pineapplef

+ This bug was cloned from Bugzilla Bug #1104373 +

History

#1 Updated by bmbouter over 6 years ago

  • Severity changed from Low to 1. Low

#2 Updated by bmbouter over 2 years ago

  • Status changed from NEW to CLOSED - WONTFIX

#3 Updated by bmbouter over 2 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

#4 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF