Bug 787159 - pulp-server service fails to start
Summary: pulp-server service fails to start
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Upstream
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-03 11:16 UTC by Kedar Bidarkar
Modified: 2012-02-08 10:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-08 10:17:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Kedar Bidarkar 2012-02-03 11:16:16 UTC
Description of problem:
[root@ip-10-38-178-162 ~]# service pulp-server start
Pulp database not initialized, please run: /etc/init.d/pulp-server init
[root@ip-10-38-178-162 ~]# service pulp-server restart
Stopping httpd:                                            [FAILED]
Stopping Qpid AMQP daemon:                                 [FAILED]
Pulp database not initialized, please run: /etc/init.d/pulp-server init
[root@ip-10-38-178-162 ~]# /etc/init.d/pulp-server init
Starting mongod:                                           [  OK  ]
Traceback (most recent call last):
  File "/usr/bin/pulp-migrate", line 19, in <module>
    from pulp.server.db.migrate import script
  File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/script.py", line 27, in <module>
    connection.initialize()
  File "/usr/lib/python2.6/site-packages/pulp/server/db/connection.py", line 47, in initialize
    _connection = pymongo.Connection(seeds)
  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 305, in __init__
    self.__find_master()
  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 509, in __find_master
    raise AutoReconnect("could not find master/primary")
pymongo.errors.AutoReconnect: could not find master/primary


Version-Release number of selected component (if applicable):
pulp-0.0.263-4.el6.noarch


How reproducible:
On starting pulp-server service

Fails for both selinux enabled and disabled

Steps to Reproduce:
1.
2.
3.
  
Actual results:
service pulp-server fails to start

Expected results:


Additional info:

Comment 1 Kedar Bidarkar 2012-02-07 09:28:30 UTC
I was trying to troubleshoot this issue and found that if seeds: <host> entry in /etc/pulp/pulp.conf file is other than seeds: localhost , spulp-server init fails to run.


seeds : localhost , service pulp-server init is successful 

seeds: <the actual pulp hostname>  , pulp-server init fails to run.


Note You need to log in before you can comment on or make changes to this bug.