This patch fixes the galera running checks so that they work
properly on CentOS.
Closes-Bug: 1660445
Change-Id: I7638456239aa23a7e5cd6027d1a399cfdadf4aaa
This change adds a retry to the mysql_upgrade command when performing
an upgrade. This is required in circumstances when the wsrep service
is not ready for application use. This is a common issue when restarting
the mysql service after package installation.
Example Error:
Got error: 1047: WSREP has not yet prepared node for application
use when selecting the database
Change-Id: Icd859531b6a6f1e04ecd1214eb7c401fa0fe8048
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
In review of this role it was discovered that we had a duplicate
key within a task. While this is acceptable in Ansible as it will
just use the last key found in a given task it is wrong and should
be removed. In later version of Ansible (2.1.0) a warning is printed
stating something similar to the following:
[WARNING]: While constructing a mapping from xxx.yml, line xx,
column xx, found a duplicate dict key (changed_when). Using
last defined value only. [WARNING]: While constructing a mapping
from xxx.yml, line xx, column xx, found a duplicate dict key
(changed_when). Using last defined value only.
This chage cleans up the role by removing the duplication.
Change-Id: I216987614b7783b9250c5ddc62bfae433423e775
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The change adds in the ability for the role to take care of a major upgrade
in a version of an installed mariadb galera cluster.
The change adds a new task file that checks if the installed version of the
galera cluster matches that of the specified major version. The role will
hard stop if there is a version mismatch and the option "galera_upgrade=true"
is not passed.
Change-Id: I26560668325d45f670c8b946c978c48559f58419
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>