Testing rollback in VM charms, it often failed halting the event sequencing.
On inspection, it was possible to see concurrent upgrade_granted event being emitted on two units.
Solution
The solution seems to be removing a defer.
This is bit hard to pin down, but tests done on the PR#401 of the mysql operator, indicates that the issue went away.
Issue
Testing rollback in VM charms, it often failed halting the event sequencing. On inspection, it was possible to see concurrent
upgrade_granted
event being emitted on two units.Solution
The solution seems to be removing a defer. This is bit hard to pin down, but tests done on the PR#401 of the mysql operator, indicates that the issue went away.