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-5540 Skip plugin install for not file found #524

Merged
merged 5 commits into from
Sep 26, 2024

Conversation

paulomach
Copy link
Contributor

@paulomach paulomach commented Sep 23, 2024

Issue

  1. config_change hook will try to install plugins if configuration diff so indicates, even if plugins files are not available.
  2. admin address enabled charms revisions will fail to connect to mysqld case it's not restarted

Case:
refresh ran without pre-upgrade-check - so snap is not updated (no plugin files) but config changed is triggered.

Solution

  1. Check for plugin file before try install. Skip if file not found
  2. Ensure mysqld restarts on post refresh config_change event

Copy link
Contributor

@shayancanonical shayancanonical left a comment

Choose a reason for hiding this comment

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

looks good. still confused about the symptoms of the issue - if the charm would enter an error state previously, i would recommend adding a test that runs upgrade without pre-upgrade-check to ensure that things start up normally. thoughts?

Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical left a comment

Choose a reason for hiding this comment

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

looks good short-term

when adding refresh v3, would recommend not modifying plugins while a refresh is in progress

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 here, ACK to Shayan: adding a test to run refresh without pre-upgrade-check will help us returning here for the following candidate revisions.

@taurus-forever
Copy link
Contributor

taurus-forever commented Sep 25, 2024

... if the charm would enter an error state previously...

Yes, see https://warthogs.atlassian.net/browse/DPE-5540

Update: the ticket has no juju status output and I do not remeber the state. Will post better ticket the next time. AFAIK, refresh was in error state, yes.

@paulomach
Copy link
Contributor Author

looks good. still confused about the symptoms of the issue - if the charm would enter an error state previously, i would recommend adding a test that runs upgrade without pre-upgrade-check to ensure that things start up normally. thoughts?

You are right. I will include a test before merge

@paulomach paulomach merged commit d3933c0 into main Sep 26, 2024
104 of 105 checks passed
@paulomach paulomach deleted the fix/dpe5540-skip-plugin-install-no-file branch September 26, 2024 20:36
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