Skip to content
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

Merged
merged 6 commits into from
Oct 18, 2023
Merged

Conversation

paulomach
Copy link
Contributor

Issue

  1. single unit upgrade stuck at "other units upgrading first"
  2. single unit won't reconnect to a cluster (as it is the cluster)
  3. mysqlsh will fail on same version check

Solution

  1. upgrade library fix for single unit upgrade on vm at PR#102
  2. make usage of reboot_from_complete_outage for single unit deployment recovery
  3. modify mysqlsh version verification command to accommodate same versions correctly

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #340 (df278e6) into main (1f72f1b) will decrease coverage by 0.04%.
The diff coverage is 62.50%.

@@            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     
Files Coverage Δ
lib/charms/mysql/v0/mysql.py 73.22% <100.00%> (ø)
src/upgrade.py 71.75% <60.86%> (-1.26%) ⬇️

taurus-forever
taurus-forever previously approved these changes Oct 13, 2023
Copy link
Contributor

@taurus-forever taurus-forever left a 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
Comment on lines +136 to +138
- name: Free space in runner
run: |
# free space in the runner
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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...")
Copy link
Contributor

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.emiting an event, but just calling the handler (e.g. if the handler calls event.defer it's not deferring upgrade_changed)

@paulomach paulomach merged commit 3da1098 into main Oct 18, 2023
@paulomach paulomach deleted the fix/dpe-2662-single-unit-upgrade branch October 18, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants