`leader-settings-changed` firing before unit departure
See original GitHub issueHi team. I had some weird behavior for this set up / situation
For Example. If you have these units:
A *
B
C
and A
departs then you get these events hooks for each unit:
A
: leader-settings-changed
, mongodb-storage-detaching
, mongodb-relation-departed
(for A-B), mongodb-relation-departed
(for A-C), stop
, remove
B
: mongodb-relation-departed
(for A-B)
C
: mongodb-relation-departed
(for A-C),
According to @wallyworld and @rwcarlsen this is unexpected behaviour and should be looked into. As requested, this is my repo/branch where I observed this behaviour. It can be observed by first creating the necessary environment according to CONTRIBUTING.md. Once the environment has been created you can reproduce this with:
# pack and deploy
charmcraft pack
juju deploy -n3 ./*charm
# in a separate session
juju debug-hooks <leader_unit>
# remove unit
juju remove-unit <leader_unit
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
leader-settings-changed firing before unit departure
Hi team. I had some weird behavior for this set up / situation For Example. If you have these units: ``` A *...
Read more >A charm's life - Juju
Both relation and storage events are guaranteed to fire before stop / remove if they will fire at all. They are optional, in...
Read more >charm-nova-cloud-controller/nova_cc_hooks.py at master
Dbs can appear to be ready before the units ... NOTE(jamespage): Force re-fire of shared-db joined hook ... 'Waiting for cache expiry before...
Read more >Geeky | Tomechangosubanana - since 1995!
The two leader hooks are needed because leader-elected is only fired on the actual leader unit; all the others get leader-settings-changed ...
Read more >https://osm.etsi.org/gitlab/vnf-onboarding/osm-pac...
+ + Note that events firing during a CollectMetricsEvent are currently + sandboxed in ... This + can occur before units for those...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This doesn’t feel like an operator framework issue, but a juju issue https://bugs.launchpad.net/juju/+filebug
On Tue, Mar 1, 2022, 17:06 Robert Carlsen @.***> wrote:
Nice, thanks all. Will close this for now and we can track this issue in the bug that Mia filed 😃