329 Commits

Author SHA1 Message Date
ZhongShengping
9cf0c64a20 Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: I89218db70fbd558ab76c34715a5fc2f17f22556f
2018-12-05 09:16:39 +08:00
ShangXiao
51813fc005 Add bugs url link to README
Change-Id: Iad1d917c982a916ac4577bdd3348663f7d3e032d
2018-12-04 10:07:31 +00:00
wangqi
f7c3f7d856 missing document start "---"
Change-Id: I04220d31d2853594f398eac63c886594beabe3fd
2018-10-30 07:45:09 +00:00
Jimmy McCrory
79c252fb26 Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the
inventory_hostname as the container_name. Set container_name as a host
var for each container in the test inventory.

Change-Id: I42d691a2f01918932006984f9f68af9df1c7e41f
2018-10-21 00:27:36 +00:00
OpenStack Proposal Bot
aa6eff2b76 Updated from OpenStack Ansible Tests
Change-Id: Iba817606bff8b55dd16277202e224b921a224bb4
2018-10-02 14:54:41 +00:00
Zuul
4085e4b874 Merge "fix tox python3 overrides" 2018-09-29 16:57:06 +00:00
OpenStack Proposal Bot
14e25e0bfb Updated from OpenStack Ansible Tests
Change-Id: I3c5bb442ea9616b2237b707650f8dc145831701b
2018-09-29 04:55:46 +00:00
OpenStack Proposal Bot
4c8810199f Updated from OpenStack Ansible Tests
Change-Id: Ie39da3808a8743e422f7ffadbfb1ae43e78ccba8
2018-09-28 06:21:27 +00:00
Doug Hellmann
ad5ea4070c fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I8ea3bb5e66f25800002fa9f5be7e29a4ddaa0df9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:12 -04:00
Jesse Pretorius
097efb69a7 Remove galera_client meta-dependency
Given that pymysql is pure python and has no C binding
dependencies, we no longer need the role to install the
MariaDB client libraries.

Change-Id: Iceb7704a555a04d48f8298c9cb717cc696f9e6f0
2018-09-16 03:26:32 +00:00
Jesse Pretorius
f6a3d4e041 Rename SUSE vars file to cater for any version
To make the transition between versions easier,
we rename the vars file. This also resolves
issues when meta-dependent role inclusions do
not pick up the correct file when using the
include_vars task with multiple search paths.

Depends-On: https://review.openstack.org/602924
Change-Id: Ie8fb232e352493827c6fbc7eb852d94cc4fdd5df
2018-09-16 01:57:39 +00:00
jacky06
6cd6e81a8d Replace Chinese punctuation with English punctuation
Curly quotes(Chinese punctuation) usually input from Chinese input
method. When read from english context, it makes some confusion.

Change-Id: I0d21902d90b623f9c9a799d26fbaf3b83c999147
Closes-Bug: #1792131
2018-09-12 13:04:30 +00:00
Jesse Pretorius
9fdc3ab178 Use a common python build/install role
In order to radically simplify how we prepare the service
venvs, we use a common role to do the wheel builds and the
venv preparation. This makes the process far simpler to
understand, because the role does its own building and
installing. It also reduces the code maintenance burden,
because instead of duplicating the build processes in the
repo_build role and the service role - we only have it all
done in a single place.

We also change the role venv tag var to use the integrated
build's common venv tag so that we can remove the role's
venv tag in group_vars in the integrated build. This reduces
memory consumption and also reduces the duplication.

This is by no means the final stop in the simplification
process, but it is a step forward. The will be work to follow
which:

1. Replaces 'developer mode' with an equivalent mechanism
   that uses the common role and is simpler to understand.
   We will also simplify the provisioning of pip install
   arguments when doing this.
2. Uses Rally's own in-repo upper constraints, instead of
   the OpenStack requirements repo constraints.

Depends-On: https://review.openstack.org/598957
Change-Id: I3f70f7879d399c36fb8d145e69ce4a609157ec30
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 11:07:29 +00:00
Zuul
d61d3acc68 Merge "fix tox python3 overrides" 2018-08-28 05:57:48 +00:00
huang.zhiping
d388d33b86 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I48bc2fadc35c4063ed866ad7663da1631a3e2039
Story: #2002586
Task: #24319
2018-08-21 13:22:03 +00:00
huang.zhiping
07b823f997 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id2364253f879382722de80e923a755d175c5ba11
Story: #2002586
Task: #24319
2018-08-21 13:17:36 +00:00
Zuul
a22a3236a5 Merge "Trivial: Fix the pep8 warning" 2018-08-17 05:21:40 +00:00
Zuul
83875f0d82 Merge "Use the TESTING_BRANCH env var for constraints" 2018-08-17 05:11:22 +00:00
Zuul
4d627b9ab3 Merge "Add the project source code repository in README" 2018-08-17 05:01:06 +00:00
caoyuan
bf14a3a9c4 Use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Change-Id: I14b2330a665d58851c25587ce323cf1c36e7142b
2018-08-17 09:38:55 +08:00
Jesse Pretorius
9563704bf0 Use the TESTING_BRANCH env var for constraints
The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.

