charm-mysql-router/unit_tests
Seyeong Kim d334665b2d 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/1196
Closes-Bug: #2004088
Change-Id: Ic28f0406eb8d5dbd9131ae83090498297ac48c31
2024-05-21 23:43:34 +00:00
..
__init__.py Use unittest.mock instead of mock 2021-12-15 11:56:31 +00:00
test_lib_charm_openstack_mysql_router.py Fixing broken mysql-router configuration 2024-05-21 23:43:34 +00:00
test_mysql_router_handlers.py Fixing broken mysql-router configuration 2024-05-21 23:43:34 +00:00