ceilometer amulet test fails with unexpected relation data in mongodb database - key 'replset' does not exist

Bug #1461911 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceilometer (Juju Charms Collection)
Fix Released
Undecided
Ryan Beisner

Bug Description

ceilometer amulet test fails with unexpected relation data in mongodb database - key 'replset' does not exist

Passes Precise-Icehouse, fails Trusty-Icehouse+.

I suspect a default behavior or relation change has occurred either in the ceilometer charm or the mongodb charm since the 15.04 release, without the functional test having its expectations updated.

2015-06-04 11:19:46,514 _validate_dict_data DEBUG: actual: {u'private-address': u'172.17.105.198', u'hostname': u'172.17.105.198', u'type': u'database', u'port': u'27017'}

2015-06-04 11:19:46,514 _validate_dict_data DEBUG: expected: {'private-address': <bound method OpenStackAmuletUtils.valid_ip of <charmhelpers.contrib.openstack.amulet.utils.OpenStackAmuletUtils object at 0x2b613b2be7d0>>, 'hostname': <bound method OpenStackAmuletUtils.valid_ip of <charmhelpers.contrib.openstack.amulet.utils.OpenStackAmuletUtils object at 0x2b613b2be7d0>>, 'type': 'database', 'port': '27017', 'replset': 'myset'}

unexpected relation data in mongodb database - key 'replset' does not exist

Ryan Beisner (1chb1n)
Changed in ceilometer (Juju Charms Collection):
assignee: nobody → Ryan Beisner (1chb1n)
description: updated
Revision history for this message
Corey Bryant (corey.bryant) wrote :

In mongodb revno 66 there was an update to not provide replset relation varable unless service is replsetted. So it looks like there needs to be a peer replica-set in the deployment for the replset variable to get set.

revno: 66 [merge]
author: Mario Splivalo <email address hidden>
committer: Jorge Niedbalski <email address hidden>
branch nick: mongodb
timestamp: Thu 2015-01-22 14:09:22 -0300
message:
  [mariosplivalo, r=niedbalski,freyes] Fixes various replicaset issues bug LP: #1403698, LP: #1370542, LP: #1379604

  unit tests Ok, amulet tests OK.

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Thanks, I was just filtering through trusty/mongodb!

Revision history for this message
Ryan Beisner (1chb1n) wrote :

FYI, I'll be proposing a change shortly.

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Amulet test updated, confirmed ok through trusty-kilo. Vivid-Kilo amulet test enablement to be addressed separately.

Changed in ceilometer (Juju Charms Collection):
status: New → In Progress
status: In Progress → Fix Committed
Changed in ceilometer (Juju Charms Collection):
milestone: none → 15.07
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.