should try to reconnect to mongodb on ConnectionFailure

Bug #1305920 reported by Ionuț Arțăriși
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
Ionuț Arțăriși
Fuel for OpenStack
Fix Committed
Dina Belova

Bug Description

Ceilometer fails to start if it cannot connect to mongodb. This happens even when the mongodb service is up, but it's not responding to connections (e.g. because it's in the process of initializing a replica set).

It would be nice to have ceilometer reconnect to mongodb, the same way other services, like nova, do for rabbitmq for example.

tags: added: havana-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master

Changed in ceilometer:
assignee: nobody → Ionuț Arțăriși (mapleoin)
status: New → In Progress
gordon chung (chungg)
Changed in ceilometer:
importance: Undecided → Low
Changed in fuel:
importance: Undecided → Low
assignee: nobody → Fuel Library Team (fuel-library)
milestone: none → 5.0.1
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Submitter: Jenkins
Branch: master

commit ced867e7feabe830ca193add5437f12276b9dc05
Author: Ionuț Arțăriși <email address hidden>
Date: Thu Apr 10 16:25:52 2014 +0200

    reconnect to mongodb on connection failure

    Try to reconnect to mongodb when the client library raised a
    ConnectionFailure error. This is especially useful when mongodb is in
    the process of initializing a replica set and it does not respond to
    connections even though the mongodb service is up.

    Change-Id: I1818d90c135b248a28b35dc0b9f6106cf89496ab
    Closes-Bug: #1305920

Changed in ceilometer:
status: In Progress → Fix Committed
Eoghan Glynn (eglynn)
Changed in ceilometer:
milestone: none → juno-1
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → MOS Ceilometer (mos-ceilometer)
Revision history for this message
Dina Belova (dbelova) wrote :

Fix has been already cherry-picked to the MOS 5.0.1- changes 'Reconnect to MongoDB on connection failure' and 'Fix options placement for the MongoDB reconnect' in the 5.0.1 ceilometer MOS branch.

Changed in fuel:
assignee: MOS Ceilometer (mos-ceilometer) → Dina Belova (dbelova)
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-1 → 2014.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.