charm-percona-cluster:stable/18.05

Last commit made on 2019-04-19
Get this branch:
git clone -b stable/18.05 https://git.launchpad.net/charm-percona-cluster

Branch merges

Branch information

Name:
stable/18.05
Repository:
lp:charm-percona-cluster

Recent commits

140cdc6... by OpenDev Sysadmins <email address hidden>

OpenDev Migration Patch

This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.

d749fb0... by Felipe Reyes

Check if it's leader before calling leader_set()

There may be situations where leader-elected hook is executed without
being the leader and making leader_set() calls fail, this patch verifies
if it's the leader before attempting to use leader_set()

Change-Id: Ia435069f5df80bfdf0236d14664317990bd06407
Closes-Bug: 1784584
(cherry picked from commit 1219f7b2a213af5d5697a1c4cb48486e9c08c81e)

fb27576... by David Ames

Do not use relation_ids directly

Use a for loop to handle relation_ids for the case when the
relationship has not yet been created.

Change-Id: Ia9cf980591a1bf707f3a1a009229c5f5c222206f
Closes-Bug: #1777508
(cherry picked from commit 1c4d99123235d9f4334a05988982d0dac54ebbd3)

7c83c3c... by David Ames

Cluster peers notify readiness

The percona-cluster charm was rendering, and therefore, restarting
after each peer joined. This causes race conditions with the leader
handing out client credentials.

This is due to the parallel but conflicting goals of building the
cluster as quickly as possible but also delaying client relations until
the full cluster is completely ready.

The charm relied on the bootstrap_uuid being set among peers. However,
the bootstrap_uuid is set intentionally early in pursuit of the first
goal building the cluster quickly. It did not signify true readiness.

This change adds another peer relation setting, "ready", that each node
sets when it has bootstrapped, its hacluster is complete, and it has a
sufficient number of peers.

The cluster is considered ready when (min-cluster-size) peers have
indicated readiness. This fulfils goal number two delaying client
relations until the full cluster is ready.

Change-Id: I0998407fcb5efbdb0f7734ac39363e8d41088c79
Closes-Bug: #1775682
(cherry picked from commit 055d2bb17fc7fc4025842eaf6444417643d3937a)

c62014c... by David Ames

Updates for stable branch creation

Set default branch for git review/gerrit.

Switch amulet tests to stable.

Switch to using stable charm-helpers branch.

Change-Id: Ic15703b71f09ee8a4ce2fc3ac369c7d9ebc775c4

78d1df2... by David Ames

Set server_id when using binlogs

Percona-cluster was failing to start when enable-binlogs was set to
True due to missing server_id in the configuration.

Set the server_id to a unique, non-zero, positive number from 1 to
2**32 - 1.

Closes-Bug: #1772947
Change-Id: Id7da6dd8f27e364e0d5244e4ec33ae4645e4ef96

e597453... by Zuul <email address hidden>

Merge "Make pxc-strict-mode configurable via charm"

4ca460d... by Mario Splivalo

Make pxc-strict-mode configurable via charm

PXC5.7, which is default one on bionic, introduces the new config
option, pxc_stric_mode, which is set to 'enforcing' by default.

This, however, prevents installing older versions of Openstack
with PXC5.7 on bionic (use case is, of course, testing).

This change makes pxc-strict-mode configurable via the charm, and
it defaults it to 'enforcing', but user can change it at hers or
his desire.

This option is going to be ignored on PXC installed on series less
than bionic.

Change-Id: I7d82e8bea2e75da6159b5baf2e88f2bd44ce84b3

caadf6c... by David Ames

Enable Bionic as a gate test

Change bionic test from dev to gate for 18.05.

Change-Id: I137ad6fad748f751da53efa21931f9f7fcda9616

fce8db8... by Frode Nordahl

Ensure we call application_version_set with valid argument

Change-Id: If5ddff7eaae5e23df7d705959cd8bffd1b9c6afe
Closes-Bug: #1767060