CMR fails to remove from offer model
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Christian Muirhead |
Bug Description
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/
From the consuming controller
juju add-relation ceph-exporter prod-maas:
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.
Both controllers are juju 2.6.6 as are the models.
I can haven't re-run this further with debug commands as I was concerned I might make things worse. I'm happy to run the remove-relation or remove-sas commands with --debug if that's helpful and you don't think it will make the situation worse.
Changed in juju: | |
status: | Fix Committed → Fix Released |
Did you try removing the relation from the offering side using the relation number you see when you list offers? If there's issues with one side of the relation communicating across models, you typically do need to remove the relation on both sides.