This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.

To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.

Change-Id: I33a35ad7f946b01c5292da2e67a94f4b6956388b
Needed-By: https://review.openstack.org/579371
2018-08-16 18:24:36 +01:00
jacky06
14b4082ea8 Add the project source code repository in README
Change-Id: I0bf7710c71e14b8f36539835ff1860da9e976779
2018-08-15 04:04:04 +00:00
fbbd530469 Update reno for stable/rocky
Change-Id: Ia26851b14951f37c38546d09f1e280a66e7f3858
2018-08-10 16:48:08 +00:00
wangqi
906737af24 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: If069f25885b24d323e20f690aa67440a2045491e
2018-08-06 07:52:32 +00:00
Jonathan Rosser
7be409bfbc Add bionic to galaxy_info metadata
Change-Id: I57ec670857cda03fe6398c9de55ba26f13c5c45e
2018-08-02 15:04:49 +01:00
Jesse Pretorius
6e0e08a7d0 Remove rally_requires_pip_packages
Given that the openstack_hosts role installs pip and virtualenv,
we do not need this extra task/var.

Change-Id: Id3c2329f0f0b86d88fcd748c7e4504400c942ef2
2018-07-31 19:49:37 +01:00
Guilherme Steinmüller
3da7a036d9 Change rally pip package
This is motivated by the recent change of rally
project [1] which states that In-tree OpenStack
plugins will be removed from the Rally main package soon.

Also, we do not have constraint for it, we need to pin it
to keep consistent build.

[1] https://github.com/openstack/rally/blob/master/CHANGELOG.rst#100---2018-06-20

Change-Id: I9121867301fc69ba6623110fa6e54c2da0b5ae2c
Closes-Bug: 1782372
2018-07-24 17:50:59 -03:00
Jean-Philippe Evrard
caccaba484 Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: If1ef0d110f77a62780fdbff398b1049ce2c61eff
2018-07-12 17:04:56 +02:00
Nguyen Hung Phuong
61864728c5 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I115c256b07894f59f11a43c7bdb2cf75863265eb
2018-07-05 14:05:39 +07:00
Zuul
3fbe123709 Merge "Use tests repo for common role test requirements" 2018-07-03 00:57:47 +00:00
Heba Naser
6c98584015 Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: I8df9f72bc23b7552b3097be51bc18cd1ed0e84d4
2018-07-02 11:26:33 -04:00
Jesse Pretorius
c4e6c8ce30 Move database creation into role
There is no record for why we implement the database creation outside
of the role in the playbook, when we could do it inside the role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we implement a new variable called 'rally_db_setup_host'
which is used in the role to allow delegation of the database setup
task to any host, but defaults to the first member of the galera_all
host group. We also document the variable 'rally_galera_address' which
has been used for a long time, but never documented. A bunch of unused
variables have also been removed.

Change-Id: Ifb89e35e3acaef33ce4ce24b3f5affc6c4e8e494
2018-06-28 19:50:37 +00:00
Heba Naser
10f2b43366 Switch to using project-templates
In order to have more centralized configuration, switch the role
to use the project-template instead.

Depends-On: I3df2c670beeb78baaa1515bcd27e8f2b0d95b3a9
Change-Id: I99f5fc0dc81fe32045871898b0ada87650fdbe1e
2018-06-24 19:08:45 +00:00
melissaml
c46b586888 Add release notes link to README
Change-Id: Idbf3f5ab7e95cb3061d2876520916fb29de758b4
2018-06-19 15:41:16 +08:00
OpenStack Proposal Bot
9544cf1ce4 Updated from OpenStack Ansible Tests
Change-Id: Ic8333b960ccd779637ba86c92f6e974bc9b83af8
2018-06-06 00:43:37 +00:00
OpenStack Proposal Bot
5011479e86 Updated from OpenStack Ansible Tests
Change-Id: I6908d511c6ff79ab26ace34363c6f8a1ad7d49f4
2018-06-01 22:06:39 +00:00
Jesse Pretorius
321fb7e69a Implement pypi-based install and package pinning for non u-c packages
Rally does not adhere to the global requirements process, so its
requirements extend beyond those managed by upper-constraints, and
sometimes are incompatible with upper constraints.

