Commit Graph

329 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov e44c99e64a Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: Ib390f06177fbac77a4285e3be86e6461fd769597
2023-07-14 19:36:45 +02:00
Damian Dabrowski c65b91b490 Include proper commit in rally_upper_constraints_url
Currently, rally_upper_constraints_url always points to master branch.
It is not a valid behavior because u-c from master may not work for
stable branches.
This change fixes rally_upper_constraints_url.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/887592

Change-Id: I016e457c0e4b7819d6d65af3bc35e06061f92d1c
2023-07-04 17:04:36 +00:00
Dmitriy Rabotyagov ef5732cb0e Fix rally U-C retrieval from file
At the moment in CI we attempt to fetch U-C for rally from local git
repo. Though rally does fail while attempting to curl the URI
since it does include git patch that is not valid URI in case
if file:// is used.

Change-Id: If2d7732c3816d343cdcea7e7263ea14c37c59f0c
2023-05-02 12:06:11 +00:00
OpenStack Release Bot 7f01efb9c4 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I720259c72c1b912ec591a452be8ef6178538bf38
2022-12-13 13:19:46 +00:00
Erik Berg 7673fce307 Remove redundant vars line
This line was introduced by I2d99c57c5e00c9805aaeac0e7e2f173ff3b69837
for centos support, and should already be covered by the
distribution_major_version line above.

Change-Id: Ic978c9c9fe50eb075628c0beed6995656b428040
2022-09-14 14:16:53 +02:00
Dmitriy Rabotyagov e973cd34ce Return upgrade jobs to voting
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/848760
Change-Id: Ib874892e6642c7a2902fcba560f7bebeb162e1b1
2022-07-06 06:43:52 +00:00
Dmitriy Rabotyagov 136dfa02d0 Control rally-openstack installed version
At the moment we don't have control what version of rally-openstack
is being installed. So we are installing latest version available in
PyPi. However rally package version is defined in
rally-openstack constraints.

With this patch we add variables to be able to adjust source of
rally-openstack as well as pick version for installation.

We also temporary disable upgrade jobs to resolve circular dependency

Needed-By: https://review.opendev.org/c/openstack/openstack-ansible/+/847272
Change-Id: I8100dfd3544c0530815fb877b44b960d404f635b
2022-07-05 22:03:20 +00:00
Dmitriy Rabotyagov 854b8a2b1f Switch sphinx language to en
With sphinx release of 5.0.0, they changed default for language variable
to 'en' from None. With that current None valuable is not valid and should
not be used.


Change-Id: I2de7c07f52d75740e9a1050ef3f1e19e88aeb808
2022-05-30 16:01:39 +02:00
Marc Gariepy 1a63052a9b Use common service setup tasks from a collection rather than in-role
Change-Id: I643e9a6bb14538cee1e8d235c55bca408cc031f0
2022-05-05 09:57:09 -04:00
Jonathan Rosser 1fc98a9dfb Remove PyYAML from rally installation constraints
Rally does not install on python3.10 becasue of the following
failure https://paste.opendev.org/show/bKyapGIcLIwCkUSGwF3k/

Change-Id: I4fbbed088b9b67ca17467020e3044ffc9d78317b
2022-05-03 15:02:00 +01:00
OpenStack Proposal Bot b3916a829f Updated from OpenStack Ansible Tests
Change-Id: Ib0284b72508a4be04a4f87deb03a8efbfe19aef7
2022-04-04 09:21:23 +00:00
Jonathan Rosser c3d105fd9e Cleanup setup.py config
Change-Id: I374ecd16922092221307204cee5395ca8eef7480
2022-04-04 10:20:47 +01:00
Jonathan Rosser e31bfe79a4 Do not install python development packages
The python_venv_build role is responsible for setting up the build
environment for python wheels so this role should not install
python development packages

Change-Id: I0c112d49262578359e8f8843084f75eb48799778
2022-01-11 11:38:28 -05:00
OpenStack Proposal Bot be9a8b2c4f Updated from OpenStack Ansible Tests
Change-Id: I9aafaac6a63793ad822c68c35fc56ada56819291
2021-12-17 16:47:56 +00:00
Dmitriy Rabotyagov 1169082a53 Use config_template as a collection
Since we still use ceph-ansible that has their own implementation of
config_template module it's worth to use mentioned module as a collection
explicitly.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819814



