Project

Profile

Help

Issue #424

closed

pulp-manage-db stacks-dumps with no connection to mongodb

Added by mkovacik@redhat.com about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Low
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.4 Beta
Platform Release:
2.6.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
When unable to connect to the database, pulp-manage-db stack-dumps

Version-Release number of selected component (if applicable):
pulp-server-2.4.0-0.10.beta.fc20.noarch

How reproducible:
always

Steps to Reproduce:
1. mongo pulp_database --eval "db.dropDatabase()"
2. systemctl stop mongod.service
3. sudo -u apache pulp-manage-db

Actual results:
A stack dump dumped

Expected results:
Error condition properly logged by pulp-manage-db

Additional info:

  1. screen log
    [root@ec2-54-73-48-94 pulp_auto]# systemctl stop mongod
    [root@ec2-54-73-48-94 pulp_auto]# sudo -u apache pulp-manage-db
    No handlers could be found for logger "pulp.server.db.connection"
    Traceback (most recent call last):
    File "/bin/pulp-manage-db", line 9, in <module>
    load_entry_point('pulp-server==2.4.0', 'console_scripts', 'pulp-manage-db')()
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 357, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2394, in load_entry_point
    return ep.load()
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2108, in load
    entry = import(self.module_name, globals(),globals(), ['__name__'])
    File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 30, in <module>
    connection.initialize()
    File "/usr/lib/python2.7/site-packages/pulp/server/db/connection.py", line 67, in initialize
    _CONNECTION = pymongo.MongoClient(seeds, **connection_kwargs)
    File "/usr/lib64/python2.7/site-packages/pymongo/mongo_client.py", line 337, in init
    raise ConnectionFailure(str(e))
    pymongo.errors.ConnectionFailure: could not connect to localhost:27017: [Errno 111] Connection refused

+ This bug was cloned from Bugzilla Bug #1093763 +

Also available in: Atom PDF