Commit Graph

902 Commits

Author SHA1 Message Date
Zuul 506d3bae49 Merge "[Feature] Add skyline deployment capability" 2024-04-16 10:45:07 +00:00
James Denton 2c06a65a75 [Feature] Add skyline deployment capability
This change adds Skyline deployment options to OSA.

New files have been added / integrated into the normal deployment
process to support the use of skyline.

Co-Authored-By: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk>
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
Needed-By: https://review.opendev.org/c/openstack/openstack-ansible-os_skyline/+/912333
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_skyline/+/914439
Change-Id: Ia5c8c60fb152e3eb27e2719f6d7032ca62690601
2024-04-05 10:56:31 +00:00
Zuul f4bf8419e8 Merge "Fix inventory defenition for Cloudkitty" 2024-04-02 17:25:13 +00:00
Dmitriy Rabotyagov 959da8cd03 Fix inventory defenition for Cloudkitty
At the moment Cloudkitty is targeted at all LXC hosts along with containers
which is not needed nor intended.

Unfortunatelly there's no really good compatible fix exist, so action from operator is required to handle transition to new naming for
the service.

Change-Id: I9360495e3b3347568969e36e0e96bb1325efd59f
2024-03-22 10:57:51 +00:00
Zuul 30879b1e64 Merge "Add check_hostname option to db healthcheck tasks" 2024-03-14 17:44:51 +00:00
Jimmy McCrory 6240c769c0 Add check_hostname option to db healthcheck tasks
To allow encrypting connections of db healthcheck tasks, include the
check_hostname option to verify a server host name when an SSL
connection is required.

Also enable galera_require_secure_transport during TLS test jobs.

Change-Id: I23d839e75b202d0400aeefe6e98c429e16ecd37e
2024-03-11 11:07:00 -07:00
Zuul 500d4c3ce4 Merge "Always use physnet1 as external network name in AIO and examples" 2024-03-08 17:40:53 +00:00
Dmitriy Rabotyagov 91051b08b2 Enable image rotation for Magnum
In case, when there's more then 1 image with name `fedora-coreos-latest`
Magnum fails to resolve it's uuid and fails to create a template from such
image.

In order to prevent this happening, we do enable image rotation in CI
to fix upgrade jobs.

Changing visability to `community` does hide the image from non-owner
unless explicitly asked for listing community images.

Change-Id: I1d5f02824e0c0fed820ee0808127efccad1017cf
2024-03-05 21:39:28 +01:00
Jonathan Rosser 563159f49c Always use physnet1 as external network name in AIO and examples
Previously this was either 'vlan' or 'flat' depending on the external
network type, and there were also cases when the name and type were
mismatched - particularly when the flat network was untagged traffic
on a vlan bridge.

This patch removes that confusion and always names the external
network 'physnet1' to align with the upstream neutron examples.

Change-Id: I3cd8b93b42777b787552051bcdc9a90347f1e03d
2024-02-20 17:26:00 +00:00
Zuul fca293037e Merge "Allow virtualisation type to be defined in a test scenario" 2024-02-14 16:16:14 +00:00
Zuul f58c0dd1c6 Merge "Remove unused variable" 2024-02-13 18:09:01 +00:00
Dmitriy Rabotyagov cac820710f Remove tempest concurrency exception for Octavia AIO
Change-Id: I1ceafe3798c08d38494271ac78617c005e128811
2024-02-12 16:39:29 +01:00
Jonathan Rosser 9cad92d41c Allow virtualisation type to be defined in a test scenario
Change-Id: I6d3055139bc6482c6d7fe28dea9b5b5ead500a5c
2024-02-12 15:07:32 +00:00
Jonathan Rosser 13c83a0da5 Remove unused variable
This variable is not defined anywhere in openstack-ansible or
its roles

Change-Id: I3e511612433c5819d8df0a3d93dce9ae9d71a625
2024-02-12 12:23:07 +00:00
Zuul f62e0cba13 Merge "Adopt magnum test variables for openstack_resources" 2024-02-02 21:56:16 +00:00
Dmitriy Rabotyagov 48eed425ef Add tempest tests for Blazar
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/904785
Needed-By: https://review.opendev.org/c/openstack/openstack-ansible-os_blazar/+/904791
Change-Id: I05ff19772a4df012cced134c81c9befd3d33d3b5
2024-02-01 21:35:00 +00:00
Zuul ae6e59d1e5 Merge "Ensure tempest include and exclude lists all use unique names" 2024-01-08 22:16:46 +00:00
Zuul 8ecb020ffe Merge "abstract bootstrap host disk partition names" 2024-01-04 22:59:33 +00:00
Jonathan Rosser 1c39a2af38 Ensure tempest include and exclude lists all use unique names
When deploying a complex AIO with several services enabled, currently
duplicate definitions are made for the tempest test include and
exclude lists. It is down to ansible variable precedence to
determine which one is actually used.

