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-915 fix storage re-use bug #246

Merged
merged 6 commits into from
Jun 28, 2023
Merged

DPE-915 fix storage re-use bug #246

merged 6 commits into from
Jun 28, 2023

Conversation

paulomach
Copy link
Contributor

@paulomach paulomach commented Jun 24, 2023

Issue

Failing to reuse previously storage on the charm.

Solution

If data directory is populated with mysql typical data, the charm tries to use start mysqld and rejoin the unit to the cluster.

Note 1: The unit-configured unit peer key, that indicate if a unit was already configured, was replaced with a method to check the mysql data directory directly.

Note 2: case there's a clusteradmin password rotation before the scale up, joining the unit will fail, since the passwords will be out of sync. There's a backlog task (dpe-2186) to track this scenario.

@paulomach paulomach marked this pull request as ready for review June 27, 2023 22:06
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/mysql_k8s_helpers.py Show resolved Hide resolved
src/mysql_k8s_helpers.py Show resolved Hide resolved
charmcraft.yaml Outdated Show resolved Hide resolved
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.

Nice progress! Let's the party begin!

@paulomach paulomach merged commit 93eb5c7 into main Jun 28, 2023
@paulomach paulomach deleted the fix/rescale-up-bug branch June 28, 2023 18:26
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