Skip to content

Commit

Permalink
cri-o: use cgroupsv2 where available (fedora)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristicalin committed Nov 30, 2021
1 parent 5c01245 commit 83eb19a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .gitlab-ci/packet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ packet_fedora35-calico-swap-selinux:
extends: .packet_pr
when: manual

packet_fedora35-crio:
stage: deploy-part2
extends: .packet_pr
when: manual

packet_amazon-linux-2-aio:
stage: deploy-part2
extends: .packet_pr
Expand Down
2 changes: 1 addition & 1 deletion docs/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ debian11 | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
debian9 | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
fedora33 | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
fedora34 | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
fedora35 | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
fedora35 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
opensuse | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
oracle7 | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
ubuntu16 | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
Expand Down
16 changes: 0 additions & 16 deletions roles/container-engine/cri-o/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,6 @@
tags:
- facts

- name: disable unified_cgroup_hierarchy in Fedora 31+
command: grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
when:
- ansible_distribution == "Fedora"
- (ansible_distribution_major_version | int) >= 31
- ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] is not defined or ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] != '0'
- not is_ostree

- name: reboot in Fedora 31+
reboot:
when:
- ansible_distribution == "Fedora"
- (ansible_distribution_major_version | int) >= 31
- ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] is not defined or ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] != '0'
- not is_ostree

- name: import crio repo
import_tasks: "crio_repo.yml"
when: crio_add_repos
Expand Down
11 changes: 11 additions & 0 deletions tests/files/packet_fedora35-crio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# Instance settings
cloud_image: fedora-35
mode: default

# Kubespray settings
container_manager: crio
auto_renew_certificates: true

# Test with SELinux in enforcing mode
preinstall_selinux_state: enforcing

0 comments on commit 83eb19a

Please sign in to comment.