Commit Graph

162 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov d163850d7c Bump ansible-core to 2.12.8
On 30.09.2023, "old" ansible galaxy(galaxy.ansible.com) was replaced
with "galaxy ng"[1].
There was a bug [2][3][4] that was fixed only in a supported
ansible-core versions, so:
- v2.12.8
- v2.13.3
- v2.14.0 (and all newer versions)

All openstack-ansible versions up to Yoga are using older ansible-core
versions.
As a result, bootstrap-ansible.sh script fails with an error:

```
Skipping Galaxy server https://galaxy.ansible.com/api/. Got an
unexpected error when getting available versions of collection
ansible.netcommon:
'/api/v3/plugin/ansible/content/published/collections/index/ansible/netcommon/versions/'
```

This patch bumps ansible-core version to 2.12.8 that includes required
fix.

[1] https://www.ansible.com/blog/new-ansible-galaxy
[2] https://github.com/ansible/ansible/issues/81830
[3] https://github.com/ansible/ansible/issues/77911
[4] https://github.com/ansible/ansible/pull/78325

Change-Id: I2c15c220ca8c6b6f0cbedbf0da8e802b7c0f5e2d
2023-10-16 15:32:55 +00:00
Dmitriy Rabotyagov 2ebc57082c Add SERVICES_BRANCH variable for better control
Currently TESTING_BRANCH serving 2 purposes - it controls over OSA
branch to use and services branch.
At the same time we need to have these separated from time to time, as
OSA is trailing.

Change-Id: Ib5ca8c7d3300f4e8efd81f87612c821594bebfac
2022-05-31 16:59:26 +01:00
Jonathan Rosser 3458ee0ee1 Initialise ssh and ssl certificates
This is needed later by the keystone, nova and repo_server roles

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/840445
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/840514
Change-Id: I3a3e9ee62fde37c65fa182bf59f12031c390d968
2022-05-04 16:42:51 +00:00
Dmitriy Rabotyagov 76fe426827 Fix repo passing CI
Also remove linters from regular functional template

Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/798685
Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/798725
Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/798713
Change-Id: Ibfdb5185ee5da8f83858ef1f1db9ea3d332799ea
2021-06-30 08:51:06 +00:00
Zuul efd8b4a1a4 Merge "Use ansible_facts[] instead of fact variables" 2021-05-05 09:07:50 +00:00
Dmitriy Rabotyagov 7466bc9309 Add is_metal variable
In functional tests, comparing to the integrtion ones, dynamic inventroy
is not used. Thus, ``is_metal`` variable is not defined, and we rely on
it in some roles.

To cover the gap, we're setting a variable based on the ansible_facts for
functional tests only.

Change-Id: Ifc9bb5bb65d599a39f562faaaa14a0756e493ba1
2021-04-15 15:21:58 +03:00
Jonathan Rosser 84eea5b91d Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I9841e5b7f32f452b7da0c643cb6c3e0e30d9e413
2021-03-17 12:20:20 +00:00
Jonathan Rosser 2c902788de Use setuptools constraint from global-requirements-pins rather than u-c
With the new pip resolver, if a package is constrainted to two
different versions simultaneously then the package cannot be installed.

setuptools has a constraint in both OSA global-requirement-pins and
openstack upper-constraints, so the installation will fail with the
new resolver.

This patch removes any references to setuptools from openstack u-c
and allows the constraint from the OSA repo to be used.

