Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : kubespray v2.24.1 cannot bootstrap in Oracle Linux 7 #11210

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions contrib/dind/group_vars/all/distro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ distro_settings:
agetty_svc: getty@*
ssh_service: ssh
extra_packages: []

ubuntu:
<<: *DEBIAN
image: "ubuntu:16.04"
user: "ubuntu"
init: |
/sbin/init

centos: &CENTOS
image: "centos:7"
user: "centos"
Expand All @@ -28,6 +30,7 @@ distro_settings:
agetty_svc: getty@* serial-getty@*
ssh_service: sshd
extra_packages: []

fedora:
<<: *CENTOS
image: "fedora:latest"
Expand Down
10 changes: 5 additions & 5 deletions roles/bootstrap-os/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
tags:
- facts
with_first_found:
- &search
files:
- files:
- "{{ os_release_dict['ID'] }}-{{ os_release_dict['VARIANT_ID'] }}.yml"
- "{{ os_release_dict['ID'] }}.yml"
paths:
Expand All @@ -26,12 +25,13 @@
- name: Include tasks
include_tasks: "{{ included_tasks_file }}"
with_first_found:
- <<: *search
- files:
- "{{ os_release_dict['ID'] }}-{{ os_release_dict['VARIANT_ID'] }}.yml"
- "{{ os_release_dict['ID'] }}.yml"
paths: []
loop_control:
loop_var: included_tasks_file


- name: Create remote_tmp for it is used by another module
file:
path: "{{ ansible_remote_tmp | default('~/.ansible/tmp') }}"
Expand All @@ -48,7 +48,7 @@
name: "{{ inventory_hostname }}"
when: override_system_hostname

- name: Install ceph-commmon package
- name: Install ceph-common package
package:
name:
- ceph-common
Expand Down
6 changes: 6 additions & 0 deletions roles/container-engine/containerd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,9 @@
daemon_reload: yes
enabled: yes
state: started

- name: Remove duplicate <none>:<none> tagged images
command: "nerdctl rmi $(nerdctl images -q --filter dangling=true)"
when: container_manager == "containerd"
ignore_errors: yes