NRPE.remove_check needs manual hooks/config-changed run

Bug #1812265 reported by Alvaro Uria
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
NRPE Charm
Won't Fix
Medium
Unassigned

Bug Description

Juju 2.4, xenial.

I use 3 charms:
* 1x principal
* 2x subordinates, one of them is nrpe-charm

Use case:
0) principal<->nrpe-charm, principal<->2ndsubordinate, nrpe-charm<->2ndsubordinate (nrpe-external-master relation)
1) The second subordinate adds a check (via charmhelpers.contrib.charmsupport.nrpe.NRPE), which works.
2) If juju remove-relation principal 2ndsubordinate, this subordinate's "stop" hook runs "NRPE.remove_check" and "NRPE.write".

Check continues to be in Nagios until "hooks/config-changed is run on the nrpe-charm.
juju run --application nrpe-charm hooks/config-changed

It would be nice to support nrpe-external-master-relation-departed so automatically propagate the change done during 2ndsubordinate removal.

Changed in nrpe-charm:
importance: Undecided → Medium
status: New → Triaged
Eric Chen (eric-chen)
Changed in charm-nrpe:
status: Triaged → Confirmed
status: Confirmed → Won't Fix
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.