25 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
gecong1973
b8acdcfe88 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: I82433ebf27ebaf01301895ff27615a4296f1eb44
2017-02-06 12:10:24 +08:00
gengchc2
cd81b9b273 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
    https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: Iadf589dde4d36e3e5087cc0076ea8530f0281303
2016-12-06 09:22:36 +08:00
Jesse Pretorius
5556f4ebc7 Use upper constraints for all tox targets
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.

Change-Id: I29d3b33ba8d7ccc0955921ed314a412bff71407e
2016-10-19 07:40:16 +01: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
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
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
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
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
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
Jean-Philippe Evrard
15310f1391 Include ansible commands for ansible linting
The plugin repo needs to be cloned for ansible-lint to
understand ansible plugins. The commands currently
reside in tox.ini under the ansible section and are not
currently included. This commit fixes that error.

Change-Id: Ib64c9e266469ada11d6534e07ad93ab8906af2eb
2016-08-11 18:07:59 +01:00
Jesse Pretorius
727189ff0c Ensure that doc linting is included in the linters test
The 'docs' tox target executes the doc8 lint test which may result in
failures when testing documentation builds, but OpenStack-CI does not
execute that tox target.

In order to ensure that we catch all standard documentation syntax
errors and prevent them from merging, this patch includes the docs
target in the 'linters' chain of tests.

Fixes for any failures which result from executing this test are also
included in the patch.

Change-Id: Id23f9d262a1a18230f797c5aaecc76e627d0998a
2016-07-26 00:36:03 +01:00
Jesse Pretorius
9f47da61e4 Use plugins repo version of the human_log callback plugin
With the implementation of https://review.openstack.org/321331 the
human_log callback plugin is now part of the plugins repo.

This patch removes the retrofitted version in tox in favor of using
the version from the plugins repo instead.

Change-Id: I046226445257466da85f0f54872c26ccd91989af
2016-07-15 14:00:31 +01:00
Jesse Pretorius
bcd2b9d5c4 Implement doc8 checks for docs
In order to prepare for the move of detailed configuration
content from the install guide to the roles, doc8 checks
are being implemented in the roles to ensure that any new
content submitted is properly checked.

Change-Id: I4c1be882868247a3a4d8795246f0b22dfa381837
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:53:53 +01:00
Jesse Pretorius
8e48a2ebf0 Update tox configuration
In order to prepare for implementing requirements management by the
OpenStack requirements management process, and to improve the
reliability and effectiveness of test execution, this patch implements
some changes to the tox configuration:

- The minimum tox version is increased in order to be able to use
  constraints for the python packages.
- The OpenStack upper-constraints are used when preparing the test
  venv for the linters checks.
- Any proxy environment variables set on the test host are passed
  into the venv to enable testing from behind a proxy.
- The environment variables used by Ansible tests are moved into
  a new venv called 'ansible' and this environment is inherited
  by all Ansible-related tests.
- The docs test will clean-up an existing build directory before
  executing the docs build.
- The releasenotes build cannot use upper-constraints at this point,
  so it doesn't.
- The Ansible role download will no longer ignore errors so that any
  problems discovered will result in a failed test.
- The human readable logging callback plugin is implemented for
  functional testing.
- The ansible test requirements are moved into tox.ini to ensure
  compliance for requirements.txt/test-requirements.txt for the
  global-requirements management contract.
- The ~/.ansible directory as a whole is not deleted. Instead only
  the plugins and roles folders are deleted to ensure that zuul's
  Ansible artifacts are left in-place.
- The ansible-lint version is updated to support execution against a
  folder, and the test now executes against the entire role to ensure
  that it captures all applicable files for lint testing.

This is a combined port of the following:
- https://review.openstack.org/323507
- https://review.openstack.org/338193
- https://review.openstack.org/332443
- https://review.openstack.org/338193
- https://review.openstack.org/339493

Change-Id: I44d9a6f75c582924c509c24acc070bbbb817aaaa
2016-07-08 13:33:16 +01:00
Jenkins
dff733ddad Merge "Reorganize test playbooks" 2016-04-15 18:12:39 +00:00
Jesse Pretorius
4cff43f12d Add reno scaffolding for release notes management
Change-Id: I3949d724ce4e80001fbaa45683a6c8de8e08bb3f
2016-04-14 01:50:36 +00:00
Jimmy McCrory
a37735c3fb Reorganize test playbooks
The following changes have been made to reorganize the structure of this
role's test playbooks, bringing them into line with other
OpenStack-Ansible roles:
  - move each playbook to an individual file
  - rename playbooks descriptively
  - define hosts and groups directly in the inventory file
  - include group vars required by containers
  - store extra variables in a single shared test-vars file
  - remove use of the openstack_hosts role
  - include callback plugin for human readable logging of test tasks

Change-Id: I4829e368003f58685cb96b7ee743255d00542187
2016-04-10 07:01:13 +00:00
Jesse Pretorius
5bcdd4b772 Update tox config and add bashate E006, E040 exceptions
This patch updates the tox.ini the same bashate exceptions as are
currently in the OpenStack-Ansible playbook repo.

It also ensures that the linters and all lint targets work
appropriately and normalises the tox.ini configuration to use
uniform formatting.

The use of ansible.cfg is removed as there is no way of being
certain which paths can be used without reverting to an ugly
sed hack in the commands. This is why it is preferred to make
use of environment variables which make use of tox's default
substitutions instead. It's a more reliable way of achieving
the goal for the purpose of gating and testing.

The switch to using a git clone instead of ansible-galaxy to
download the plugins is due to the path spec not being able to
work in Ansible 2.x. [1]

[1] https://github.com/ansible/ansible/issues/13563

Change-Id: I077c5b79a95e78fd81c33382843273893d48bbb6
2016-02-12 10:47:56 +00:00
Jesse Pretorius
39e9e097d1 Merge bashate/pep8 lint jobs in common job
Instead of launching two separate build jobs in our CI infrastructure,
one for bashate and one for pep8, launch a single one. While the jobs
are short, the setup of the images takes a long time, so this is
friendlier to our CI infrastructure.

Use the pep8 environment as common lint target and merge the bashate job
into it.

This patch also renamed dev-requirements to test-requirements to bring it
into line with all other OpenStack projects.

Change-Id: Ie1181799082b36d59dfaf4bf9446c06bd70696b7
2016-01-18 10:21:46 +00:00
Paul Belanger
729f9c6e0b Switch to testenv:functional
This brings our tox.ini files inline with other OpenStack projects.

Change-Id: I91d401f0ff1945e65c7b434223e525fcd2f8454b
Depends-On: I376e51824c46f9b5eb4a4cff01aaa176632087dd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-18 15:47:46 -05:00
Kevin Carter
25a9eb3901
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-09 09:23:50 -06:00