Skip to content

Conversation

@paulomach
Copy link
Contributor

@paulomach paulomach commented Dec 4, 2025

Issue

  • Snap removal, used only in incompatible downgrade edge case, hanging on snap v2.72+. Snapd team does not have a good insight on what is at play

Solution

  • Avoid removing and reinstalling the snap altogether, explicitly doing the database initialization with snap run, instead of relying in the snap install hook.

@github-actions github-actions bot added the Libraries: Out of sync The charm libs used are out-of-sync label Dec 4, 2025
@paulomach paulomach added the bug Something isn't working as expected label Dec 4, 2025
@paulomach paulomach changed the title ensure no process is running and include a timeout Fix incompatible downgrade after snapd update Dec 5, 2025
@paulomach paulomach marked this pull request as ready for review December 5, 2025 15:48
Copy link
Contributor

@sinclert-canonical sinclert-canonical left a comment

Choose a reason for hiding this comment

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

Thanks for looking into it!

Copy link
Contributor

@astrojuanlu astrojuanlu left a comment

Choose a reason for hiding this comment

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

LGTM! Didn't know we were reinstalling mysql.

@paulomach
Copy link
Contributor Author

Merging with failed tests as it's unrelated to the PR and flaky in main, so to unblock other PRs

@paulomach paulomach merged commit 89df90f into main Dec 5, 2025
709 of 721 checks passed
@paulomach paulomach deleted the fix/fix-uninstall-on-downgrade branch December 5, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected Libraries: Out of sync The charm libs used are out-of-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants