28 Commits

Author SHA1 Message Date
Andrey
eb5fc9c1e8 Added Galera SSL support
MySQL SSL connections allowed. Self-signed SSL bundle
created and placed to the deployment host, or user-provided
SSL bundle (CA, cert and the key) is used.

Change-Id: Ibac61d45cea67123fe61a6de4f906b4bd1949a34
Partial-Bug: #1667789
2017-03-30 09:42:38 -05:00
Jenkins
56c85547d4 Merge "Update reno for stable/ocata" 2017-02-06 09:32:40 +00:00
gecong1973
b8acdcfe88 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: I82433ebf27ebaf01301895ff27615a4296f1eb44
2017-02-06 12:10:24 +08:00
931b35897d Update reno for stable/ocata
Change-Id: If77793bb2fc8ed74d18c0b9b857195f8369e7b15
2017-02-03 18:57:29 +00:00
Jenkins
4d8b80395b Merge "Set the proper amount of open files in systemd" 2017-01-25 09:13:01 +00:00
Jean-Philippe Evrard
79b39d585a Set the proper amount of open files in systemd
We used the amount of connections instead of the maximum number
of open files for the systemd unit limit.

The amount of connections are handled by mysql.

Change-Id: Ib82cba87038ac2601b4ff268c6c889dbe2387228
Closes-Bug: #1659060
2017-01-24 18:07:43 +00:00
Adam Reznechek
40c96eaa4b Update xtrabackup version for ppc64le
This patch bumps the version of the percona xtrabackup tool for
ppc64le to match the amd64 version. A playbook for building this
in an automated way is also available on Github[1].

[1] - https://github.com/powervm/ppc64le-osa-build

Change-Id: I6b488c0b2f51b47b316ef06f0bcdc3455f05ec51
Closes-Bug: #1653962
2017-01-24 09:54:11 -06:00
Jean-Philippe Evrard
2aa7f1ca8a Remove percona repo if not used
If the ``use_percona_upstream`` value is changed from True to False,
don't remove the existing repository. This is also the source of a bug
in Mitaka: We were installing the repo by default and installed the
percona-xtrabackup tool with a deb file. If another playbook/role
installed percona-xtrabackup, it would override (and probably upgrade)
the deb installed version, which is undesired.

Change-Id: I2ccc2904d0d4244dc0792411b49763cc3f7e2e22
Closes-Bug: 1653947
Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
2017-01-06 12:10:11 +00:00
Jenkins
fc83b28723 Merge "Update xtrabackup version" 2017-01-05 15:01:26 +00:00
Jean-Philippe Evrard
2ec8d8407a Update xtrabackup version
This patch bumps the version of the percona xtrabackup tool, and
ensures that CentOS/ubuntu are running the same version.

Change-Id: I3e82c7be72df67604dbf43a5123a08bdbc1ed8a9
2017-01-04 18:17:12 +00:00
Jean-Philippe Evrard
3d1ecb7aa2 Allow override of the repo filename
Apt cannot have 2 mirrors with the same content in 2 different files.
If a deployer has an apt mirror with mariadb (and others), the deployer
still need to add a repository, but will also need to define the
filename used, in order to avoid clashes.

This commit makes possible to decide the filename for the repo.

Change-Id: I047bdaf58a4057a96103f6d56c2f811886b1b625
Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
2017-01-04 09:17:57 +00:00
Andy McCrae
75d2b971d7 Use local facts for ansible_architecture
This patch ensure the local host's ansible facts are used for the
"ansible_architecture" fact, rather than the "physical_host". Since we
don't explicitly collect facts for "physical_host", and the
ansible_architecture fact is set for the local host container, we
don't need to try to retrieve the "physical_host" facts.

A new var "galera_package_arch" is created so that the architecture can
be overriden if it isn't being calculated correctly. Additionally, the
duplicate vars that are not specific to distributions have been moved
into defaults, and out of the specific distribution vars files.

Change-Id: I5124c061faf124388a88eefee93d96e9a9e90d8f
Closes-Bug: 1650384
2016-12-22 16:12:35 +00:00
Jimmy McCrory
fdaf169e1e Install MariaDB 10.1 server
Update repos and packages to install the server for MariaDB 10.1, the
current stable release.

Several improvements have been made to improve the upgrade process and
an upgrade from 10.0 has been included in the test playbooks.

Make use of the yum_repository module for installing on yum based
systems and give the apt repository files consistent names, 'MariaDB'
and 'Percona' for easier maintenance and handling of upgrades going
forward.

Depends-On: I8939703f26e5d8adc393b984266f4cad7a6e0b4c
Change-Id: Ib6409f1fcf4a664b65dbe01372a19509d02d70a4
2016-11-30 10:48:30 -08:00
Andreas Jaeger
aa2354d476 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I1f326d7b4c7260b07f3937a4722c38e537483c98
2016-10-06 20:34:44 +02:00
Davanum Srinivas
4227529e3d Update reno for stable/newton
Change-Id: I0e6d4eeb87227ae140ec03dfd9d3f413e6bbe88d
2016-09-29 19:16:06 +00:00
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
Jesse Pretorius
4a8707f149 Update sphinx configuration
This patch updates the sphinx configuration for docs and releasenotes
to make it easier to replicate across repositories and to comply with
pep8 testing without exceptions.

Change-Id: I0020d055b9f867cbd1df1c004bb77ba24f0e7d5d
2016-07-12 16:50:59 +01: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
Jesse Pretorius
b8c1195d8c Remove Liberty releasenote index
Change-Id: I6aeff49f08f86a8ca6ee18f71475721707b14779
2016-04-20 22:18:39 +01: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