Change-Id: Ia6d0d1a3c70d5bada324e7ccdda8427c7735884a
2021-11-30 15:17:25 +02:00
Damian Dabrowski e1b13a1e44 Install PyMySQL as rally commands may not work without it
(rally-23.1.0.dev64) root@aio1-utility-container-13a6c4d0:/etc/rally# rally task list
[...]
Command failed, please check log for more info
2021-11-24 16:21:59.593 3777441 CRITICAL rally [-] Unhandled error: ModuleNotFoundError: No module named 'pymysql'

relevant rally commit: 3f4bc46535

Change-Id: I2a755326559ee95b74fabe6bc89ed26a820a70a1
2021-11-25 16:50:53 +01:00
likui 426a25ec0b Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: If2c5ecd67aba8a5979bf4fbbca38cb3217b6c1b8
2021-07-03 21:57:43 +08:00
Dmitriy Rabotyagov 243198eced Replace linters test with integarted one
We've created integrated linters check job a while back and it's successfully
working for several releases. At the moment we experience difficulties
with future maintenance of the linters check from the openstack-ansible-tests
repo. So instead of fixing current one, we replace it with modern version of
the test.


Change-Id: I41a967483b7ae75bb49328f5b9fd8931ee892912
2021-05-21 15:53:33 +03:00
OpenStack Proposal Bot 171044d615 Updated from OpenStack Ansible Tests
Change-Id: I5fb0b30d621a3c895ab80f3c701900c80c3570bb
2021-03-22 08:48:45 +00:00
Jonathan Rosser 99f087d2e3 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Iafcd10d169b9515846293731ca1e5b8a7ffb5fe1
2021-03-16 08:15:55 +00:00
OpenStack Proposal Bot dd9bd41c8c Updated from OpenStack Ansible Tests
Change-Id: I98692b8aa538966642b2c5984b34f3dd8c7608b7
2021-03-12 22:20:56 +00:00
Zuul deaa062106 Merge "Remove references to unsupported operating systems" 2021-03-10 17:13:52 +00:00
Jonathan Rosser c1edfb23bc Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible

Change-Id: Ia09789da8c8137c982dcd7560fe61a98a07309e7
2021-03-10 12:16:40 +00:00
Jonathan Rosser e856ad62da Switch default virtualenv to python3
Change-Id: I2d33757ad418977894de205899baa219865fc124
2021-03-10 09:02:03 +00:00
Zuul 6e0ac66be3 Merge "[reno] Stop publishing release notes" 2021-01-26 18:20:00 +00:00
dmitriy ac46d02e85 [reno] Stop publishing release notes
Since we copy all release notes to the integrated repo there is not need
in publishing release notes for each repository. We should only verify their
validity and linting.


Change-Id: Ib38533c7d6cd16df06a55fb704ca8683cabc8972
2021-01-22 18:27:24 +02:00
Jonathan Rosser 03c7872536 Ensure that the rally venv build is self contained
Rally ships it's own version of upper-constraints [1].

As we move openstack-ansible to using the new pip resolver this
causes several issues. The rally specific version of u-c contains
constraints for pip/setuptools/wheel which will inevitably be in
conflict with those in global-requirement-pins. This results in
several problems.

* Rally is branchless and so applying branch-specific versions
  of openstack u-c is incorrect

* Rally should be installed using the rally u-c rather than
  openstack u-c

* Rally should not use the repo server to build wheels as the repo
  server wheel build venv will have different versions of pip/
  setuptools/wheel to those specificed in rally u-c.

* Rally venv build should not be subject to openstack-ansible
  global-requirement-pins as these are in conflict with rally u-c.

This patch introduces the changes necessary to build rally in a self
contained manner on the utility host with no use of the repo server.
It also includes a revert of I73887784cbc3ce6089a42c67871dbc6c3d54acf6.

[1] https://opendev.org/openstack/rally-openstack/raw/branch/master/upper-constraints.txt

Change-Id: Idbd71ade1ab82d2d218e560b2f10c38116ff47e3
2021-01-19 10:25:28 +00:00
zhoulinhui 77944eef30 Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: I9bd1c602e1e287f3da284f4604b042007fb4ade4
2020-11-10 13:12:01 +08:00
Zuul 406db017fe Merge "Updated from OpenStack Ansible Tests" 2020-10-05 11:05:24 +00:00
Jonathan Rosser 2aece27a47 Fix linter errors
Change-Id: If04b1dc1c268d4866086fe5280273ee49057f9bd
2020-10-01 16:55:00 +01:00
OpenStack Proposal Bot 00ad20422e Updated from OpenStack Ansible Tests
Change-Id: I82f7534ed79b60fe42f7479690f5dcc680a60267
2020-10-01 14:31:51 +00:00
OpenStack Proposal Bot c403580f97 Updated from OpenStack Ansible Tests
Change-Id: I2582b19210e5b0c8a0a85907499d34ee0d6d03a7
2020-09-24 16:57:57 +00:00
Jonathan Rosser 56f11c554c Use the utility host for db setup tasks
Move it to the service setup host (defaults to utility[0]) instead
of the galera[0] host, and use galera_address (defaults to internal VIP)
as the endpoint instead of a local connection on the db host.

