removal of nrpe-external-monitor relation where multiple exist

Bug #1906457 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hw-health-charm
Won't Fix
Medium
Unassigned

Bug Description

In the event that there are multiple relations to hw-health:nrpe-external-master

for instance:
hw-health:nrpe-external-master nrpe-compute-sriov-host:nrpe-external-master
hw-health:nrpe-external-master nrpe-host:nrpe-external-master
hw-health:nrpe-external-master nrpe-storage-host:nrpe-external-master

if you remove ONE of these relations, the charm status will become

"blocked idle Missing relations: nrpe-external-master"

Really this should only be true if the in-use relation is removed.

here's a workarond:
juju remove-relation hw-health:nrpe-external-master nrpe-compute-sriov-host:nrpe-external-master
juju remove-relation hw-health:nrpe-external-master nrpe-host:nrpe-external-master
juju remove-relation hw-health:nrpe-external-master nrpe-storage-host:nrpe-external-master
... appropriate waiting...
juju add-relation hw-health:nrpe-external-master nrpe-compute-sriov-host:nrpe-external-master
juju add-relation hw-health:nrpe-external-master nrpe-host:nrpe-external-master
juju add-relation hw-health:nrpe-external-master nrpe-storage-host:nrpe-external-master

this triggers all the relation-removed events -- then fires all the relation-add events.

Edin S (exsdev)
Changed in charm-hw-health:
importance: Undecided → Medium
Revision history for this message
Eric Chen (eric-chen) wrote :

This charm is no longer being actively maintained. Please consider using the new hardware-observer-operator instead. (https://github.com/canonical/hardware-observer-operator)
This issue is not critical, therefore, I mark it as "won't fix"

Changed in charm-hw-health:
status: New → 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.