incorrect connection string to mongo

Bug #1311088 reported by Ivan Berezovskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Bogdan Dobrelya

Bug Description

1. Cluster HA
2. CentOS or Ubuntu
3. Nova or neutron
4. Install Ceilometer
5. 2 Controllers+mongoDB

Go to /etc/ceilometer/ceilometer.conf and take a look on connection:

connection=mongodb://ceilometer:ztKiS02z@192.168.0.3,192.168.0.2,/ceilometer

So connection string is formed for 3 nodes with mongo, but I have only 2 nodes in my env. So need to check count of mongo nodes and do not put comma at the end of hosts.

I reproduced this on 442 ISO.

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Changed in fuel:
assignee: nobody → Bogdan Dobrelya (bogdando)
importance: Undecided → Medium
milestone: none → 5.0
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/88565
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=4b261e2ee6b6d1847202972234d3b70b4c8efe5c
Submitter: Jenkins
Branch: master

commit 4b261e2ee6b6d1847202972234d3b70b4c8efe5c
Author: Bogdan Dobrelya <email address hidden>
Date: Fri Apr 18 15:37:25 2014 +0300

    Fix mongo db nodes collection

    We should not put a comma at the end of mongo db nodes list.
    Because current mongo implementation supports max 3 mongo nodes,
    fix the cases for # of mongo nodes < 3.

    Closes-bug: #1311088

    Change-Id: I5276aa71b3a637cb485983ec13ebcd83f8add5fc
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
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.