In kolla-ansible, we perform a precheck to see if the python library for
dbus exists, but we do not install it in the bootstrap. This patch
addresses this issue by adding the installation of the dbus python
library.
Change-Id: Idfd4ffd0f80a2f22098639f81be69c664198b6c8
Closes-Bug: #2021585
(cherry picked from commit 1fd93d145a498e1d68e707701e6b3879a6505a58)
The default docker config options, which specify the ``log-opts`` under
``roles/docker/vars/main.yml``, were not included in the
``docker_config`` combinations when the docker role was extracted from
the baremetal role in the Zed release. This means that
``docker_log_max_file`` and ``docker_log_max_size`` are not written into
the docker daemon.json.
The var name needs to be changed, as it can't be recursively defined
within the ``docker_config`` definition under
``roles/docker/tasks/config.yml`.
Closes-Bug: #2040105
Change-Id: I05efda2a9699336136dce8cfa99ada77b9b2a17b
(cherry picked from commit cff2a29d1c21a1d05ce97ebf1d41f846189f1547)
This patch is an approach to move kolla-ansible CI configuration
to use these variables instead of docker_custom_config and add
similar variables in the podman role.
Change-Id: I22c5752845816aca8d03257d4aecb3991ae84a10
Initially it has been merged with private_registry and
private_registry_ca - let's change it to podman_registry
and podman_registry_ca to conform with a rule that vars
should be named with role name.
Change-Id: If6b2898d90b9f51d308ce2f7010084a896afa708
Add podman and podman_sdk role for preparing machine
for Podman deployment of Openstack.
Signed-off-by: Ivan Halomi <i.halomi@partner.samsung.com>
Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
Co-Authored-By: Michal Arbet <michal.arbet@ultimum.io>
Change-Id: Ie4b4c1cf8fe6e7ce41eaa703b423dedcb41e3afc
Since Debian Bookworm does not support installing packages
using pip outside of a venv - let's install python3-docker
package when not using one.
Change-Id: Ide845a4108607765fb3fe772f9bd30db054e2c92
Some latest RPM-based distributions, such as RHEL 9 and CentOS Stream 9, ship
a recent version of systemd that sets the default open file handle limit is
set to 1073741816.
That effects in various issues (like rabbitmq not working), including
ceph/other services in containers not working properly.
kolla-ansible has set that as a default ulimit for Kolla container images [1],
this patch sets that as a Docker Engine default (for container images
that don't have this overridden).
[1]: https://review.opendev.org/c/openstack/kolla-ansible/+/839715
Closes-Bug: #2008761
Change-Id: I48a8f18287aa3b017ce04d4b076d88989f927a56
Probably because of a new version of docker-ce package
apparmor is not installed by default anymore and
containers can't start because of apparmor_parser is missing.
This patch is adding apparmor package to list of packages to
be installed.
Closes-Bug: #2004583
Depends-on: https://review.opendev.org/c/openstack/kolla-ansible/+/872558
Change-Id: I4855a9ea896f30575b924a45f020c23a2e780f4b
By adding a name section, we can get some sense of which tasks are
skipped or inlcluded during the playthrough.
Change-Id: Ib0c083a7e3a761ab39f7f3e632bd4e0400a34b61
Bump Ceph to Quincy to align with new versions in Kolla images
and raise EPEL version to 9 (since Zed only supports EL9).
Change-Id: Iabfdea8775ca31a2168ae99f90a33ffe8483f39c
ping is used in haproxy prechecks, but may not be installed on all
systems. This change ensures the package is installed.
TrivialFix
Change-Id: Ib41e8bc4a9d7c5d32df542ad993826c656786952
The baremetal role adds entries to /etc/hosts. If the file does not
exist, it will fail:
TASK [baremetal : Ensure localhost in /etc/hosts] ****************************************
fatal: [compute2]: FAILED! => {"changed": false, "msg": "Destination /etc/hosts does not exist !", "rc": 257}
Though surprising, this is possible, and we should not assume that
/etc/hosts exists.
This change modifies the above task to create the file if it does not
exist.
Closes-Bug: #1982837
Change-Id: Ic419ee13a10b3fa1b890cfec23bab0a67489eb96
The multitude of set_fact tasks have been replaced with task variables.
The deprecated docker_custom_option variable has been removed.
Change-Id: If3468ab06a64b5998314da1de2644cef3999ece6
The host libvirt package should only be removed when the nova-libvirt
container is enabled. But, removal of iscsi-initiator-utils also causes
libvirt to be uninstalled because of its dependency on
libvirt-daemon-driver-storage-iscsi.
This modification prevents iscsi-initiator-utils from being removed
when nova-libvirt is disabled.
Change-Id: Ie7025342ff0c1a052ccbd449e278bc5d3424a0bf
1. openEuler support docker rpm package by default. It names docker.
2. the docker umask on openEuler is too strict.
This Patch correct the package name and set the umaks to normal on openEuler
bp: support-openeuler-os
Change-Id: I1cc5daee133f11f3b012232cf7434affb065643a
Use become_user=kolla to create the virtualenv. This ensures that the
virtualenv is owned by the kolla user.
Change-Id: Ifeaa766a48588179b66470fdac9216e2a1b4330d
In some cases it may be desirable to run the libvirt daemon on the host.
For example, when mixing host and container OS distributions or
versions.
This change implements changes to the baremetal role necessary to
disable the nova_libvirt container. In this case we should not remove
libvirt packages from the host, nor should we remove the AppArmor
profile for libvirt on Ubuntu hosts.
Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/825357
Change-Id: I8dbe805cea66bd04374b36a4e8876da9b05b2045