Change-Id: Ib4c3592184973ba9908a1ba17d935a96448969a1
2021-01-21 17:05:14 +00:00
Jonathan Rosser aaecefaee9 Apply OSA global-requirements-pins during functional tests
Change-Id: Ice2bd1408f65ff4979c9c5244f0ca026e8c246e4
2020-12-01 08:50:43 +00:00
Jonathan Rosser 2a970ec900 Remove support for lxc2 config keys
Change-Id: Ica1f226a9397ccc84013d2bb4a7b0bf5b74d070a
2020-10-06 13:43:08 +00:00
Dmitriy Rabotyagov 60555c925e Set openstack_db_setup_host explicitly
As we have mysql client and mysql config file on infra1 host
for all functional tests, we need to use it instead of the utility
host (since we don't have one for functional tests).

Needed-By: https://review.opendev.org/733443
Change-Id: If91bff7af39a8e465ac1086dcd3378b4e6de3ca7
2020-08-05 16:05:40 +03:00
Dmitriy Rabotyagov 9c60d882a1 Fix requirements_git_install_branch format
After update of requirements_git_url to use releases.openstack.org
test_branch should be in format of "ussuri" instead of "stable/ussuri"

Change-Id: Ia3eae8c132b841797f887f1c82ff1ceb1145783a
2020-06-02 15:26:09 +03:00
Jonathan Rosser b18b57ac37 Ensure correct branch is used for neutron repos during functional tests
Change-Id: I84b85422866758a8b9c1d49ba6ce9337a94294e3
2020-05-22 09:13:50 +00:00
Zuul e8a3d06f36 Merge "Set apparmor statement based on LXC version used" 2020-05-06 17:25:37 +00:00
Dmitriy Rabotyagov 230dec40a6 Add requirements_git_install_branch to test-vars
This aims to use branch-specific u-c while running functional tests

Change-Id: Ia620a0c1d6aadb5e6715ec613a43ceb6ade58be7
2020-04-24 19:03:20 +03:00
Dmitriy Rabotyagov eca8f09628 Set apparmor statement based on LXC version used
We rely on mapping inside lxc-containers-create role while we have
a variable defined with correct version of lxc. So we can set key
correctly here.

Change-Id: Ic9c6287e43737fb2dc6f833dd6e2adff02066f10
2020-04-16 16:27:01 +00:00
Dmitriy Rabotyagov 18a3067a4f Use buster jobs instead of stretch
As for U we don't support debian stretch, there is no need
in having stretch CI jobs. Buster ones should be used instead.

This also fixes ara report

Needed-by: https://review.opendev.org/706285
Change-Id: I554e512968718492ce6056b29b0612e450f0856b
2020-02-24 20:08:35 +02:00
Jonathan Rosser 535f0bbda5 Switch Centos virtualenvs to python3
Change-Id: Ibb48f7848c529b5fd2a41c61e28282819238fbe9
2020-02-24 10:25:50 +00:00
Zuul c04cbec555 Merge "Use python3 for functional tests where possible" 2019-12-08 13:43:19 +00:00
Jonathan Rosser c37ca876ac Use python3 for functional tests where possible
Everywhere except Centos 7.

Change-Id: I3900048501f141644bab4ca6c12cfccb846ac96a
2019-12-07 19:50:35 +00:00
Jonathan Rosser 02ba47fbd9 Use the cached cirros image for tests run from this repo
Change-Id: I5b3971c59fe3acc0256e0ba452ef855e2f797b00
2019-11-18 10:30:25 +00:00
Dmitriy Rabotyagov fcd6eb32b6 Use version filter instead of version_compare
This filter was changed to 'version' in ansible 2.5 [1].

[1] https://docs.ansible.com/ansible/2.8/user_guide/playbooks_tests.html#version-comparison

Change-Id: I12bf7ac0b9bf7f2ae6eff4feccc2a1f8a4dc3d82
2019-09-09 20:02:25 +03:00
Jonathan Rosser 5737a26c0f Set value for tempest_use_tempestconf in test-vars
This variable is used to conditionally include a task file which runs
the python_venv_build role. This means that the handler in the venv
build role is executed conditionally on tempest_use_tempestconf but in
the context of the outermost playbook, where this var is not in scope.

THis patch ensures that tempest_use_tempestconf is defined in the scope
of the top level test playbook.

Change-Id: I8cd5e5626ecc3cfa40315e2bdf62945b7bb1582b
2019-08-24 07:17:52 +01:00
Logan V 65382d04e1 Clean up placement test vars
Change-Id: I055c7da4080a5e7efc438aa4da04b35ad4d9f6d6
2019-05-13 19:56:25 -05:00
Logan V cc15c659c7 Revert "Pin nova_git_install_branch to before placement removal"
This reverts commit f7ce3ed094.

Depends-On: I2f5d4c2f1fc1418bc4f4c4baa1ce3c90b88208fc
Change-Id: Ica43b16fa335934d4423bc924c0267c60c63c0fb
2019-05-13 19:56:25 -05:00
Zuul 4bf4ec3c18 Merge "Replace git.openstack.org with opendev.org" 2019-05-09 11:25:51 +00:00
Dmitriy Rabotjagov 3bf45d57cb Replace git.openstack.org with opendev.org
This patch replaces git.openstack.org with opendev.org as redirection
from old path was enabled.

Change-Id: I8a070e0aded59dd7a4751218bd95bc23d153c6d3
2019-05-08 19:49:28 +03:00
Jesse Pretorius f7ce3ed094 Pin nova_git_install_branch to before placement removal
For role tests to work, we need to pin nova to before the placement
removal. Once we're able to re-implement the role tests or remove
them we can remove this pin.

Change-Id: I58788af6f02a4b339a270dff69a86ce7cdea41d3
2019-05-08 15:18:44 +01:00
Dmitriy Rabotjagov 68064c9ee7 Add rabbitmq policy configuration task
This patch adds support of rabbitmq policies configuration for mq_setup
and uses oslomsg_rpc_policies and oslomsg_notify_policies variables for
that. These variables are defined in group vars and provide HA mode.

It also adds ability to provide extra policies during include by
specifying _oslomsg_notify_policies and/or _oslomsg_rpc_policies
variables.

Depends-On: https://review.openstack.org/652186/
Change-Id: Id60b7ac62ff16af938577615ab001dd144f92c26
2019-04-13 22:08:11 +03:00
Jonathan Rosser d489588d28 Set a defined IP address range for tempest test public addresses
We may need to use some addresses on this subnet for interfaces and
bridges on the host, or containers. This patch defines the range
available to neutron where previously any IP in the subnet may have
been used.

Change-Id: I5a2f7351a6f08b37120f6299556fba1e810f3c9d
2019-01-29 13:13:56 +00:00
Jesse Pretorius 697616662e Remove sahara from common tests repo
This play and the vars are no used anywhere but the
Sahara role, so we move them there instead.

Needed-By: https://review.openstack.org/583427
Change-Id: I830b6bf1d384f497bb0673822a910245463f824f
2018-09-13 14:28:57 -06:00
Mohammed Naser f6851519b9 Drop checksum checks
We currently run the agents on bare metal so the workaround for
checksums is no longer necessary.

Change-Id: I2d3f6a811604d3fd615b1b6e6b3e8c34a46ff85d
2018-08-17 11:48:11 -04:00
Jean-Philippe Evrard 32612b2137 Reduce log level on CentOS by default
This overrides centos default values of printk logging
to a more "quiet" default, reducing IO in testing.

Change-Id: I62d2357152384b78d8371f2a714aa3313d77f3fd
2018-08-07 15:21:26 +02:00
Zuul 7f64a67d59 Merge "Remove all MQ vhost/user creation tasks/vars" 2018-07-31 14:47:52 +00:00
Jonathan Rosser 2b432ccb73 Add lxc3 compatibility to tests
lxc3 deprecates many legacy config keys [1].

[1] https://discuss.linuxcontainers.org/t/lxc-2-1-has-been-released/487

Change-Id: I791309c29d7aee41fa7f79bbb2b6de122ada995d
2018-07-29 20:47:06 +01:00
Jesse Pretorius 3e595367db Remove all MQ vhost/user creation tasks/vars
There is no record for why we implement the MQ vhost/user 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 remove the test-vars which were duplicated from the
role, and remove the MQ setup tasks as they are no longer required.

Change-Id: Ib515630c8fbf793258b40f15a4c9f2c18c4c7531
2018-07-27 13:19:10 +01:00
Jesse Pretorius 8d595646ab Add swift_oslomsg_notify_password
For the MQ setup tasks to complete, a value for the
password is required, so we add it.

Change-Id: Ia2598447c019020263311b2202a5a178b65143e5
2018-07-22 12:49:46 +01:00
Zuul 831465d1ee Merge "Do not use glance servers variable" 2018-07-12 15:43:48 +00:00
Zuul 814070b9b7 Merge "Move MQ vhost/user creation into role (glance)" 2018-07-05 18:21:38 +00:00
Jesse Pretorius 379b24dc8d Move MQ vhost/user creation into role (glance)
There is no record for why we implement the MQ vhost/user 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 remove the test-vars which were duplicated from the
role, and remove the MQ setup tasks as they are no longer required.

We also remove the usage of a variable for the role name as that is
unnecessary legacy.

Depends-On: https://review.openstack.org/568517
Change-Id: I516e65e3b49f1722636d69f80c1bddc01c942a48
2018-07-03 17:13:18 +00:00
Zuul 4ba56535d0 Merge "Do not build cryptography for tests" 2018-07-02 15:20:11 +00:00
Jean-Philippe Evrard ed5ec313bf Do not build cryptography for tests
Depends-On: https://review.openstack.org/#/c/574181/
Change-Id: I1e43cc2d47ffc13dd5fde1dec5e68920489ec4f6
2018-07-02 12:34:13 +00:00
Mohammed Naser 1acaf917e1 Use Tempest master when testing roles in master
If we're testing a stable branch, it is best to use the stable
released Tempest version.  However, when working in master, it
is possible that an OpenStack service change which has a
corresponding Tempest change would lead to things failing because
we're deploying master of the service but a tagged version of
Tempest which means the tests will fail.

In order to ensure stability of stable branches, we'll keep using
the tagged release but we'll use master Tempest for testing the
roles.

Change-Id: I347afd358850149b359ae64871a858701755d896
2018-06-17 10:04:39 -04:00
Albert Mikaelyan 1f001d65b3 Do not use glance servers variable
Do not use glance servers variable.
Specify the glance servers for all hosts.
Also add correct ironic variable.

Depends-On: I983a20d923384bf54cb0af924ec0a0f8ef4db191
Depends-On: I8dfd1904de36ca2b9f163bd5447bfa40ddf4ca3a
Change-Id: I7dcc8177e13b49f87e5ee4c9d2323074fee45179
2018-06-17 12:59:15 +03:00
Zuul 8a1b98005a Merge "Move database creation into role (keystone)" 2018-06-09 10:31:22 +00:00
Zuul f9c7a843e7 Merge "Move database creation into role (nova)" 2018-06-08 18:30:33 +00:00
Mohammed Naser a577ed5320 Add galera_address to list of variables
Previously, we had a <service>_galera_address for every project,
however, it looks like the patches to move the creation of the
database inside the roles have worked great, but their testing
patches inside this repo. have dropped the usage of the address
which means that the service is configured with 127.0.0.1 (the
fallback if none is provided).

This patch fixes this by adding that variable so that everything
can go through smoothly.  Therefore, the removal of future
<service>_galera_address variables will not affect things.

Change-Id: Ib180fc3a7cbae28b413094b444f7d528b584c9ed
2018-06-05 17:34:15 -04:00
Zuul 77e91aeecc Merge "Move database creation into role (horizon)" 2018-06-05 05:48:50 +00:00
Zuul 855baa9a89 Merge "Move database creation into role (sahara)" 2018-06-05 05:42:20 +00:00
Zuul ca2772620d Merge "Move database creation into role (cinder)" 2018-06-05 05:42:19 +00:00