Issue #844
Updated by bmbouter over 9 years ago
RabbitMQ users who follow "the install instructions":https://pulp.readthedocs.org/en/latest/user-guide/installation.html don't have a package group that they can install with. When following the instructions on https://pulp.readthedocs.org/en/latest/user-guide/installation.html and doing sudo yum groupinstall pulp-server, this misses the python-gofer-amqp rpm. As a result, installing the pulp-server RPM running pulp will result in error messages like: <pre> like There was an internal server error while trying to access the Pulp application. One possible cause is that the database needs to be migrated to the latest version. If this is the case, run pulp-manage-db and restart the services. More information may be found in Apache's log. </pre> and from /var/log/messages in debug mode: <pre> Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) The Pulp server encountered an unexpected failure during initialization Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) Traceback (most recent call last): Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 147, in wsgi_application Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) _initialize_pulp() Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) File "/usr/lib/python2.7/site-packages/pulp/server/webservices/application.py", line 114, in _initialize_pulp Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) AgentServices.start() Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) File "/usr/lib/python2.7/site-packages/pulp/server/agent/direct/services.py", line 35, in start Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) Services.reply_handler = ReplyHandler(url) Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) File "/usr/lib/python2.7/site-packages/pulp/server/agent/direct/services.py", line 110, in __init__ Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) queue.declare(url) Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) File "/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 39, in _fn Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) return fn(*args, **keywords) Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) File "/usr/lib/python2.7/site-packages/gofer/messaging/adapter/model.py", line 359, in declare Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) adapter = Adapter.find(url) Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) File "/usr/lib/python2.7/site-packages/gofer/messaging/adapter/factory.py", line 174, in find Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) raise AdapterNotFound(url.adapter) Apr 5 20:06:46 psu-bedrock-test1-uat pulp: pulp.server.webservices.application:ERROR: (11502-77536) AdapterNotFound: Messaging adapter: rabbitmq, not-found </pre> To fix this, a few things need to happen: 1. A package group named pulp-server-rabbitmq should be added to "comps.xml":https://github.com/pulp/pulp/blob/master/comps.xml. This should be an analog to "pulp-server-qpid":https://github.com/pulp/pulp/blob/master/comps.xml#L17 2. Similarly, one named pulp-consumer-rabbitmq should also be added. This should be an analog to pulp-consumer-qpid. 3. The installation docs should have a note added indicating that these two new package groups can be used. NOTE: At least one RPM that needs fixed by adding the gofer amqp module to be included is: python-gofer-amqp. There may also be others. the group install group.