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-5178 Upgrade fix for admin-address enabled charm #520

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

paulomach
Copy link
Contributor

Issue

When upgrading, the new charm will try to check for server "upgradability" using the admin_address/port of an unit not yet upgrade, i.e. it may not yet have the port open.

Solution

Use clusteradmin user for the upgrade check, as it will default to standard port 3306.

@paulomach paulomach changed the title DPE-5178 Rollback fix for admin-address enabled charm DPE-5178 Upgrade fix for admin-address enabled charm Sep 11, 2024
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.

LGTM, one comment.

@@ -134,7 +134,7 @@ def wait_until_mysql_connection(self) -> None:
# Increment this major API version when introducing breaking changes
LIBAPI = 0

LIBPATCH = 71
LIBPATCH = 72
Copy link
Contributor

Choose a reason for hiding this comment

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

I read 72 was planned for @shayancanonical in some of reviews...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's the next one, so it depends who merges it first

@paulomach paulomach merged commit 1b4d923 into main Sep 12, 2024
102 of 103 checks passed
@paulomach paulomach deleted the fix/dpe-5178-fix-admin-port-for-upgrade branch September 12, 2024 13:58
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.

4 participants