Commit Graph

13 Commits

Author SHA1 Message Date
Matt Crees
1319871702 Fix: include missing docker log-opts in config
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)
2024-02-19 16:47:18 +00:00
Michal Nasiadka
b4f1d3c993 Bump ansible-lint
Sync the versions with kolla-ansible

Depends-On: https://review.opendev.org/c/openstack/kayobe/+/883744

Change-Id: I744d64e1e69021f93497fcf127a6abd315f04669
2023-05-22 12:55:26 +00:00
Zuul
57c6124238 Merge "docker: Add docker_systemd_reload functionality" 2023-03-15 11:44:30 +00:00
Michal Nasiadka
d985ef48b2 docker: Set ulimit nofile on EL9
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
2023-03-01 14:15:39 +00:00
Michal Nasiadka
60979d8c7c Add support for pinning docker package
Change-Id: Id1986acddbd93a48e54cb8df3d9909cf828c1311
2023-02-13 13:02:47 +00:00
Michal Nasiadka
131df5e480 docker: Add docker_systemd_reload functionality
Change-Id: I8cca0cc46212ce92c474ebf67fd0835375d5d541
2023-02-13 12:57:38 +00:00
Zuul
a55ba91b45 Merge "Debian/Ubuntu: handle APT keys in proper way" 2023-02-08 02:41:03 +00:00
Michal Arbet
fcb91f1e56 Fix bootstrap servers by installing apparmor package
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
2023-02-07 10:20:05 +00:00
Michal Arbet
41ea290e68 Debian/Ubuntu: handle APT keys in proper way
apt-key is deprecated and in Debian 'bullseye' it complain when we use
it the way we did.

The right way is to store key files in separate directory and then, for
each repo source file, point to proper key. And this is what this patch
does.

Both distros use the same keys now.

More info:
  - https://losst.pro/en/how-to-fix-key-is-stored-in-legacy-trusted-gpg-keyring-in-ubuntu
  - https://wiki.debian.org/DebianRepository/UseThirdParty

Change-Id: I4a5116499b13fff0b9523ed29acb080df110e2d4
2023-01-31 02:13:41 +00:00
Bartosz Bezak
55ae3519b7 delete check for removed docker_custom_option command
Change-Id: Ib2ed06f2499c750702611edd0c13e571e6d2732a
2023-01-10 15:06:54 +01:00
Mark Goddard
abc4ecef25 docker: add registry CA configuration
Adapted from Kayobe.

Change-Id: Ib07df6dee124c5d55a7a102606717d222b4c5127
2022-05-06 14:10:34 +00:00
Mark Goddard
137d7643e6 docker: restart docker and containerd in handlers
This is more efficient when there are no changes.

Change-Id: I50ef8ea28e7d83e2788e1ceaee93c97765031a15
2022-05-06 14:09:09 +00:00
Mark Goddard
5471da12b1 baremetal: refactor docker deployment into a separate role
The multitude of set_fact tasks have been replaced with task variables.

The deprecated docker_custom_option variable has been removed.

Change-Id: If3468ab06a64b5998314da1de2644cef3999ece6
2022-05-06 13:47:47 +00:00