canonical / mysql-operator

Machine charm for MySQL following the operator framework
https://charmhub.io/mysql
Apache License 2.0
7 stars 10 forks source link

Add extended attribute to get-cluster-status #428

Open arif-ali opened 5 months ago

arif-ali commented 5 months ago

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

codecov[bot] commented 5 months ago

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 :warning:
src/upgrade.py 0.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.