131 Commits

Author SHA1 Message Date
Jenkins
165f96c14f Merge "Do not ignore_errors for fallback keyserver" 2016-10-17 18:18:05 +00:00
Kyle L. Henderson
2f68a18908 Add tests/common to .gitignore
Running 'tox -e linters' generates files in 'tests/common' which
then triggers git to show them as changed files.

Change-Id: Ie3c992b4fa3ab2a460c3f9a14295280d086f1f27
2016-10-17 08:16:19 -05:00
Kevin Carter
5038acc390 Remove 'ignore_errors: true' in favor of 'failed_when: false'
This change removes the use of 'ignore_errors: true' because it causes deployers
to see red output and a stacktrace, which traditionally means something is broken,
even when the failure is known to have a fall back option or be intentional. This
conversion will provide a generally cleaner interface.

It should be noted that the 'failed' filter will still function normally. Tasks
with the 'failed_when: false' option will still be marked as 'failed' in any
registered variable. This change simply makes the output look cleaner.

Change-Id: I2a40fa9a0da45602a76f2d56611971fcf4063512
Closes-Bug: #1633438
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-16 14:45:00 +00:00
Jesse Pretorius
31a6230218 Do not ignore_errors for fallback keyserver
The initial keyserver usage should ignore errors so that
the fallback keyserver can be used. However the second
task should not ignore errors as there is no third
keyserver - if the first has failed, and the fallback has
failed, then the task should fail and the installation
should stop.

Change-Id: I60fdbbde70f9bb14cfdf57e4c357f1cd0fc24f55
2016-10-16 14:33:15 +01:00
Kyle L. Henderson
678128f13a Move systemd handler above restart handler
Since handlers are executed in the order in which they are defined
the handler to restart systemd should come before the handlers to
restart mysql. This avoids the error case where the playbook is run
multiple times and systemd refuses to restart mysql giving the
following message:

"Warning: mysql.service changed on disk. Run 'systemctl
daemon-reload' to reload units."

Closes-Bug: #1633472

Change-Id: I3962c0e8f9f1cf3c01a3160be4c744e9fbd1ecfe
2016-10-14 08:11:06 -05:00
OpenStack Proposal Bot
81f2f88fbf Updated from global requirements
Change-Id: I4a9ea18162ec3b32d51f0719556f3b42a0e066d7
2016-10-10 20:45:51 +00:00
Jenkins
e0e3d096f7 Merge "[DOCS] Added release-name as a watermark to Docs." 2016-10-10 13:41:36 +00:00
Nish Patwa
df246885d0 [DOCS] Added release-name as a watermark to Docs.
Added a water mark to galera role documentation
to make clear to deployers which release they're
working with.

Modified conf.py that adds watermark to the documentation according
to particular branch. If the current branch is master than
watermark is 'Pre-release' and if the current branch is
stable/<release-name> than watermark is <release-name>.

This is a combined implementation based on the following
patches:
- https://review.openstack.org/372565
- https://review.openstack.org/382637
- https://review.openstack.org/384140

Related-Bug: #1624489
Change-Id: Idf26db677a71bc9b3e1d22b4ca86bb7d2e5cd232
2016-10-10 08:09:18 +00:00
Jimmy McCrory
cfdda72e96 Allow mysql users to create triggers
Enable the 'log_bin_trust_function_creators' option to allow users to
create stored procedures and triggers without needing to grant them
SUPER privileges.

This is required specifically to allow the keystone user to create
database triggers during the live migration process.

Change-Id: I17d5bba2a81911b74ad5d23687cfc7a7ed81feb4
2016-10-09 19:59:50 -07:00
Jimmy McCrory
1b0d2d3aa2 Set default for physical_host if it's undefined
physical_host is a host variable created by openstack-ansible's dynamic
inventory. When using this role outside of an integrated OSA deployment
it wouldn't be expected to be set. Fallback on using inventory_hostname
when physical_host is undefined.

Closes-Bug: 1631158
Change-Id: I3364aac2e707d10ac9b4020dfcc0de7d4d158ff9
2016-10-08 10:05:03 -07: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
Jimmy McCrory
21885c1f37 On single nodes use an empty cluster address
When there is only one galera node, configure galera with an empty
cluster address. Each time the mysql service starts on this node it will
automatically create a new cluster.

