Comment 9 for bug 2004089

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/+/902535
Committed: https://opendev.org/openstack/charm-mysql-router/commit/08a33d6759c4012c7ec470fdd2dcd7852b036394
Submitter: "Zuul (22348)"
Branch: stable/jammy

commit 08a33d6759c4012c7ec470fdd2dcd7852b036394
Author: Nicolas Bock <email address hidden>
Date: Tue Aug 1 07:46:53 2023 -0600

    Add cleanup of configuration files on `stop`

    When this subordinate is removed from a unit it leaves its configuration
    files behind. This can become an issue if the subordinate is added back
    to the unit as pointed out in #2004088.

    This change adds a cleanup step to the `stop` hook so that those
    configuration files are removed on the removal of the subordinate charm.

    Closes-Bug: #2004088
    Closes-Bug: #2004089
    Change-Id: Icfca352f29e089aeccd1434d33a573ca1682339a
    Signed-off-by: Nicolas Bock <email address hidden>
    (cherry picked from commit 17595788edd80580624b03a664dd5cdb05bba47f)