Comment 21 for bug 2004088

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-mysql-router (stable/jammy)

Reviewed: https://review.opendev.org/c/openstack/charm-mysql-router/+/921716
Committed: https://opendev.org/openstack/charm-mysql-router/commit/d9af34ac232e0dcb022298074ed6b91c7e4476a9
Submitter: "Zuul (22348)"
Branch: stable/jammy

commit d9af34ac232e0dcb022298074ed6b91c7e4476a9
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
    Closes-Bug: #2004088
    Change-Id: Ic28f0406eb8d5dbd9131ae83090498297ac48c31
    (cherry picked from commit d334665b2d8bb113223508f348d053020e8c860c)