Skip to content

Commit

Permalink
Remove Rocky Linux and use RedHat 9 due to breaking Ansible core and …
Browse files Browse the repository at this point in the history
…Python changes

The ansible-core 2.17 release has dropped support for Python 3.6, which is the default in Rocky Linux (as it is an EL8 platform).
This leads to the "future feature annotations is not defined" error when gathering facts or installing packages.
Installing Python 3.9 also does not work as the issue lies in /usr/libexec/platform-python which is version 3.6,
and is the "system" python which is used for installing modules using dnf or yum.

To resolve this issue the testing containers have been updated to use RedHat 9.
  • Loading branch information
sleighzy committed Aug 30, 2024
1 parent 57cff3e commit c0b80fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ platforms:
- kafka-nodes
- zookeeper-nodes
- name: server-2
image: rockylinux:8
image: redhat/ubi9:latest
networks:
- name: kafka
ipv4_address: '172.40.10.2'
Expand All @@ -53,7 +53,7 @@ platforms:
- kafka-nodes
- zookeeper-nodes
- name: server-3
image: registry.access.redhat.com/ubi8/ubi-init
image: redhat/ubi9:latest
networks:
- name: kafka
ipv4_address: '172.40.10.3'
Expand Down
5 changes: 2 additions & 3 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
state: present
when: ansible_os_family == "Debian"

- name: Install ps on Rocky Linux
- name: Install ps on RedHat/CentOS
ansible.builtin.yum:
name: procps
state: present
use_backend: dnf
when: ansible_distribution == "Rocky" and ansible_distribution_major_version == "8"
when: ansible_os_family == "RedHat"

0 comments on commit c0b80fb

Please sign in to comment.