New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
leader-settings-changed
firing before unit departure
#708
Comments
If @wallyworld could clarify exactly what juju should be doing here that would help inform the best approach for dealing with things in the ops framework. |
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:
If @wallyworld <https://github.com/wallyworld> could clarify exactly what
juju *should* be doing here that would help inform the best approach for
dealing with things in the ops framework here.
—
Reply to this email directly, view it on GitHub
<#708 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABRQ7LJCMY6NXLJDPRRCELU5Y6BRANCNFSM5PUM4PHA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
FWIW these docs suggest that the leader-settings changed event should be firing like this. |
I hunted in the juju code for a bit and couldn't find anywhere that triggered a leader-settings-changed hook for unit departure. But my eyes and brain aren't very trained on reading the juju codebase yet. So maybe that doc page is just wrong (or out of date)... |
Nice, thanks all. Will close this for now and we can track this issue in the bug that Mia filed :) |
Hi team. I had some weird behavior for this set up / situation
For Example. If you have these units:
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:
The text was updated successfully, but these errors were encountered: