Rsync exports removed on nrpe charm error

Bug #1643534 reported by Chris Stratford
22
This bug affects 3 people
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-juju.d/010-nrpe-external-master.conf gets removed

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-plugins-standard is already the newest version (2.1.2-2ubuntu2).
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/juju/agents/unit-nrpe-3/charm/files/plugins /usr/local/lib/nagios/
2016-11-21 07:12:32 INFO config-changed inactive
2016-11-21 07:12:32 INFO config-changed Failed to start nrpe-install.service: Unit nrpe-install.service not found.
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.

Stuart Bishop (stub)
Changed in nrpe-charm:
status: New → Triaged
importance: Undecided → Critical
Paul Gear (paulgear)
Changed in nrpe-charm:
assignee: nobody → Paul Gear (paulgear)
Revision history for this message
Paul Gear (paulgear) wrote :

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.

Changed in nrpe-charm:
status: Triaged → Fix Committed
Paul Gear (paulgear)
Changed in nrpe-charm:
status: Fix Committed → Fix Released
Revision history for this message
Seyeong Kim (seyeongkim) wrote :

is this resolved?

I can find "Failed to start nrpe-install.service: Unit nrpe-install.service not found." msgs

after deploying simple nagios + some node with nrpe charm. ( and after config-changed )

but /etc/rsync-juju.d/010-nrpe-external-master.conf is there

is this msgs are harmless?

Revision history for this message
Paul Gear (paulgear) wrote :

@xtrusia: I've seen that message also, and it appears to be harmless. I haven't had the opportunity to investigate it yet.

But to answer your questions: yes, I believe this bug to be resolved and the message to be harmless.

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.