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

Add extended attribute to get-cluster-status #428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arif-ali
Copy link
Member

This changes from the default boolean that was being used internally to what mysql expects. The values between 0 and 3 are valid.

Issue

Would like to get extra cluster status attributes to debug issues with mysql replication.

Solution

The solution allows us to do this via actions, rather than logging in, and getting the data manually

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 66.30%. Comparing base (2bd2bcc) to head (27d86ed).
Report is 2 commits behind head on main.

Files Patch % Lines
lib/charms/mysql/v0/mysql.py 28.57% 5 Missing ⚠️
src/upgrade.py 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #428      +/-   ##
==========================================
- Coverage   66.39%   66.30%   -0.09%     
==========================================
  Files          17       17              
  Lines        3169     3173       +4     
  Branches      419      420       +1     
==========================================
  Hits         2104     2104              
- Misses        930      934       +4     
  Partials      135      135              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arif-ali arif-ali force-pushed the mysql-arif-cluster-status-extended branch from 7861989 to 89b6eb2 Compare March 28, 2024 18:08
Copy link
Contributor

@paulomach paulomach left a comment

Choose a reason for hiding this comment

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

Hi @arif-ali,

thank you for your contribution.
Please, check comments

actions.yaml Outdated Show resolved Hide resolved
actions.yaml Show resolved Hide resolved
lib/charms/mysql/v0/mysql.py Outdated Show resolved Hide resolved
lib/charms/mysql/v0/mysql.py 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.

Thank you for the contribution here!
@paulomach will we copy to K8s ourself or should we ask @arif-ali ?

we do it

This changes from the default boolean that was being used internally
to what mysql expects. The values between 0 and 3 are valid.
@arif-ali arif-ali force-pushed the mysql-arif-cluster-status-extended branch from b7081c4 to 27d86ed Compare April 4, 2024 12:58
Copy link
Contributor

@paulomach paulomach left a comment

Choose a reason for hiding this comment

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

lgtm

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.

5 participants