Add support for EL9

Needs crb repo enablement for python3-wheel package, added rockylinux-9 jobs.

Change-Id: If36eaeb518828778490a1599f93792c82c189bb6
This commit is contained in:
Michal Nasiadka 2022-08-25 09:02:06 +02:00
parent 6af32ae579
commit f34703d297
6 changed files with 54 additions and 6 deletions

View File

@ -58,8 +58,8 @@
# virtualbmc to the system rather than a virtualenv. SELinux # virtualbmc to the system rather than a virtualenv. SELinux
# prevents systemd from accessing files in users' home directories. # prevents systemd from accessing files in users' home directories.
selinux_enabled: "{{ ansible_facts.selinux.status | default('disabled') == 'enabled' }}" selinux_enabled: "{{ ansible_facts.selinux.status | default('disabled') == 'enabled' }}"
is_centos8: "{{ ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int == 8 }}" is_redhat: "{{ ansible_facts.os_family == 'RedHat' }}"
vbmcd_virtualenv_path: "{{ '' if is_centos8 and selinux_enabled else virtualenv_path }}" vbmcd_virtualenv_path: "{{ '' if is_redhat and selinux_enabled else virtualenv_path }}"
vbmcd_python_upper_constraints_url: >- vbmcd_python_upper_constraints_url: >-
{{ python_upper_constraints_url }} {{ python_upper_constraints_url }}

View File

@ -50,8 +50,8 @@
# to the system rather than a virtualenv. SELinux prevents systemd from # to the system rather than a virtualenv. SELinux prevents systemd from
# accessing files in users' home directories. # accessing files in users' home directories.
selinux_enabled: "{{ ansible_facts.selinux.status | default('disabled') == 'enabled' }}" selinux_enabled: "{{ ansible_facts.selinux.status | default('disabled') == 'enabled' }}"
is_centos8: "{{ ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version | int == 8 }}" is_redhat: "{{ ansible_facts.os_family == 'RedHat' }}"
vbmc_virtualenv_path: "{{ '' if is_centos8 and selinux_enabled else virtualenv_path }}" vbmc_virtualenv_path: "{{ '' if is_redhat and selinux_enabled else virtualenv_path }}"
vbmc_log_directory: "{{ log_directory }}" vbmc_log_directory: "{{ log_directory }}"
vbmc_state: "{{ domain.get('state', 'present') }}" vbmc_state: "{{ domain.get('state', 'present') }}"
loop: "{{ vbmc_nodes | sort(attribute='name') | list }}" loop: "{{ vbmc_nodes | sort(attribute='name') | list }}"

View File

@ -38,8 +38,8 @@
url: "{{ item }}" url: "{{ item }}"
dest: /etc/yum.repos.d/ dest: /etc/yum.repos.d/
with_items: with_items:
- https://trunk.rdoproject.org/centos8-master/consistent/delorean.repo - "https://trunk.rdoproject.org/centos{{ ansible_facts.distribution_major_version }}-master/consistent/delorean.repo"
- https://trunk.rdoproject.org/centos8-master/delorean-deps.repo - "https://trunk.rdoproject.org/centos{{ ansible_facts.distribution_major_version }}-master/delorean-deps.repo"
- name: Install Open vSwitch - name: Install Open vSwitch
package: package:

View File