Closes-Bug: #1624327
Change-Id: If653b1aacbd446a4ea5bb806a839dad40011b5b8
2016-10-05 16:02:04 -07:00
Jesse Pretorius
66601280ff Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I16620739a0900c3b0b089e26a7c1acaddf95a7d0
2016-10-05 12:11:47 +01:00
Jesse Pretorius
4f93b0f188 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: Ie23df9760e068ddd117b72c123b518dc8fde5eb3
2016-10-04 11:39:08 +01:00
Marc Gariepy
be35df425a Cleanup duplicate key warning.
percona_package_download_validate_certs was defined twice

Change-Id: Ide43fd4ccbb335fefc3b904610232f11e350c132
2016-10-03 15:11:11 -04:00
OpenStack Proposal Bot
1c0bec228f Updated from global requirements
Change-Id: Iad5b0edc6c5146350464c2597fd025e08b61a778
2016-09-29 22:36:23 +00:00
Davanum Srinivas
4227529e3d Update reno for stable/newton
Change-Id: I0e6d4eeb87227ae140ec03dfd9d3f413e6bbe88d
2016-09-29 19:16:06 +00:00
Jesse Pretorius
2b610bac65 Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: I635914f58a095362788f4430b578e8d5f9009842
2016-09-27 16:00:50 +01:00
Jesse Pretorius
74ac0dc33e Force Ansible to use dynamic includes
Ansible 2.1.1 introduces a regression in the way conditional
includes are handled which results in every task in the
included file being evaluated even if the condition for the
include is not met. This extends the run time significantly
for a deployment.

This patch forces all conditional includes to be dynamic.

Change-Id: I18d8c2119e00aeec3c53cb7e39c8cf09cf5135f8
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 12:32:58 +01:00
avnish
73595132cb Update homepage with developer documentation page
Change-Id: If3191d77bd50e2005917410b58e094c1e89d238c
2016-09-20 12:42:19 +05:30
Jenkins
a86c17c64d Merge "Update testing bits for consistency" 2016-09-19 14:04:04 +00:00
Travis Truman
6c1422cc57 Address ansible_ssh_* var deprecation
Replacing usage of ansible_ssh_host, ansible_ssh_user,
ansible_ssh_port with ansible_host, ansible_user and ansible_port

Change-Id: I35371879a87c115f219cd181245fe59f6d7d3f77
2016-09-17 17:44:24 -04:00
Kevin Carter
6029354891 Update testing bits for consistency
Change-Id: I5f449375e873c5358ac979bb6729873d2ab519d3
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-17 17:10:10 -04:00
Kevin Carter
21aaa7cc4f Adjust file descriptor limit when systemd is used
Change-Id: I083c60d28904e6a6eeebd36ed114df06d83072a6
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-15 21:26:26 +00:00
Jenkins
81d23ffe59 Merge "Prevent galera_cluster_name from changing." 2016-09-14 13:23:23 +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
Jenkins
290dd8dc08 Merge "Ansible 2.1.1 role testing" 2016-09-13 09:51:51 +00:00
Travis Truman
23098ba15c Ansible 2.1.1 role testing
Change-Id: I61d7d438477e86d0a3b8ac294e35ba385d89c0e8
2016-09-12 15:57:42 -04:00
Jesse Pretorius
45f9c76b1c Compress test execution logs
The volume of logs we collect in CI jobs are extensive. This
patch ensures that the logs collected are compressed to reduce
the space taken in CI systems.

PYTHONUNBUFFERED is also set to ensure that the console log
from the CI jobs is recorded in the exact order of execution.

Change-Id: I5aad324d7ac6535e35d635b58599f6a54436da5b
Related-Bug: #1620849
2016-09-09 10:10:38 +01:00
Major Hayden
352cbd131d Allow galera to listen on v4/v6
While working on https://review.openstack.org/#/c/320542/, galera
was found to be listening only on IPv6 addresses. Connections to
::1 worked fine, but connections to 127.0.0.1 failed.

This patch ensures that galera is listening on all IPv4 and IPv6
addresses.

Closes-bug: 1620793
Change-Id: I1ddae03343b6fe9542b6118810cc55108d4417c0
2016-09-06 14:36:05 -05: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
Kevin Carter
a3bb3b73b9 Enable log collection after functional testing
This change enables log collection within the gate so that further analysis
on gate tasks can be performed post build. This is very useful when
debugging problems.

