Rsync exports removed on nrpe charm error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NRPE Charm |
Fix Released
|
Critical
|
Paul Gear |
Bug Description
We have seen the following behaviour quite a few times recently:
- nrpe charm tries to respond to a change (e.g. leadership election)
- Something fails in the charm
- /etc/rsync-
This in turn leads our monitoring system to believe the unit no longer exists, as it's not exporting any nagios checks any more, causing error warnings.
The logs always show the config-changed hook running and lines like this (at the end):
2016-11-21 07:12:32 INFO config-changed nagios-
2016-11-21 07:12:32 INFO config-changed rsync is already the newest version (3.1.1-3ubuntu1).
2016-11-21 07:12:32 INFO config-changed 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
2016-11-21 07:12:32 INFO juju-log /usr/bin/rsync -r --executability /var/lib/
2016-11-21 07:12:32 INFO config-changed inactive
2016-11-21 07:12:32 INFO config-changed Failed to start nrpe-install.
2016-11-21 07:12:32 INFO config-changed inactive
2016-11-21 07:12:32 INFO config-changed inactive
Unless the charm is uninstalled, the rsync config should not be removed.
Changed in nrpe-charm: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in nrpe-charm: | |
assignee: | nobody → Paul Gear (paulgear) |
Changed in nrpe-charm: | |
status: | Fix Committed → Fix Released |
Removed the code which caused the rsync target configuration to be removed. This is available in https:/ /code.launchpad .net/nrpe- charm now and will be pushed to charm store after more testing.