This patch uses the changes made in [1] to allow tempest include and
exlude lists to be defined in many variables and aggregated at the
point the config files for tempest are written.

[1] https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/891579

Change-Id: If047578c283e85b38e73a5f117289f42150f3daf
2024-01-04 15:15:43 +00:00
Dmitriy Rabotyagov 60a1196fe6 Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.

Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.

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

Closes-Bug: #2046172
Change-Id: I65d3fa2e3d6d38f0a51ce1f402ac25d976b67b89
2023-12-28 19:11:38 +01:00
Doug Goldstein b9f045401c
abstract bootstrap host disk partition names
The code in this playbook assumes that the path to a partition is just
the partition number appended to the disk path. However when working
with NVMe disks, the partition will actually be "pN" where N is the
partition number and p is the literal character. To attempt to be
agnostic use lsblk to show all the partitions on the disk, since it was
just reformatted and only has the partitions this playbook creates. This
is then stored in a new temporary fact that can be used throughout the
rest of the playbook.

Change-Id: I661696c275fbc2e91d049303f5498ff8d401fc83
2023-12-19 15:29:30 -06:00
Zuul 038dd1b41b Merge "Disable RabbitMQ quorum queues by default" 2023-12-03 21:42:22 +00:00
Dmitriy Rabotyagov f33a8b1836 Disable RabbitMQ quorum queues by default
During PTG we agreed to disable quorum queues by default during this
cycle and wait for improvements proposed as part of [1] before enabling
it by default.

This also adds a separate job that will test scenario with enabled quorum
queues.

[1] https://review.opendev.org/q/topic:bug-2031497

Change-Id: I0807cc1ed991fd85f9f74d4a360d3fd23cde227c
2023-11-27 10:23:49 +00:00
Dmitriy Rabotyagov 1d59c06a5d Adopt magnum test variables for openstack_resources
Change-Id: Icb26aa7c61b2f3539705261b7530491eac2f0edb
2023-11-20 17:36:59 +00:00
Kevin Carter 0d5b44943b
chore: Update the BTRFS disk check for AIOs
The disk check for AIO deployments using BTRFS was breaking due to
a change in the command line utility output. This change updates
the commands we use to ensure that the output is usable.

Change-Id: I548ad1a4a0ee7527f7b5fcd871ed55c9bc5ce6e7
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2023-11-15 14:23:04 -06:00
Dmitriy Rabotyagov 2acaad9106 Remove amphora provider driver
amphorav1 driver has been dropped from octavia early in 2023.2 cycle [1]

[1] 6c0515c988

Change-Id: I3dde678d0df6e656bcd73ae96a213fad6e0631bb
2023-11-08 09:43:45 +01:00
Zuul d980045dbd Merge "Disable wheels build for metal AIO deployments" 2023-11-07 21:50:50 +00:00
Dmitriy Rabotyagov 4245f268fb Deprecate OpenDaylight support
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/897421
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/897461
Change-Id: I40ae5f158a7658cb2a6fa3b99cc64468281e5ad0
2023-10-27 06:27:16 +00:00
Dmitriy Rabotyagov 6e9e9a056e Disable wheels build for metal AIO deployments
Building wheels takes quite some resources and time in CI without
giving much benefit on metal runs, because requirements for wheels
build could be provided by other role while build would fail in LXC
jobs.

So in order to reduce load on CI and speedup tests we disable wheels
build for metal AIO deployments.

Change-Id: I98abd19d9ecd62bde9df088219308a5f4d4cc950
2023-10-26 17:08:38 +00:00
Zuul 76d5a2bced Merge "Always use on-disk openstack service git repos in CI jobs" 2023-10-12 11:03:55 +00:00
Zuul 986361a020 Merge "Define tempest config overrides in unique variables per service" 2023-10-11 19:36:57 +00:00
Jonathan Rosser 5910a88c95 Always use on-disk openstack service git repos in CI jobs
This is not dependant on if we are running a regular or an upgrade
job. Move the code to a more logical location.

Change-Id: Ibdb29a679504ce30bcdc7591b8e68c054dbea580
2023-10-10 06:59:38 +00:00
Zuul 68643fb110 Merge "Allow deployment on debian bookworm hosts" 2023-10-04 19:13:55 +00:00
Jonathan Rosser bef10134e1 Add barbican api microversion limits for tempest tests
Change-Id: I53313cfcae2a70d3653697a811a80076da8276cb
2023-10-02 10:05:54 +01:00
Jonathan Rosser 991d24afb0 Define tempest config overrides in unique variables per service
Enabling a complex AIO scenario will result in many definitions
of tempest_tempest_conf_overrides and only one will actually be applied
in accordance with ansible variable precedence.

