Bug 730431

Summary: With events enabled error on repo create
Product: [Retired] Pulp Reporter: John Matthews <jmatthew>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-17 15:49:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description John Matthews 2011-08-12 21:48:17 UTC
Description of problem:

I enabled 'events' in /etc/pulp/pulp.conf
Now I see errors on repo create:

error: operation failed: AttributeError: 'str' object has no attribute 'relative_path'


/etc/pulp/pulp.conf
#
# AMQP event processing
#
[events]
send_enabled: true
recv_enabled: true

Log output

[Fri Aug 12 17:44:05 2011] [error] 2011-08-12 17:44:05,117 pulp.server.webservices.controllers.decorators:ERROR: Traceback (most recent call last):
[Fri Aug 12 17:44:05 2011] [error]   File "/shared/repo/pulp/src/pulp/server/webservices/controllers/decorators.py", line 48, in report_error
[Fri Aug 12 17:44:05 2011] [error]     return method(self, *args, **kwargs)
[Fri Aug 12 17:44:05 2011] [error]   File "/shared/repo/pulp/src/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator
[Fri Aug 12 17:44:05 2011] [error]     value = method(self, *args, **kwargs)
[Fri Aug 12 17:44:05 2011] [error]   File "/shared/repo/pulp/src/pulp/server/webservices/controllers/repositories.py", line 245, in POST
[Fri Aug 12 17:44:05 2011] [error]     content_types=repo_data.get('content_types', 'yum'))
[Fri Aug 12 17:44:05 2011] [error]   File "/shared/repo/pulp/src/pulp/server/event/dispatcher.py", line 83, in call
[Fri Aug 12 17:44:05 2011] [error]     method(inst, *args, **kwargs)
[Fri Aug 12 17:44:05 2011] [error]   File "/shared/repo/pulp/src/pulp/server/event/handler/repo.py", line 53, in create
[Fri Aug 12 17:44:05 2011] [error]     path = os.path.join(util.top_repos_location(), repo.relative_path)
[Fri Aug 12 17:44:05 2011] [error] AttributeError: 'str' object has no attribute 'relative_path'

Comment 1 Sayli Karmarkar 2011-08-17 15:49:26 UTC
Closing this as we do not have events any more.