-
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
DPE-2662 single unit upgrade fixes #340
Conversation
Codecov Report
@@ Coverage Diff @@
## main #340 +/- ##
==========================================
- Coverage 64.50% 64.47% -0.04%
==========================================
Files 17 17
Lines 3113 3127 +14
Branches 413 415 +2
==========================================
+ Hits 2008 2016 +8
- Misses 979 983 +4
- Partials 126 128 +2
|
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.
We are loosing simplicity, but LGTM. Tnx!
we start seeing errors due to no space left on device
- name: Free space in runner | ||
run: | | ||
# free space in the runner |
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.
- name: Free space in runner | |
run: | | |
# free space in the runner | |
- name: Free up disk space | |
run: | | |
# From https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 |
nit
self.set_unit_completed() | ||
# ensures leader gets it's own relation-changed when it upgrades | ||
if self.charm.unit.is_leader(): | ||
logger.debug("Re-emitting upgrade-changed on leader...") |
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.
nit: "emitting" is a bit confusing since we're not ops.emit
ing an event, but just calling the handler (e.g. if the handler calls event.defer it's not deferring upgrade_changed)
Issue
Solution
reboot_from_complete_outage
for single unit deployment recovery