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)
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
The multitude of set_fact tasks have been replaced with task variables.
The deprecated docker_custom_option variable has been removed.
Change-Id: If3468ab06a64b5998314da1de2644cef3999ece6