CMR refuses to die when a secret granted to it is removed

Bug #2065284 reported by Paulo Machado
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Committed
High
Ian Booth

Bug Description

When trying to remove a secret granted to a CMR, on it's `broken-relation` hook, the relation won't die.
Doing the same process, without removing the granted secret, allows the relation to die.

The following charm implements a reproducer:

https://github.com/paulomach/test-secret-remove-charm

Run the `reproducer.sh` like:

> ./reproducer.sh model1 model2

Tested on microk8s and lxd with juju 3.4.2

Controller show logs like:

controller-0: 13:36:09 WARNING juju.state ignoring unit count mismatch on relation remote-da638e5e5d504f278032fc6fea29607f:async-replica db2:async-primary: expected 1 units in scope but got 0
controller-0: 13:36:09 WARNING juju.apiserver.common.crossmodel cmr errors forcing cleanup of remote-da638e5e5d504f278032fc6fea29607f:async-replica db2:async-primary: [application "remote-da638e5e5d504f278032fc6fea29607f" not found]

tags: added: canonical-data-platform-eng
Ian Booth (wallyworld)
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 3.3.5
assignee: nobody → Ian Booth (wallyworld)
Revision history for this message
Ian Booth (wallyworld) wrote :
Changed in juju:
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
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.