I was trying to use CMR to let a monitoring model scrape data from ceph-mon
. It turns out ceph-mon
doesn’t support CMR on the client relation, but now I can’t seem to remove the offer.
Steps I’ve taken so far.
From the Ceph controller
juju offer ceph-mon:client
Application "ceph-mon" endpoints [client] available at "admin/prod.ceph-mon"
From the consuming controller
juju add-relation ceph-exporter prod-maas:admin/prod.ceph-mon
This part worked as expected, and that’s when I found the limitation on the relation handling of ceph-mon. To reverse this I then:
From the consuming controller
juju remove-relation ceph-exporter ceph-mon
This worked and removed the relation, the charm recognized this and set relation flags (states) as expected. However, after this I tried to re-add it to debug further and that’s when I noticed issues.
The relation never fired a new hooks for the ceph-exporter. The relation was also not added to the list of relations. Checking back on the offer model I see that it still think the connection exists.
From the offer controller
Offer Application Charm Rev Connected Endpoint Interface Role
ceph-mon ceph-mon ceph-mon 42 1/1 client ceph-client provider
I’ve tried removing the relation (from the consumer), then removing the SAAS from the Offer and it says there is still a relation. I then tried removing with --force
which doesn’t error but doesn’t remove the relation either.
As far as I can tell the ceph-mon
has never had the ‘departed’ hook fired and the offer model doesn’t seem to recognize the removal of the relation at all. Am I doing something wrong or is there an issue with CMRs here?
Both controllers are juju 2.6.6 as are the models.