Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1233283

Summary: Ceilometer mongo url not set on all controllers in HA setup
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: high Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: calfonso, dmacpher, gfidente, mandreou, mburns, rhel-osp-director-maint, sclewis
Target Milestone: gaKeywords: Triaged
Target Release: Director   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-0.8.6-12.el7ost Doc Type: Bug Fix
Doc Text:
The mongodb node list would only build correctly on one Controller node, which meant all other Controller nodes had Ceilometer configured with an empty list of mongodb nodes. This fix corrects the mongodb node list on all Controller nodes. Ceilometer has a properly populated list of mongodb nodes.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-05 13:54:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Cornea 2015-06-18 15:17:17 UTC
Description of problem:
Ceilometer mongo url not set on all controllers in a 3 controller node deployment.

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-0.8.6-9.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy overcloud with 3 controllers and 2 computes 
2. Check ceilometer.conf on the controllers for the mongodb connection configuration
3.

Actual results:
[heat-admin@overcloud-controller-0 ~]$ sudo grep mongo /etc/ceilometer/ceilometer.conf
connection=mongodb://192.0.2.17:27017,192.0.2.16:27017,192.0.2.18:27017/ceilometer?replicaSet=tripleo

[heat-admin@overcloud-controller-1 ~]$ sudo grep mongo /etc/ceilometer/ceilometer.conf
connection=mongodb:///ceilometer?replicaSet=

[heat-admin@overcloud-controller-2 ~]$ sudo grep mongo /etc/ceilometer/ceilometer.conf
connection=mongodb:///ceilometer?replicaSet=


Expected results:
The correct mongodb connection gets configured on all 3 controllers.

Additional info:

Comment 3 Marios Andreou 2015-06-19 11:44:01 UTC
upstream fix for this @ https://review.openstack.org/#/c/193179/ by gfidente. I tested it locally with control-scale 2 (cloned downstream tht and cherrypicked the template over, rebuilt roles) and Overcloud Deployed OK


 and [root@overcloud-controller-1 heat-admin]# sudo cat /etc/ceilometer/ceilometer.conf | grep mongo connection=mongodb://192.0.2.16:27017,192.0.2.14:27017/ceilometer?replicaSet=tripleo

Comment 6 errata-xmlrpc 2015-08-05 13:54:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1549