metering_secret inconsistent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceilometer (Juju Charms Collection) |
Fix Released
|
High
|
Billy Olsen |
Bug Description
The metering_secret is inconsistent across units of the ceilometer service, which causes the ceilometer colelctor to fail with errors such as:
016-02-01 06:57:01.166 28406 WARNING ceilometer.
Checking the metering_secret stored on the units, I see:
ubuntu@
- MachineId: "1"
Stdout: |
metering_secret = dc991082-
UnitId: ceilometer/0
- MachineId: "23"
Stdout: |
metering_secret = 899e31f2-
UnitId: ceilometer/1
- MachineId: "24"
Stdout: |
metering_secret = e551c3a6-
UnitId: ceilometer/2
This appears to be fallout from the leadership election changes. The value is stored in the leadership settings, but its not honored in the peer units of the leader:
ubuntu@
- MachineId: "1"
Stdout: |
True
UnitId: ceilometer/0
- MachineId: "23"
Stdout: |
False
UnitId: ceilometer/1
- MachineId: "24"
Stdout: |
False
UnitId: ceilometer/2
ubuntu@
shared_secret: dc991082-
Related branches
- James Page: Approve
-
Diff: 71 lines (+9/-6)2 files modifiedhooks/ceilometer_hooks.py (+5/-2)
unit_tests/test_ceilometer_hooks.py (+4/-4)
- Edward Hope-Morley: Disapprove
-
Diff: 71 lines (+9/-6)2 files modifiedhooks/ceilometer_hooks.py (+5/-2)
unit_tests/test_ceilometer_hooks.py (+4/-4)
Changed in ceilometer (Juju Charms Collection): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Billy Olsen (billy-olsen) |
milestone: | none → 16.04 |
Changed in ceilometer (Juju Charms Collection): | |
status: | Confirmed → In Progress |
tags: | added: hitlist openstack sts |
Changed in ceilometer (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
tags: | added: backport-potential |
Changed in ceilometer (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Note, a work around is the following:
juju run --service ceilometer 'leader-get shared_secret | sudo tee /etc/ceilometer /secret. txt'
and then run a config changed hook to update the ceilometer.conf settings, (e.g. juju set ceilometer debug=True, then juju set ceilometer debug=False).