I’m building a charm that supports clustering through the use of a peer relation called ha
.
Adding new units works as expected but when removing one unit ha-relation-broken
is never run. ha-relation-departed
is properly called on all units of the relation (although it is called more than I’d expect on the departing machine) as well as the stop
hook but no ha-relation-broken
.
I’m using reactive and the flag isn’t set either. Does this thread still hold true today ?
I essentially need to run something only on the departing unit before the machine is shutdown and I do not need the relation at that point. Any idea on the issue and/or workaround ?
juju: 2.8.0-focal-amd64
charmstore-client 2.4.0+snap-461+git-13-547c6f2
charm-tools 2.7.4