@ -10,6 +10,11 @@
- name: Enable the EPEL yum repository - name: Enable the EPEL yum repository
command: yum-config-manager --enable epel command: yum-config-manager --enable epel
- name: Enable the CRB yum repository
command: yum-config-manager --enable crb
when: ansible_facts.distribution_major_version == '9'
when: ansible_facts.os_family == 'RedHat' when: ansible_facts.os_family == 'RedHat'
become: true become: true
@ -20,4 +25,23 @@
- python3-pip - python3-pip
- python3-setuptools - python3-setuptools
- python3-wheel - python3-wheel
- name: Install Python3 devel
become: true
package:
name:
- python3-devel
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9'
- name: Install virtualenv from distribution package
become: true
package:
name:
- "{% if ansible_facts.os_family == 'Debian' %}virtualenv{% else %}python3-virtualenv{% endif %}" - "{% if ansible_facts.os_family == 'Debian' %}virtualenv{% else %}python3-virtualenv{% endif %}"
when: not (ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9')
- name: Install virtualenv using pip
become: true
pip:
name: virtualenv
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9'

View File

@ -22,11 +22,21 @@
- name: openstack/requirements - name: openstack/requirements
override-checkout: stable/yoga override-checkout: stable/yoga
- job:
name: tenks-deploy-teardown-ovs-bios-centos9s
parent: tenks-deploy-teardown-ovs-bios-base
nodeset: centos-9-stream
- job: - job:
name: tenks-deploy-teardown-ovs-bios-debian name: tenks-deploy-teardown-ovs-bios-debian
parent: tenks-deploy-teardown-ovs-bios-base parent: tenks-deploy-teardown-ovs-bios-base
nodeset: debian-bullseye nodeset: debian-bullseye
- job:
name: tenks-deploy-teardown-ovs-bios-rocky-9
parent: tenks-deploy-teardown-ovs-bios-base
nodeset: rockylinux-9
- job: - job:
name: tenks-deploy-teardown-ovs-bios-ubuntu-focal name: tenks-deploy-teardown-ovs-bios-ubuntu-focal
parent: tenks-deploy-teardown-ovs-bios-base parent: tenks-deploy-teardown-ovs-bios-base
@ -46,11 +56,21 @@
- name: openstack/requirements - name: openstack/requirements
override-checkout: stable/yoga override-checkout: stable/yoga
- job:
name: tenks-deploy-teardown-linuxbridge-uefi-centos9s
parent: tenks-deploy-teardown-linuxbridge-uefi-base
nodeset: centos-9-stream
- job: - job:
name: tenks-deploy-teardown-linuxbridge-uefi-debian name: tenks-deploy-teardown-linuxbridge-uefi-debian
parent: tenks-deploy-teardown-linuxbridge-uefi-base parent: tenks-deploy-teardown-linuxbridge-uefi-base
nodeset: debian-bullseye nodeset: debian-bullseye
- job:
name: tenks-deploy-teardown-linuxbridge-uefi-rocky-9
parent: tenks-deploy-teardown-linuxbridge-uefi-base
nodeset: rockylinux-9
- job: - job:
name: tenks-deploy-teardown-linuxbridge-uefi-ubuntu-focal name: tenks-deploy-teardown-linuxbridge-uefi-ubuntu-focal
parent: tenks-deploy-teardown-linuxbridge-uefi-base parent: tenks-deploy-teardown-linuxbridge-uefi-base

View File

@ -14,11 +14,15 @@
- openstack-tox-py310 - openstack-tox-py310
- tenks-tox-ansible-lint - tenks-tox-ansible-lint
- tenks-deploy-teardown-ovs-bios-centos8s - tenks-deploy-teardown-ovs-bios-centos8s
- tenks-deploy-teardown-ovs-bios-centos9s
- tenks-deploy-teardown-ovs-bios-debian - tenks-deploy-teardown-ovs-bios-debian
- tenks-deploy-teardown-ovs-bios-rocky-9
- tenks-deploy-teardown-ovs-bios-ubuntu-focal - tenks-deploy-teardown-ovs-bios-ubuntu-focal
- tenks-deploy-teardown-ovs-bios-ubuntu-jammy - tenks-deploy-teardown-ovs-bios-ubuntu-jammy
- tenks-deploy-teardown-linuxbridge-uefi-centos8s - tenks-deploy-teardown-linuxbridge-uefi-centos8s
- tenks-deploy-teardown-linuxbridge-uefi-centos9s
- tenks-deploy-teardown-linuxbridge-uefi-debian - tenks-deploy-teardown-linuxbridge-uefi-debian
- tenks-deploy-teardown-linuxbridge-uefi-rocky-9
- tenks-deploy-teardown-linuxbridge-uefi-ubuntu-focal - tenks-deploy-teardown-linuxbridge-uefi-ubuntu-focal
- tenks-deploy-teardown-linuxbridge-uefi-ubuntu-jammy - tenks-deploy-teardown-linuxbridge-uefi-ubuntu-jammy
# Until we have ironic jobs using tenks, gate on the kayobe overcloud # Until we have ironic jobs using tenks, gate on the kayobe overcloud