A customer faced an issue when they face full disk. Mysql router configuration file was broken. As this charm doesn't handle whole configuration file, charm wrote just part of them based on template. so re-bootstrapping is needed when this symptom happens.
To do that, I put code to check configuration file size, and if it is under 1000bytes, run bootstrap.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- mysql-router/ +/921716 /opendev. org/openstack/ charm-mysql- router/ commit/ d9af34ac232e0dc b022298074ed6b9 1c7e4476a9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/jammy
commit d9af34ac232e0dc b022298074ed6b9 1c7e4476a9
Author: Seyeong Kim <email address hidden>
Date: Tue Apr 9 11:32:46 2024 +0900
Fixing broken mysql-router configuration
A customer faced an issue when they face full disk. Mysql router configuration file was broken. As this charm doesn't handle whole configuration file, charm wrote just part of them based on template. so re-bootstrapping is needed when this symptom happens.
To do that, I put code to check configuration file size, and if it is under 1000bytes, run bootstrap.
func-test-pr: https:/ /github. com/openstack- charmers/ zaza-openstack- tests/pull/ 1218 bd9131ae8309049 8297ac48c31 3223508f348d053 020e8c860c)
Closes-Bug: #2004088
Change-Id: Ic28f0406eb8d5d
(cherry picked from commit d334665b2d8bb11