Commit Graph

5 Commits

Author SHA1 Message Date
Alex Kavanagh 6751832bb6 Migrate percona-cluster to charmcraft build
- add *.charm  to .gitignore
- add build-requirements.txt
- add charmcraft.yaml (build on 18.04, run on 18.04)
- modify osci.yaml to do build
- add rename.sh to clean-up naming of charms
- modify bundles to work with *.charm and use the charmhub
- modify tox.ini to include the build target

Note that this charm doesn't officially support xenial, but the bundle
has been left in the tests for debugging/test purposes.  It Launchpad it
will be build on bionic to run on bionic.

This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: Icd4942262a8dfcd3a194684571861121d92f8ed2
2022-05-20 16:08:07 -07:00
David Ames 801c2e7829 Redesign cluster buildup process
In order to fix bug#1756928 the whole cluster buildup process needed to
be redesigned. The assumptions about what is_bootstrapped and clustered
meant and when to restart on configuration changed needed to be
re-evaluated.

The timing of restarts needed to be protected to avoid collisions.
Only bootstrapped hosts should go in to the
wsrep_cluster_address=gcomm:// setting. Adding or removing units should
be handled gracefully. Starting with a single unit and expanding to a
cluster must work.

This change guarantees mysqld is restarted when the configuration file
changes and meets all the above requirements. As a consequence of the redesign,
the workload status now more accurately reflects the state of the unit.

Charm-helpers sync to bring in distributed_wait fix.

Closes-Bug: #1756308
Closes-Bug: #1756928
Change-Id: I0742e6889b32201806cec6a0b5835e11a8027567
2018-03-29 09:24:05 -07:00
David Ames fb95b22add Update all clients once and only once
This change solves two problmes. First, one off problems waiting
for the cluster to complete. Second, running update_shared_db_rels
too often.

Update clients will get executed only once as soon as
leader_node_is_ready() or client_node_is_ready() returns True.
Subsequent client requests will be handled by normal
*db-relation-changed hooks.

Co-Authored-By: Liam Young <liam.young@canonical.com>

Partial-Bug: #1717590
Change-Id: I7004218fe4750427bb0d3a957c13c4acfa02e1cd
2017-09-25 16:03:00 +00:00
James Page 5cf419bdbb Add tox support for check/gate
This charm was missed pre-migration to git/gerrit.

Add support for executing pep8 and unit tests using tox.

Change-Id: I5518e870c572ccc292d6fe4e9b7c910c7f3f0260
2016-03-02 10:20:07 +00:00
uoscibot 634361d7b6 Adapt imports and metadata for github move 2016-02-29 10:49:45 +00:00