The package is included in Caracal UCA repo but requires newer
python3-pytest which is not present in UCA and causes a conflict [1]
Corresponsive bug report was created towards UCA [2], but until then
it's worth to pin package back to be installed from universe rather then
UCA.
[1] https://paste.openstack.org/show/b9gCyKaVHjYMeupI5dLD/
[2] https://bugs.launchpad.net/cloud-archive/+bug/2064798
Change-Id: I47e796648a820927b79794110d07a9ce88d98cc2
In order to save quite some time during the role execution, we apply
run_once when defining /etc/hosts content.
While this good for "static" content which is based on the inventory,
resolving openstack_host_custom_hosts_records once may lead to
unexpected behaviour. For instance, if host record depends on some specific
group or other variables defined in host/group variables.
In order to resolve it accordingly, we merge status and custom records together
in blockinfile, which allows to resolve record individually for each host
and not having penalty for most usecases.
Change-Id: I48274de908fc6dc4a2e22a789e8355c7ba263599
The variable `uca_apt_source_list_filename` is not defined anywhere
in openstack-ansible so this task is redundant.
Change-Id: I15cc331ad5ec11507860bf61b0c2b20fa8c0b2a0
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: I0f1bd3aa3dbce93c42fdb9399948c41edab2369d
After adding `localhost` to inventory explicitly [1] this caused an interesting
side-effect, where a record for `localhost` is being added to the managed block
in /etc/hosts file, which might override FQDN defenition for the host.
This also makes healthcheck-hosts.yml fail the test, since expected record is not present.
[1] https://review.opendev.org/c/openstack/openstack-ansible/+/899523
Change-Id: If1840530a54aa9ae22eda1d3094f0c40ab66ddde
Once UCA and RDO have released their packages for 2023.2 we can update
the openstack_distrib_code_name
Change-Id: I4da504eb51ee7f5359902d1af432657982b8fc84
Debian 11 latest repository for osbpo is Zed, while for Debian 12 both
Antelope and Bobact are available. We should use correct repos whenever
possible.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/894561
Change-Id: Iad6cc3839ad474982dcf88dddd57775cd5a628c7
At the moment we aim to make systemd-journald a universal destination
for log files across services. With that there is currently no way
of configuring journald using OSA. While this might be
neat for production deployments, it's very valuable to have for CI
as well.
Change-Id: I70a8c9266cb12811a58f5a183955dbec319e539f
There were couple of tasks designed for unsupported
operating systems like Debian 10 or CentOS 8 that were
left during previous cleanups.
Change-Id: I5f920c16a6f6053e64b8013b2a668eb3b1ed2f6a
This var is renamed _openstack_hosts_package list so that it
does not collide with a variable of the same name used in the
python_venv_build role.
Change-Id: Idedf39312df718a7d815eebb3642f75207348afb
Ubuntu 20.04 is not supported or tested in 2023.2, so we remove
focal-related variables from the role.
Change-Id: I52f772f519db6c4924443498bb3453f69cd997de
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: Ide0ca8cf60f3a92c98543465d53bc4720067b153
Rocky 9.2 was released today and ships a new centos-release-nfv which
points to builds of RDO Dependencies build against RHEL 9 buildroots
instead of CentOS Stream 9. As such, we no longer need to keep Rocky at
a lower version of ovs/ovn and can match other distributions (and
Stream) on 3.1.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/883377
Change-Id: I396a75119cdfd3762a59f6e5437234fcc661b7ae
RDO provides two sets of repositories with OpenStack packages, RDO Trunk
and RDO CloudSIG [1]. Currently, openstack_hosts role always uses Trunk
repos but in some cases, users may prefer to use CloudSIG.
This patch adds a variable openstack_hosts_rdo_repo_type which can take
values "trunk" or "cloudsig" to select the type or repos to be used.
[1] https://www.rdoproject.org/what/repos/
Change-Id: I95ee40ae1366e815507b62ba632935e664971f42
Once distro packages are released, we can update our release name. This
should also fix distro jobs.
Change-Id: I826b08e026211271e9b0e363d4512b383dcd61d2
As we've landed fix for CentOS to work properly with new OVS and
workarounded bug, we can now start using new OVS version for stream.
Exclude can be removed once issue will be sorted out for Rocky as well.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/878911
Change-Id: I864cb07231ebf5c820c2ce3721323bebdc337e13
OVS 3.1 was released by CentOS NFV SIG which is built against newer
rdma-core libraries leading to uninstallable openvswitch3.1 on
Rocky Linux due to missing libmlx5.so.1(MLX5_1.24).
While CentOS doesn't need this specific rollback, it will be easier to
fix gates this way.
Change-Id: I388c115d368c0c0638d1dd4f9f11f4448a13a6b1
This tag aimed to be used when a deployer only wants to refresh records
for their /etc/hosts file.
Change-Id: Ide65a7f362ee21fa07c729d04f592bf400bdc84e
Currently, curl conflicts with curl-minimal package on Rocky:
package curl-minimal-7.76.1-19.el9_1.1.x86_64 conflicts with curl
provided by curl-7.76.1-19.el9_1.1.x86_64
To avoid complex logic between curl/curl-minimal we just install
package by providing a path to the binary it should provide.
Based on the distro this will result in instalation of either
curl or curl-minimal.
We also disable rhel9 jobs to sort out circular dependnecy.
Change-Id: If0f08e98912f1f7d060e5b9a338062d3d8469f3a
With tox release of 4.0, some parameters were deprecated and are ignored now
which causes tox failures. One of the most spread issues we have is using
`whitelist_externals` isntead of `allowlist_externals`
Change-Id: If97768b2420ae969369ea1642d5578f3ef6f7565
We do mainatain set of systemd roles, that allow to easily provision
extra services, mounts or even networks and used quite widely across
roles. This way we can ease lives of deployers and need of maintaining
external playbooks and roles that will do basically same. Feature for a
way to create/manage internal networking was also asked for quite
a while amoung users. Systemd-service role can also be used to
define post/pre hooks for configured networks and systemd_mount
can be usefull to setup a shared filesystems for image or volume
conversion directories to avoid running out of diskspace on controllers.
Change-Id: Ia13f7747696db5b7b7640df7532c6d55627bdd01
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: Ief4ce78fc8c03bd2cc913cb06bc154cb6b41a774
This reverts commit cf358f169d.
Reason for revert: RHBA-2022:4082 has packages released which resolve the bug
Change-Id: Ic7135573bd16697d5fe289e9f3838843eb047cc8
This line snuck in with If97b59759d8f89af371f8b0a4538402b1c3320c1
probably to bring it in line with other OSA roles, but should already
be covered by the distribution_major_version line above.
Change-Id: I6d48bf93be68d4fe89c9922c9b53beb6cea7ced5
Instead of overriding this value everywhere, it's easier to
define it from the start to the value we want. In this case,
we want to define it to "present", while still being
overridable.
Change-Id: I81e4fe25b2871600cac30476d021402deb359ae7
Add variable, that would allow to provide extra records for /etc/hosts
file. That might be useful for ppl who still have not adopted proper
DNS or want to do DNS RR, but not for internal VIP and manage internal
VIP with /etc/hosts file, where each host group would resolve FQDN to
a local address.
Change-Id: I89f8cdebf9322c0451b5600b073c82b7773af164
The patch for this to the other operating systems landed before
support for ubuntu-22.04 was added to this role, so the var was
missing in the 22.04 specific vars file.
Change-Id: I3b497a65b65238ab005736376ca23d6dc0cb2f58
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: Iba54e7d77b51e6c70c0d7a32a3b334807d255f7c
Debian requires a different fix for pam_env config than centos-9,
and this was broken in [1]. Return the original task to adjust pam
config on debian.
[1] Ibe4ab810ba48c9735af187d39fc34a7451c12d8a
Change-Id: Ib287ac4805aac8be8b71537e9c52f0c7e57fb8d4