Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1093417

Summary: Transport property not completely propagated in agent services.
Product: [Retired] Pulp Reporter: Jeff Ortel <jortel>
Component: z_otherAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Minar <mminar>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.4.0CC: bmbouter, jortel, mkoci, mminar
Target Milestone: ---   
Target Release: 2.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-09 06:56:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Pulp Test Error Output none

Description Jeff Ortel 2014-05-01 16:55:17 UTC
Description of problem:

the [messaging] transport property not propagated to all gofer objects when starting the agent services.  This happens on httpd start.


Version-Release number of selected component (if applicable):

2.4.0


How reproducible:

Always


Steps to Reproduce:
1. Configure the pulp server to use rabbitmq.
   Edit server.conf:
   [messaging]
   broker_url: amqp://localhost:<port running rabbitmq>/
   transport=amqplib

2. Make sure both python-gofer-qpid and python-gofer-amqplib are installed.

3. Restart httpd.

Actual results:

May  1 09:32:38 localhost pulp: pulp.server.webservices.application:CRITICAL: *************************************************************
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR: The Pulp server encountered an unexpected failure during initialization
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR: Traceback (most recent call last):
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/home/jortel/git/pulp/server/pulp/server/webservices/application.py", line 147, in wsgi_application
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     _initialize_pulp()
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/home/jortel/git/pulp/server/pulp/server/webservices/application.py", line 114, in _initialize_pulp
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     AgentServices.start()
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/home/jortel/git/pulp/server/pulp/server/agent/direct/services.py", line 53, in start
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     cls.reply_handler = ReplyHandler(url)
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/home/jortel/git/pulp/server/pulp/server/agent/direct/services.py", line 120, in __init__
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     self.consumer = ReplyConsumer(queue, url=url)
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/gofer/rmi/async.py", line 48, in __init__
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     Consumer.__init__(self, queue, url=url, transport=transport)
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/gofer/messaging/factory.py", line 343, in __init__
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     queue.declare(url)
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/gofer/transport/qpid/model.py", line 155, in declare
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     session = endpoint.session()
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/gofer/transport/qpid/endpoint.py", line 164, in session
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     self.__session = self.ssnpool.get(self.url)
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/gofer/transport/qpid/endpoint.py", line 52, in get
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     con = broker.connect()
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/gofer/transport/qpid/broker.py", line 81, in connect
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     con.attach()
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "<string>", line 6, in attach
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 291, in attach
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     if not self._ewait(lambda: self._transport_connected and not self._unlinked(), timeout=timeout):
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 224, in _ewait
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     self.check_error()
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:   File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 217, in check_error
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR:     raise e
May  1 09:32:38 localhost pulp: pulp.server.webservices.application:ERROR: VersionError: client: 0-10, server: 9-1

Expected results:

Attaches broker with no errors.


Additional info:

Comment 1 Jeff Ortel 2014-05-01 17:01:47 UTC
https://github.com/pulp/pulp/pull/931

Comment 2 Brian Bouterse 2014-05-01 19:22:51 UTC
Created attachment 891621 [details]
Pulp Test Error Output

Comment 3 Jeff Ortel 2014-05-02 17:47:38 UTC
build: 2.4.0-0.11.beta

Comment 5 Martin Minar 2014-06-05 08:53:07 UTC
Verified with pulp-server-2.4.0-0.18.beta.fc20.noarch.

Comment 6 Randy Barlow 2014-08-09 06:56:17 UTC
This has been fixed in Pulp 2.4.0-1.