Change-Id: I79d98754d50febdf9b8f39f412a2e9fa1c10c36a
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:33:43 -05:00
Jenkins
4b2f0dbada Merge "Rename package lists (and related vars) appropriately" 2016-08-26 22:00:56 +00:00
Adam Reznechek
ece430ab2f Work around Ansible vcpu fact bug on ppc64le
This changes how several fields using ansible_processor_vcpus are set to
work around a bug in Ansible where ansible_processor_vcpus is reported
as 0 on ppc64le today due to issues with /proc/cpuinfo format differences.
An upstream fix has been proposed at [1].

[1] - ansible/ansible#16533

Change-Id: I49a024aa2165db6501d9e26d09d7940cb0531bd4
2016-08-26 14:17:18 -05:00
Adam Reznechek
45a7ed4aa1 Update qpress to use Xenial package
Update the package for qpress to pull the Xenial package now that
it's available in the repo.

Change-Id: Ia1d99e7b16868c5e6a0a91644aea2f155fcfd078
2016-08-26 10:15:09 -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
Travis Truman
885aefaa19 Remove apt update from Vagrantfile
Its now done in run_tests.sh which is run by the
Vagrant provisioner

Change-Id: If290b83f2bff440156217750c9f05f913c70979e
2016-08-24 20:04:37 +00:00
Jenkins
86a5d8b715 Merge "Updated from global requirements" 2016-08-20 16:24:02 +00:00
Jesse Pretorius
1ac20470de Make all linting tests use upper-constraints
As per [1] all linting tests can now use upper-constraints. This patch
removes all instances of the install_command override relating to lint
testing which were needed to negate the use of upper-constraints.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: Iad37e0a7a762e87a284d97dba09483b953c51b5d
2016-08-20 16:03:31 +01:00
Shashank Tavildar
658c8489cc Added SNI support for galera_server role via OS packages
Some Linux distributions, such as CentOS 7 and Xenial, have trouble
validating SSL certificates when using get_url with servers
that use Server Name Indication (SNI).

This patch adds those packages to the list of required packages and
uses bindep to install them in developer test environments the same
way that the gate tests install them.


Change-Id: Ib43145a80fbe3c65d1f2720225da92ea1e978bc5
2016-08-19 20:59:00 +00:00
OpenStack Proposal Bot
2e1cf58277 Updated from global requirements
Change-Id: Icfa816c270439a4ddada7052d07ae4103cbe61ce
2016-08-19 19:50:57 +00:00
Michael Gugino
ff22a68003 Add apt-get update to run_tests
Change-Id: I31c216223299431f13591e87f1fa03b92c66a5a6
2016-08-19 10:48:52 +00:00
Travis Truman
3eb2a89946 [DOCS] - Removing tags: and category:
Change-Id: I4cea66346b43b7a97ac70bb5cad73fd4de14733e
2016-08-18 15:03:45 -04:00
Jesse Pretorius
49006d70cf Add python packages for SNI support in tests
This adds python packages required for SNI support to ensure that tox
installs the packages into the venv when running tests.

Change-Id: Ic3b2f300e8f45255b4966f3f1cdb4d80ad799098
2016-08-16 14:26:41 +00: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
Jenkins
aa309fabfd Merge "[DOCS] Move example playbook to separate file" 2016-08-15 11:17:23 +00:00
Travis Truman
a04ca292a0 Adding Vagrantfile for local testing
Running `vagrant up` will emulate the gate tests

Change-Id: I3075e778939a70d3657de2f1ba512ca5dbf79a28
2016-08-14 09:38:35 +00:00
Jenkins
af115bf7bd Merge "Move other-requirements.txt to bindep.txt" 2016-08-14 05:01:39 +00:00
Andreas Jaeger
f18654fdbf Move other-requirements.txt to bindep.txt
The default filename for documenting binary dependencies has been
changed from "other-requirements.txt" to "bindep.txt" with the release
of bindep 2.1.0. While the previous name is still supported, it will
be deprecated.

Move the file around to follow this change.

Note that this change is self-testing, the OpenStack CI infrastructure
will use a "bindep.txt" file to setup nodes for testing.

For more information about bindep, see also:
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
http://docs.openstack.org/infra/bindep/

As well as this announcement:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html

Change-Id: Id0addf53a54e055cffdd71a03e9fe8d4adb10997
2016-08-12 20:55:56 +02:00
Robb Romans
50bcea12d8 [DOCS] Move example playbook to separate file
Change-Id: I76b2773c46124f953aecfd502758b153e40fc1f9
2016-08-12 13:31:55 -05:00