ceilometer dbsync fails on first puppet run

Bug #1301577 reported by Chris Ricker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Medium
Pradeep Kilambi

Bug Description

aio install, the first puppet apply site.pp run, cisco repos

Debug: /Stage[main]/Ceilometer::Db/Ceilometer_config[database/connection]: The container Class[Ceilometer::Db] will propagate my refresh event
Debug: Exec[ceilometer-dbsync](provider=posix): Executing 'ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf'
Debug: Executing 'ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf'
Notice: /Stage[main]/Ceilometer::Db/Exec[ceilometer-dbsync]/returns: 2014-04-02 19:44:41.439 17923 CRITICAL ceilometer [-] ConnectionFailure: could not connect to localhost:27017: [Errno -9] Address family for hostname not supported
Error: /Stage[main]/Ceilometer::Db/Exec[ceilometer-dbsync]: Failed to call refresh: ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf returned 1 instead of one of [0]
Error: /Stage[main]/Ceilometer::Db/Exec[ceilometer-dbsync]: ceilometer-dbsync --config-file=/etc/ceilometer/ceilometer.conf returned 1 instead of one of [0]

Revision history for this message
Chris Ricker (chris-ricker) wrote :

Underlying issue appears to be that the ceilometer db is not being created so the connection string fails

connection string is:

connection=mongodb://localhost:27017/ceilometer

mongodb doesn't have a ceilometer db however:

# mongo
> show dbs
local 0.078125GB
> exit

This does not get resolved by additional puppet runs -- looks like we don't have code to create a ceilometer db in mongo in our puppetry that I can find?

Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

Its in the data mappings:

https://github.com/stackforge/puppet_openstack_builder/blob/master/data/data_mappings/common.yaml#L189

Sounds like a race condition perhaps? with mysql switch this might go away. At least i havent seen it in my deployments.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| ceilometer |
| cinder |
| glance |
| heat |
| keystone |
| mysql |
| neutron |
| nova |
| performance_schema |
+--------------------+
10 rows in set (0.00 sec)

Revision history for this message
Chris Ricker (chris-ricker) wrote :

but where's the corresponding code to do a mongo database create? that's what I don't see anywhere in the puppet modules?

Changed in openstack-cisco:
assignee: nobody → Pradeep Kilambi (pkilambi)
Revision history for this message
Pradeep Kilambi (pkilambi) wrote :
Changed in openstack-cisco:
status: New → In Progress
Changed in openstack-cisco:
status: In Progress → Fix Committed
Changed in openstack-cisco:
status: Fix Committed → Fix Released
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.