11 Commits

Author SHA1 Message Date
Andy McCrae
8a9127efbc Prevent galera_cluster_name from changing.
On a running galera cluster, we don't want to unintentionally allow a
galera_cluster_name from changing. This will cause a cluster to fail to
start (if the nodes are restarted sequentially) as the cluter name value
has changed.

To ensure we can still change this value, a new
"galera_force_change_cluster_name" variable is added, which can be set
to "True" in order to change the cluster name.

Change-Id: I8bae038bd207a15d5731b9c91b78df851a4c1986
2016-09-13 17:32:53 +01:00
Adam Reznechek
b1ed69fe75 Fix arch-specific percona-xtrabackup and qpress
Add architecture-specific location support for percona-xtrabackup
and qpress packages to fix limitation of hardcoded amd64 packages.

Change-Id: Ifa9d53a91f6ae7d497045fa4e7558c1b7c4d53a8
2016-09-01 22:52:23 -05:00
Jesse Pretorius
3df31ce349 Rename package lists (and related vars) appropriately
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.

This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.

Change-Id: Iba040bf8da6ec0552fcf7d10022094dc57d312bc
2016-08-26 15:47:41 +01:00
Darren Birkett
1f0cfa235a remove compact option from xtrabackup
Using the --compact option with xtrabackup has been shown to cause
crashes when used during an SST to transfer data between nodes:

https://bugs.launchpad.net/percona-xtrabackup/+bug/1192834

Based on DBA advice, we are disabling this option.

Closes-Bug: #1590166
Change-Id: I23fd5e36b74163fe97cf983cdc4b1d5678d94e7b
2016-08-15 16:55:36 +00:00
Jesse Pretorius
54ca3be6d4 Add ability to change apt/yum package state
The current method of installing the distribution packages required is
set in the tasks and cannot be changed by a deployer.

Currently the apt task always installs the latest package. This results
in unexpected binary changes when a deployer may simply be trying to
execute a configuration change.

This patch adds the ability for a deployer to change the desired state
so that the results are predictable.

Change-Id: Ifefa11da81b59084c238a8264fec9f0018dfe23d
2016-08-02 07:49:07 +00:00
Jimmy McCrory
ac3942da3d Change default collation to utf8_general_ci
There can be issues during database migrations when a column used as a
foreign key is using a different collation between the parent and
child table.

Update the my.cnf template to set the server default collation to
utf8_general_ci to ensure consistency between tables initially
created with and those later altered to use the utf8 character set.

This matches both the instruction from the OpenStack install guide[0],
and MariaDB's default for the utf8 character set[1].

[0]
http://docs.openstack.org/mitaka/install-guide-ubuntu/environment-sql-database.html
[1]
>  SHOW CHARACTER SET WHERE CHARSET = 'utf8';
+---------+---------------+-------------------+--------+
| Charset | Description   | Default collation | Maxlen |
+---------+---------------+-------------------+--------+
| utf8    | UTF-8 Unicode | utf8_general_ci   |      3 |
+---------+---------------+-------------------+--------+

Related-Bug: 1594195
Change-Id: I8507b6c9bd058bb308cc089f3802e52e24bea324
2016-06-23 21:54:55 -07:00
Kevin Carter
5b23837dd0
Add CentOS7 support to Galera Server
Updates the multi-distro framework to add CentOS7 support.

Depends-On: Ieadcdd70e9b8271aee3880896255a5037f56567e
Change-Id: I7e889ea4653a6972ea7f8208416fc1fc3db45e5c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-05-23 13:04:38 -05:00
Michael Gugino
5136160186 Implement Xenial Support
This commit implements support for Ubuntu 16.04 Xenial.  Changes
include renaming several variables from galera_* to percona_* for
clarity.  The reason for this change is that 16.04 will be using
distribution provided packages for percona-xtrabackup.

Mariadb 10.0 packages are available for Ubuntu 16.04, so those
packages and installations procedures will remain unchanged.

Depends-On: Iab5485529cf14933fd7f37430d234a5c41185c18
Change-Id: I4baeb2eddf137619ffedba2f9efd61b7bd142f92
2016-05-19 16:38:40 -04:00
Michael Gugino
7bec84f67a Remove Mariadb Upgrade Check
Previous versions of OpenStack-Ansible allowed
for upgrading Mariadb from version 5.5 to 10.0.

Mitaka assumes Mariadb version 10.0, thus the
upgrade check is no longer needed for gate
testing.

Change-Id: I589b3849e52ab4d6810f16588c733aed4d17b6b2
2016-05-18 09:49:44 -04:00
Bjoern Teipel
a1636b3bb3 Decrease MariaDB wait timeout
This MariaDB setting uses the same timeout for SQL connections
as configured inside SQL Alchemy (pool_recycle) and prevent possibly
SQL session build up due to a large default setting (8 Hours).

Nova and Neutron are using a idle_timeout of 3600 by default,
for example
https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L101
and respectively for Neutron
https://github.com/openstack/neutron/blob/stable/liberty/etc/neutron.conf#L761

Change-Id: I273739c3c10616cac148aeb839154e0fb3359bca
Closes-Bug: #1571682
2016-04-18 10:44:49 -05:00
Jesse Pretorius
4cff43f12d Add reno scaffolding for release notes management
Change-Id: I3949d724ce4e80001fbaa45683a6c8de8e08bb3f
2016-04-14 01:50:36 +00:00