* Update openstack-ansible-openstack_hosts from branch 'master'
to f5b386f3d44ea8b6ea72249013a491b5f66346f9
- Merge "Drop task that deletes old UCA repo"
- Drop task that deletes old UCA repo
The variable `uca_apt_source_list_filename` is not defined anywhere
in openstack-ansible so this task is redundant.
Change-Id: I15cc331ad5ec11507860bf61b0c2b20fa8c0b2a0
* Update openstack-ansible-openstack_hosts from branch 'master'
to 88a9be604b4fde8bca921b0878cb1c3e4da36541
- Resolve custom hosts records on hosts
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 1584983367b6bf0df6bd622d8820ae61d2f6687d
- 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: I0f1bd3aa3dbce93c42fdb9399948c41edab2369d
* Update openstack-ansible-openstack_hosts from branch 'master'
to 2e78c2314d65229810ad203419243962074c9246
- Remove `localhost` record from hosts file
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to a93a9526529da22c15a28c7961e25767d3464af0
- Switch codename to Bobcat
Once UCA and RDO have released their packages for 2023.2 we can update
the openstack_distrib_code_name
Change-Id: I4da504eb51ee7f5359902d1af432657982b8fc84
* Update openstack-ansible-openstack_hosts from branch 'master'
to 4f21f81dab6f2d292dbbaf78d9a19849ddbd5425
- Use relevant osbpo repository for Debian 12
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 660c6c8092adf17fd00525243c2e3bb763b3b8ab
- Remove rsyslog since we should use journald instead
Change-Id: Id3a82e722e5c118a35920eabeca62a9cf87756bc
* Update openstack-ansible-openstack_hosts from branch 'master'
to 65f28c5bb406980500f012cf0ad3320ddb69e2ed
- Add ability to define a config for journald
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 4afafbbdb476ebee05cb0a50f85da4b0369ddb9c
- Drop bits for unsupported OS
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 936188e26fa8da0abf34e9e73614c98b041bcabd
- Rename internal variable _package_list
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 0fdd2ad27d9cc600cbd3bf6a394be6bcb49cd0cf
- Drop Ubuntu 20.04 support
Ubuntu 20.04 is not supported or tested in 2023.2, so we remove
focal-related variables from the role.
Change-Id: I52f772f519db6c4924443498bb3453f69cd997de
* Update openstack-ansible-openstack_hosts from branch 'master'
to 3cf5320038cac7d98f9b0a313697ba0c56973ddb
- Fix linters issue 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: Ide0ca8cf60f3a92c98543465d53bc4720067b153
* Update openstack-ansible-openstack_hosts from branch 'master'
to f1de9887b5fd50656694c780a11e52d669ac2982
- Merge "Add support to install distro packages from RDO CloudSIG repos"
- Add support to install distro packages from RDO CloudSIG repos
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to d1b4da3f66acaee95ce948b58d6e913d85404bca
- Revert pinning rdo-deps for openvswitch 2.17 for rocky
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 5e92c6b3e93ef7e1f52bf044f0a74b22233860c6
- Update release name to Antelope
Once distro packages are released, we can update our release name. This
should also fix distro jobs.
Change-Id: I826b08e026211271e9b0e363d4512b383dcd61d2
* Update openstack-ansible-openstack_hosts from branch 'master'
to 753c1616740205573a6e6c4968e7767f97668ec5
- Fix package exclude condition for rdo-deps
In [1] I;'ve accidentally missed round brackets which make ternary
filter test wrong value, so it always results in False
[1] https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/878929
Change-Id: I6fbac1207f7c5932f7f4671fb50f3d8f5baf6cf2
* Update openstack-ansible-openstack_hosts from branch 'master'
to 449d19fd940224449986c883ad170c06db4a1253
- Limit usage of old OVS to Rocky only
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 181036c13bd2e9b09dabba6faea827c99a8adf6c
- Pin openvswitch package on RHEL to 2.17
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to ca1357f61e0aa0066d7b40b912122ee62ca3222d
- Merge "Add openstack_hosts_file tag"
- Add openstack_hosts_file tag
This tag aimed to be used when a deployer only wants to refresh records
for their /etc/hosts file.
Change-Id: Ide65a7f362ee21fa07c729d04f592bf400bdc84e
* Update openstack-ansible-openstack_hosts from branch 'master'
to b55f56811ff3fa1973515dbdec32d6bad5abc72d
- Add `acl` package to all hosts and containers
Ansible will use setfacl if it is present for managing tmp file
access on a remote node, if the executable is present - see [1].
This patch ensures that the acl package is installed on all hosts
and containers.
[1] https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_privilege_escalation.html#risks-of-becoming-an-unprivileged-user
Change-Id: Ia76ebbafb0a7dfdc65364b4c374fc04cc05bfe7e
* Update openstack-ansible-openstack_hosts from branch 'master'
to 50f1a2842e160ab01dd93a5c40a91e152464dd21
- Return centos jobs to voting
This partially reverts commit cfb9d1932c613a0826528e84b4e505a237261e84.
Change-Id: Icc44d08b57ad976429bced3ccc89027f36072764
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/872896
* Update openstack-ansible-openstack_hosts from branch 'master'
to cfb9d1932c613a0826528e84b4e505a237261e84
- Install curl by defining binary that is provided
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 854397b5d0ae31e3efd515e9a14705e54d1e637f
- Merge "Allow to manage extra services, mounts and networks"
- Allow to manage extra services, mounts and networks
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 95e6ca7705c284c9edfc2de8963b22fd1491ce52
- Update tox.ini to work with 4.0
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 4d28a46f087a275e365538c88db1bf56ec0c3135
- 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: Ief4ce78fc8c03bd2cc913cb06bc154cb6b41a774
* Update openstack-ansible-openstack_hosts from branch 'master'
to a285682f5eeb89bea38c2440b0d8232c9689bd64
- Merge "Revert "Use pam_env for su commands on Centos-9""
- Revert "Use pam_env for su commands on Centos-9"
This reverts commit cf358f169de287f9bf078c21fc2bb40b0a78d342.
Reason for revert: RHBA-2022:4082 has packages released which resolve the bug
Change-Id: Ic7135573bd16697d5fe289e9f3838843eb047cc8
* Update openstack-ansible-openstack_hosts from branch 'master'
to eb042cb2c3343111a586a83f25b07bfd9c82c3c7
- Switch codename to Zed
Change-Id: I2a8a91aaa535044966619706734d3ad07714d671
* Update openstack-ansible-openstack_hosts from branch 'master'
to caf936323fb3863e95441a98f62923d79be6fd92
- Remove redundant vars line
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 4d819ed0b697465ea85f1231a67267a668f43217
- Define coherent safe default for package state
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to f26fbe4c6aef11cc17c4a9e7be37a7b89ae74326
- Allow to add extra records to /etc/hosts
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to 010b8377ed99b88136e495cfc6f0518b983b92da
- Merge "Add default apt config for ubuntu 22.04"
- Add default apt config for ubuntu 22.04
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to eb329bfbb9b8890ef6d62280cb6d840e3261e765
- 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: Iba54e7d77b51e6c70c0d7a32a3b334807d255f7c
* Update openstack-ansible-openstack_hosts from branch 'master'
to c0d1978ee9346ce19e1139ef6a1f6f0f89ea2284
- Fix pam_env config for debian
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
* Update openstack-ansible-openstack_hosts from branch 'master'
to cf358f169de287f9bf078c21fc2bb40b0a78d342
- Use pam_env for su commands on Centos-9
See https://access.redhat.com/errata/RHBA-2022:4082
Change-Id: Ibe4ab810ba48c9735af187d39fc34a7451c12d8a
* Update openstack-ansible-openstack_hosts from branch 'master'
to ff61081089b91a6eeca56f2973f6627b845c70a6
- Merge "Do not install UCA repository for ubuntu 22.04"
- Do not install UCA repository for ubuntu 22.04
This repository does not yet exist for the latest ubuntu release.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/838762
Change-Id: I0abcce4c31d16b55fc1b8dcd70c9d137e273498a
* Update openstack-ansible-openstack_hosts from branch 'master'
to 3b53f191fc9e40b32547fd26faaf1793abddcb13
- Merge "Add nova dependency repo for distro install"
- Add nova dependency repo for distro install
Change-Id: Idcb699d92a6c8086531b842ebe4889181120cdd8
* Update openstack-ansible-openstack_hosts from branch 'master'
to c4405603be81e66515fcff3a9528d15a286b1b00
- Add default package manager config
We already have extra config for package manager. With this patch we
extend existing functionality by adding optional default value, that
will be concatinated with extra config.
Deployers are able to set default config to empty string if want to
disable that behaviour.
Change-Id: Ifa40a5296969088fd8f2d07968a8d94e3bc5b2c5
* Update openstack-ansible-openstack_hosts from branch 'master'
to 2fa0318c73e4fae6b0cd89939ef93f1b6d6765df
- Prevent ceph packages installing from ubuntu-cloud-archive
This patch adds a new variable `openstack_hosts_apt_pinned_packages`
which defaults to pinning ceph packages from the UCA repository to
a lower priority than the equivalent packages from the main ubuntu
repository.
Without this change, installing lxc-templates will pull packages from
the Quincy release of Ceph via Yoga UCA, and this is ahead of the
Pacific version expected by the ceph_client and ceph-ansible code.
This change improves consistency of the ceph packages installed across
the deployment and does not allow very new packages in UCA to later
cause a package downgrade failure when the ceph_client/ceph-ansible
attempts to install the well-defined version of ceph required by
openstack-ansible.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/838762
Change-Id: Ia19ba6bae3e95ceb2e517039fbbfb9346e014961
* Update openstack-ansible-openstack_hosts from branch 'master'
to 02dc719b2161a99fe48a70e142c6bd971d0cd79f
- Switch codename to Yoga
This will also trigger installation of proper repositories for
distro dependancies.
Change-Id: I6efd77e21964bf651272ac1cb452fb55012d545b
* Update openstack-ansible-openstack_hosts from branch 'master'
to f99a725103aa7d59b3d4a9d36a163f84073c48bb
- Enable powertools/crb repository for the repo server
This is needed for the kmod-devel package which os_cinder tries
to install during the wheel build.
Change-Id: Idf4cac9b166b9fe922bc412cdb5b79e260723f2e
* Update openstack-ansible-openstack_hosts from branch 'master'
to c8e9cac60c5e69ca264197dd20ada8a7cb71c294
- Use native ansible module to control dnf module_hotfixes
This has been possible since ansible 2.11 so we use the built
in functionality. This should be idempotent and does not
require an additional task.
Change-Id: I0bec6f705d0fbc0b593f19100262912f7b0de4c1
* Update openstack-ansible-openstack_hosts from branch 'master'
to 7220c76237a4751f3607a3452ddf99ff21bdb053
- Fix condtional for powertools/crb repo installation
We should not compare a string with an integer
Change-Id: I1c0ba6a587e8cec8e184a9b109b31b609c713337
* Update openstack-ansible-openstack_hosts from branch 'master'
to 402e40fc82b39548004a3a9bdce4c054a29afa75
- Merge "Simplify generation of osbpo repo name"
- Simplify generation of osbpo repo name
We only support one version of Debian so simplify the logic supporting
older versions.
Change-Id: I80c48048995d845e63b1d1eb55470a0b9381d711