Change-Id: I3d7688ea29f1eb4d65dd50ae82d157f988e404af
2020-09-23 15:56:07 +00:00
Zuul 33653b4626 Merge "Do not install development packages on the target" 2020-06-30 16:52:21 +00:00
Jonathan Rosser dc7e520b81 Do not install development packages on the target
This role currently passes a list of -dev packages to the
python_venv_build role which will install them on the target
rather than use them for building wheels on the repo server.

This patch removes those package installs and if any specific
dev packages are required they should instead be passed to
python_venv_build via venv_build_distro_package_list.

Change-Id: I5ed1c5145a38becd92de2842417cd6e4774b7bf9
2020-06-25 14:44:46 +03:00
Marc Gariepy 2acd385d30 remove ansible_python_interpreter
ansible_python_interpreter is now set to auto in the tests repo.
it doesn't need to be overwritten in the test anymore.

Depends-On: https://review.opendev.org/734676/
Change-Id: Ibdbfab5d3ab2eb301a583db469f7a96b8785bf7d
2020-06-11 15:59:16 -04:00
Zuul 639ef054b6 Merge "Use newer openstackdocstheme and reno versions" 2020-06-05 11:45:03 +00:00
OpenStack Proposal Bot 9eb71111d5 Updated from OpenStack Ansible Tests
Change-Id: I3829d3cb34a35128a9465d4017ecb37b469dbea6
2020-06-03 19:08:39 +00:00
Andreas Jaeger c78d271638 Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ib7f76f49d8679991b2deb22aff0d7878bc1e2ce0
2020-06-03 20:04:38 +02:00
OpenStack Release Bot bb58fb9483 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I35a0aa74d2e667c7a7ac730a8993b2b3d1192dbe
Sem-Ver: feature
2020-06-01 13:18:02 +00:00
OpenStack Proposal Bot e1bad838d1 Updated from OpenStack Ansible Tests
Change-Id: I627857e02a6ca96a98e859474778dac40ff1ff15
2020-05-22 07:08:26 +00:00
Andreas Jaeger 34659610bc Update docstheme for style
New version of openstackdocstheme (Victoria+) respects pygments_style.
Since this repo is using now Victoria (master) requirements but has
not branched for Ussuri yet, it uses the new version.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Change-Id: I2963b474efb08ac4fb619830673b5b1e12a89389
2020-05-20 18:51:17 +02:00
Zuul cd4c027576 Merge "[ussuri][goal] Update contributor documentation" 2020-05-16 07:47:28 +00:00
Zuul af3463d75e Merge "Cleanup after repo_build and pip_install retirement" 2020-05-14 23:11:12 +00:00
Dmitriy Rabotyagov 69d744dc80 Cleanup after repo_build and pip_install retirement
Change-Id: I1f2dd31d326692ec410c56971e087ed5376f563b
2020-05-13 11:55:59 +01:00
Dmitriy Rabotyagov aed41415f0 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38554

Change-Id: If8017854d98fb0fc071d6afe23f6111da25aa8e4
2020-05-12 22:58:49 +03:00
OpenStack Proposal Bot d692cadd47 Updated from OpenStack Ansible Tests
Change-Id: Ibd192b705545bb5fd70f2107779e748c095330fb
2020-05-12 18:04:57 +00:00
OpenStack Proposal Bot dbce50bde0 Updated from OpenStack Ansible Tests
Change-Id: Idb94cea3a5afe05baf4a4248fde2aba3d107fa44
2020-05-05 13:33:36 +00:00
melissaml ad5a658b54 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Cleanup doc/source/conf.py to remove now obsolete content.

Change-Id: I7b01050c13a960ad603a2d223530ed43e551a274
2020-04-14 18:38:31 +08:00
OpenStack Proposal Bot 367fb6945d Updated from OpenStack Ansible Tests
Change-Id: I80da2e75b6cc90cd7e4b1ea6ecc68ad0f8feb9b9
2020-04-13 17:52:48 +00:00