We have no need to track their development from git commit to git
commit, and can rather rely on stable releases which we verify are
working with the upper constraints whenever we do a pinning bump.

This keeps things simpler for us, and also allows the repo build
process in the integrated build to do a constrained venv build
instead of doing it unconstrained and breaking stable branch builds
down the line.

Depends-On: https://review.openstack.org/570906
Change-Id: If3d0120cf6f6f78463cf7805bc046382c3b6d44e
2018-05-29 16:16:20 +00:00
Jesse Pretorius
5b96496399 Pin cmd2 to the last python2 version of the library
The cmd2-0.9.0 is python3-only and the rally venv is built
unconstrained, so it's trying to bring in the latest version
which is incompatible with python2. We pin the library to
ensure that the venv build completes correctly.

We also re-arrange the package list to be alphabetically
sorted.

Depends-On: https://review.openstack.org/570879
Change-Id: I1e259ce98fc8517c0cd00a04d6fe7b3f0703f5b4
2018-05-29 09:48:58 +00:00
OpenStack Proposal Bot
c351910840 Updated from OpenStack Ansible Tests
Change-Id: Ibc1a3dc29492af2d648983b8128ab85e943db36d
2018-05-09 19:42:38 +00:00
OpenStack Proposal Bot
007e80e40f Updated from OpenStack Ansible Tests
Change-Id: Ic6eaad46d755e7bf43d964c63568b4600e7ad24b
2018-04-30 05:16:03 +00:00
Jesse Pretorius
2e0afc3de1 Only replace python when re-initializing the venv
We reinitialize the venv to ensure that the right version of
python is in the venv, but we do not want virtualenv to also
replace pip, setuptools and wheel so we tell it not to. If we
don't do this then virtualenv will install the latest available
version, which is not what we want.

Change-Id: I6ee3814fdee1712fdbe82189495772f45ec9e684
Partial-Bug: #1764470
18.0.0.0b1
2018-04-18 10:56:38 +01:00
Jean-Philippe Evrard
db7cbd9b04 Do not log passwords
This prevents data to be leaked into the callback plugin.

Change-Id: I32b43617f2529094b3ca9f6b5f95047d4a26df82
2018-04-11 13:47:13 +02:00
Jesse Pretorius
ba81cc9050 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: Ia392beb51cdbcfc802fd803effeb990276456de5
2018-03-28 10:15:59 +01:00
OpenStack Proposal Bot
2efd849ee2 Updated from OpenStack Ansible Tests
Change-Id: I3db89f2bedd4b84d2f7f372a5d2b49fe06607d91
2018-03-27 15:55:28 +00:00
Zuul
0c65cba7f8 Merge "ansible-role-requirements: Use systemd_service role from openstack namespace" 2018-03-25 17:18:59 +00:00
Jesse Pretorius
1641c3506a ansible-role-requirements: Use systemd_service role from openstack namespace
In order to ensure that the updated role is used for tests,
we adjust the a-r-r file to pull from the correct repo.

Change-Id: Id8a40b88455429b350cb498300afbcd8f8998a9d
2018-03-25 16:21:08 +01:00
Jesse Pretorius
437e90f481 ansible-role-requirements: Add common python_venv_build role
In order to allow tests to work as the use of the common
role is implemented in the various roles, we pre-implement
the addition of the role into the a-r-r file.

Change-Id: Ib4b3dfedbccd26287475562432aa25c6bde122ca
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-24 23:21:20 +00:00
Markos Chandras
ffad749951 Add openSUSE support
Add the required var files and jobs for openSUSE Leap 42.3. Moreover,
drop some packages from all distros since they do not appear to be
used anymore.

Change-Id: Ia7e53a474527339305e03ecf84004fa371da1864
2018-03-20 09:51:44 +00:00
Zuul
3245e256d4 Merge "Add CentOS deployment support" 2018-03-19 13:54:24 +00:00
Jesse Pretorius
e54f9e4384 tox.ini: Expose USER environment variable to execution environment
In order to allow the use of the environment variable which informs
Ansible which user executed the playbook, we pass the USER env var
into the environment that tox builds.

Change-Id: I4cc7771ef22cae52b58464a3e68a9febd74828ac
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-03-15 18:01:32 +00:00