MongoDB PyMongo username/password warnings occur when running tests

Bug #1210674 reported by Terri Yu
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
Mehdi Abaakouk

Bug Description

When I run the Ceilometer tests, they pass, but I get several hundred MongoDB/PyMongo username/password warnings saying:

/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/pymongo/mongo_client.py:343: UserWarning: database name or authSource in URI is being ignored. If you wish to authenticate to ceilometer_546ebb9cf3394503b856276360660c47, you must provide a username and password.

The resulting output from running "tox -e py27" is attached in a file to this report.

Revision history for this message
Terri Yu (terriyu) wrote :
Changed in ceilometer:
assignee: nobody → Chmouel Boudjnah (chmouel)
Changed in ceilometer:
assignee: Chmouel Boudjnah (chmouel) → Mehdi Abaakouk (sileht)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/41719
Committed: http://github.com/openstack/ceilometer/commit/9f37e22c4791de6e0788742fed4f657c626b98d5
Submitter: Jenkins
Branch: master

commit 9f37e22c4791de6e0788742fed4f657c626b98d5
Author: Mehdi Abaakouk <email address hidden>
Date: Tue Aug 13 18:09:55 2013 +0200

    Remove the mongo auth warning during tests

    pymongo print a warning on each mongodb connection because the url used
    in tests don't have credentials, since all mongodb tests are running in
    a different mongodb databases, this print many annoying line like this one:

    UserWarning: database name or authSource in URI is being ignored. If you
    wish to authenticate to ceilometer_90d94586954643e8811d5ecc6bacf912, you
    must provide a username and password.

    This change suppress this line during testing.

    Fixes bug #1210674

    Change-Id: Iecabca621c2fbaf15e644f2fca66b4e3b5bd04e7

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.