This patch allows the final content passed to tempest to be
composed from many variables simultaneously.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/894757
Change-Id: I9095e61d80ed51f1c60e8838d376c9cded6adbe6
2023-09-27 13:46:13 +01:00
Zuul 9af39fd4d1 Merge "Add tls upgrade jobs" 2023-09-26 17:44:49 +00:00
Damian Dabrowski 46ffb2702b Add tls upgrade jobs
This patch adds new jobs to test upgrade scenario where TLS is fully
disabled on SOURCE_SERIES but enabled on TARGET_SERIES.
Keystone proto is set to 'http' to ensure that
`openstack_service_accept_both_protocols` works as expected.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/885190
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/885337
Change-Id: I6d967f444b2de67fc394cf8c52f4e236418b5f98
2023-09-18 13:19:23 +02:00
Jonathan Rosser b00b4db3e2 Allow deployment on debian bookworm hosts
Change-Id: I1a2d8e6ecbc12168971b3983308ffaf537b87d19
2023-09-11 17:23:22 +01:00
Dmitriy Rabotyagov 20c963ab2a Apply rate limit for journald in AIO builds
At the moment we experience DISK_FULL issue in CI for upgrade
jobs on Rocky. This happens as our log files are more then
available per-job limit, which is capped at 5Gb. In order
to see what fills up the diskspace and reduce overall disk consumption,
we apply rate limiting and define maximum size of files as well as
total diskspace that can be consumed by logs not to exceed that limit.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/892151
Change-Id: I960a4377f6cfc6977a4d0df0e53744cdfb539b1e
2023-08-22 13:36:04 +00:00
Jonathan Rosser f175a2d21c Do not override tempest_plugins for AIO scenarios
The os_tempest role determines which components are installed
internally and enables the necessary plugins. Overriding
tempest_plugins in user_variables for AIO scenarios prevents
the correct set of plugins being loaded for more complex
tests involving multiple openstack components.

Change-Id: I775ee16e1fd28e23d6f8695e4ac4f21912903356
2023-08-16 11:58:07 +00:00
Dmitriy Rabotyagov d72b3394a2 Remove Ubuntu 20.04 support
With ansible-core>=2.14 python 3.8 support has been dropped. Moreover,
nova has bumped minimal required version for libvirt/qemu, which makes
us to remove support for Ubuntu 20.04 Focal Fossa.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_zun/+/884362
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_manila/+/884363
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/884361
Change-Id: I3e6e22553248a9199113a65b0dbe992c38ccb22e
2023-07-07 12:39:23 +02:00
Zuul e933f394aa Merge "Allow to run only specific tags from bootstrap-host role" 2023-06-08 09:49:26 +00:00
Damian Dabrowski eb56baefed Allow to run only specific tags from bootstrap-host role
Bootstrap-host role has some tags defined but running only specific
set of tags is not possible.

In this case, gather_nodepool_vars.yml should be always executed because
it defines `nodepool_dir` variable that is later used by the
`user_variables.aio.yml.j2` template.

Change-Id: I8ae0a256d9f6138f5764b2f69d1e767af538a429
2023-06-04 16:42:27 +02:00
Damian Dabrowski e92a4a9dce Do not override user_secrets.yml if it already exists
When bootstrap-host role is reexecuted, user_secrets.yml is overriden.
It may lead to unexpeted behaviors. This task should not override
user_secrets.yml if this file already exists.

Change-Id: I140b1675526e0d3fbf206d09bcda768206918c1e
2023-06-04 16:40:51 +02:00
Zuul 97859bcc32 Merge "Add management_ip option for metal hosts" 2023-05-23 18:39:11 +00:00
Zuul d60949a880 Merge "Rename container_address to management_address" 2023-05-22 15:50:18 +00:00
Zuul d61ce4f2f7 Merge "Add 'tls' scenario" 2023-05-22 10:40:49 +00:00
Dmitriy Rabotyagov c8ecc9fa10 Add management_ip option for metal hosts
In cases when SSH and mgmt networks are different, it might be important
to have valid management_address that services are relying on when
listening on interfaces. At the moment for bare metal hosts
management_address will be equal to ansible_host which leads to
unpredictable behaviour under some scenarios. With management_ip we allow
to define another IP address that will be used as container/management
address for bare metal host, while `ip` will still represent
ansible_host.

Related-Bug: #2002645
Change-Id: I3152ae7985319e85b9ea520021f9eea6f5850341
2023-05-22 11:53:55 +02:00
Dmitriy Rabotyagov 86d1bdff55 Rename container_address to management_address
This patch aims to reduce confusion caused by a variable
`container_address` that's applicable for bare metal hosts. With that
it renames  `is_container_address` to `is_management_address`
to be aligned with the purpose of the variable, as `container` part
raised confusion.

Change-Id: I314224f3376cf91e05680b11d225fdaf81ec32ab
2023-05-22 09:57:17 +02:00
Zuul 41965140c3 Merge "Move repo_packages to group_vars" 2023-05-19 21:52:56 +00:00