Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#489 from rebtoor/molecule-…
Browse files Browse the repository at this point in the history
…downgrade-crun

Added downgrade of crun in molecule scenario where podman is needed
  • Loading branch information
openshift-merge-bot[bot] authored Nov 9, 2023
2 parents f1b8046 + 2790c02 commit 31459d5
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/edpm_frr/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
- python3-pip
- os-net-config
tasks:
# needed due to regression in 1.11.1
# see https://github.com/containers/crun/issues/1338
# fixed with https://github.com/containers/crun/pull/1341
# we should wait to crun > 1.11.2
- name: Downgrade crun for 1.11.1 regression
become: true
ansible.builtin.dnf:
name: crun < 1.11
allow_downgrade: true
state: present

- name: Install os-net-config
ansible.builtin.package:
name: os-net-config
Expand Down
11 changes: 11 additions & 0 deletions roles/edpm_neutron_dhcp/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@
- include_role:
name: osp.edpm.env_data

# needed due to regression in 1.11.1
# see https://github.com/containers/crun/issues/1338
# fixed with https://github.com/containers/crun/pull/1341
# we should wait to crun > 1.11.2
- name: Downgrade crun for 1.11.1 regression
become: true
ansible.builtin.dnf:
name: crun < 1.11
allow_downgrade: true
state: present

# The openvswitch kernel module needs to be loaded on the host
- name: install and modprobe openvswitch
shell: |
Expand Down
11 changes: 11 additions & 0 deletions roles/edpm_neutron_metadata/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@
- ansible.builtin.include_role:
name: osp.edpm.env_data

# needed due to regression in 1.11.1
# see https://github.com/containers/crun/issues/1338
# fixed with https://github.com/containers/crun/pull/1341
# we should wait to crun > 1.11.2
- name: Downgrade crun for 1.11.1 regression
become: true
ansible.builtin.dnf:
name: crun < 1.11
allow_downgrade: true
state: present

# The openvswitch kernel module needs to be loaded on the host
- name: install and modprobe openvswitch
shell: |
Expand Down
11 changes: 11 additions & 0 deletions roles/edpm_neutron_ovn/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@
- ansible.builtin.include_role:
name: osp.edpm.env_data

# needed due to regression in 1.11.1
# see https://github.com/containers/crun/issues/1338
# fixed with https://github.com/containers/crun/pull/1341
# we should wait to crun > 1.11.2
- name: Downgrade crun for 1.11.1 regression
become: true
ansible.builtin.dnf:
name: crun < 1.11
allow_downgrade: true
state: present

# The openvswitch kernel module needs to be loaded on the host
- name: install and modprobe openvswitch
shell: |
Expand Down
11 changes: 11 additions & 0 deletions roles/edpm_neutron_sriov/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@
test_deps_extra_packages:
- iproute
- podman
tasks:
# needed due to regression in 1.11.1
# see https://github.com/containers/crun/issues/1338
# fixed with https://github.com/containers/crun/pull/1341
# we should wait to crun > 1.11.2
- name: Downgrade crun for 1.11.1 regression
become: true
ansible.builtin.dnf:
name: crun < 1.11
allow_downgrade: true
state: present
11 changes: 11 additions & 0 deletions roles/edpm_ovn/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@
- ansible.builtin.include_role:
name: osp.edpm.env_data

# needed due to regression in 1.11.1
# see https://github.com/containers/crun/issues/1338
# fixed with https://github.com/containers/crun/pull/1341
# we should wait to crun > 1.11.2
- name: Downgrade crun for 1.11.1 regression
become: true
ansible.builtin.dnf:
name: crun < 1.11
allow_downgrade: true
state: present

# The openvswitch kernel module needs to be loaded on the host
- name: install and modprobe openvswitch
shell: |
Expand Down
11 changes: 11 additions & 0 deletions roles/edpm_ovn/molecule/noconfig/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@
- include_role:
name: osp.edpm.env_data

# needed due to regression in 1.11.1
# see https://github.com/containers/crun/issues/1338
# fixed with https://github.com/containers/crun/pull/1341
# we should wait to crun > 1.11.2
- name: Downgrade crun for 1.11.1 regression
become: true
ansible.builtin.dnf:
name: crun < 1.11
allow_downgrade: true
state: present

# The openvswitch kernel module needs to be loaded on the host
- name: install and modprobe openvswitch
shell: |
Expand Down

0 comments on commit 31459d5

Please sign in to comment.