From dc20495cc0bf7545cdf1f2cb0b2e1a07f0c58226 Mon Sep 17 00:00:00 2001 From: Jan Ulferts Date: Mon, 18 Nov 2019 18:28:29 +0100 Subject: [PATCH] preinstall containerd.io to avoid kmem bug on >=containerd.io-1.2.10 --- roles/dcos_requirements/tasks/main.yml | 7 +++++++ roles/dcos_requirements/vars/CentOS7.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/roles/dcos_requirements/tasks/main.yml b/roles/dcos_requirements/tasks/main.yml index ad257f1c..13b031f5 100644 --- a/roles/dcos_requirements/tasks/main.yml +++ b/roles/dcos_requirements/tasks/main.yml @@ -122,6 +122,13 @@ gpgkey: https://download.docker.com/linux/centos/gpg when: ansible_distribution == 'CentOS' and yum_list_docker.results | selectattr("yumstate", "match", "installed") | list | length == 0 +- name: "Preinstall containerd.io for docker-ce on CentOS preventing kmem bug" + yum: + name: "{{ dcos_containerd_pkg_name }}" + update_cache: true + state: present + when: ansible_distribution == 'CentOS' and yum_list_docker.results | selectattr("yumstate", "match", "installed") | list | length == 0 + - block: - name: "Finding RHEL extras repository name (Only EL systems)" shell: | diff --git a/roles/dcos_requirements/vars/CentOS7.yml b/roles/dcos_requirements/vars/CentOS7.yml index 9de6a8f0..09d13e6f 100644 --- a/roles/dcos_requirements/vars/CentOS7.yml +++ b/roles/dcos_requirements/vars/CentOS7.yml @@ -2,6 +2,7 @@ dcos_timesync: True cloud_time_sync_package: chrony onprem_time_sync_package: ntp dcos_docker_pkg_name: docker-ce-18.09.2 +dcos_containerd_pkg_name: containerd.io-1.2.6 dcos_prereq_packages: - tar - xz