-
Notifications
You must be signed in to change notification settings - Fork 12
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
Wait for units to settle after charm refresh #528
Conversation
6888ba0
to
71fe724
Compare
@canonical/soleng-reviewers I'd appreciate your thoughts on the implementation here. I haven't updated all the tests yet, but please see the first commit in this PR for the actual app code changes. I'm not sure if this is the best way to implement it, but the goal is to get COU to wait for the charm to finish any upgrade-charm hooks after running a charm refresh. Specifically, it appears that waiting between In general, it will be better for COU to wait for the charm to finish processing hooks after any changes (change config, refresh charm, etc.). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is safe to me since it's only adding wait steps after upgrade. However, just to leave it as note, we might need to increase global default timeout.
71fe724
to
cdf40a5
Compare
I don't think there is a global timeout? |
okay, maybe I was wrong. anyways, it's out of scope now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I believe there should be some doc change some where
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelallan72 so if I understood correctly if you manually upgrade the cloud the issue doesn't happen because you give more time to the application settle?
tests/mocked_plans/sample_plans/018346c5-f95c-46df-a34e-9a78bdec0018.yaml
Outdated
Show resolved
Hide resolved
Correct. And waiting for the unit to settle in between making changes to it is good practice in general. :) |
Avoids hitting race conditions in charms, such as https://bugs.launchpad.net/charm-barbican/+bug/2039604
d704d55
to
80dc85a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks LGTM, but linting is failing
Avoids hitting race conditions in charms,
such as https://bugs.launchpad.net/charm-barbican/+bug/2039604