The additional check is based on cluster being bootstrapped and the last
backup being a SST.
The change includes new function for checking the last backup was SST
and unittests to verify said function as well as the main
charm_check_func where the check is used and seeded file is replaced.
Closes-Bug: #2000107
Change-Id: I8e516059da5299cc0e0ce8ef0802d3a46abb1a54
(cherry picked from commit a86390aeabca27167e26f38afb202e7daf39b185)
This patch is the result of "git merge --squash 6e42563" into
stable/bionic, we are doing this since otherwise only the commit at the
top of the stack would produce a functional charm.
List of changes:
6e42563 Sync test-requirements.txt from release-tools
6751832 Migrate percona-cluster to charmcraft build
6ff8acb Use unittest.mock instead of mock
50f3f31 Switch to yoga unit jobs and add py39
393afdd Remove xenial metadata and function tests
e309150 Add yoga bundles and release-tool syncs
On top of those stable backports the following changes have been made:
* Set defaultbranch in .gitreview
* Pin tox<4.0.0
* Pin zaza and z-o-t to stable/ussuri
* Pin charm-tools==2.8.5
* Add bindep.txt
* use stable/21.10 libraries
* use zaza/zaza-openstack-tests at stable/21.10
* build.lock files for reactive charms
* bundles refer to ~openstack-charms candidate channel
This change adds the config option max_connect_errors for MySQL to this
charm and sets a default of 100.
Commit also includes the inclusion of this (default) config setting in the
unit tests.
Closes-Bug: #1776908
Don't configure databases to replicate w/out async
Check that that the asynchronous replication relations exist prior
to providing the databases_to_replicate to the templating engine
code. Specifying the databases-to-replicate config option is not
supposed to apply when the asynchronous relation is not established.