Remove centos-8 support

This becomes EOL during the Yoga cycle so we remove support for
this OS.

Change-Id: Ic4a5f9a16b8502844e6fa2a9e2fd548bc17b27dc
This commit is contained in:
Jonathan Rosser
2021-12-07 11:28:20 +00:00
committed by Dmitriy Rabotyagov
parent 5a867922f2
commit 2ba47de119
9 changed files with 12 additions and 54 deletions

View File

@@ -28,7 +28,6 @@ hosts:
* `Ubuntu server 20.04 (Focal Fossa) LTS 64-bit <http://releases.ubuntu.com/20.04/>`_ * `Ubuntu server 20.04 (Focal Fossa) LTS 64-bit <http://releases.ubuntu.com/20.04/>`_
* `Debian 11 (Bullseye) LTS 64-bit <https://www.debian.org/distrib/>`_ * `Debian 11 (Bullseye) LTS 64-bit <https://www.debian.org/distrib/>`_
* `Centos 8 64-bit <http://isoredirect.centos.org/centos/8/isos/x86_64/>`_
* `Centos 8 Stream 64-bit <http://isoredirect.centos.org/centos/8-stream/isos/x86_64/>`_ * `Centos 8 Stream 64-bit <http://isoredirect.centos.org/centos/8-stream/isos/x86_64/>`_
Configure at least one network interface to access the Internet or suitable Configure at least one network interface to access the Internet or suitable

View File

@@ -18,8 +18,6 @@ following minimum requirements:
* CentOS * CentOS
* Centos 8
* Centos 8 Stream * Centos 8 Stream
* Linux kernel version ``3.10.0`` or later. * Linux kernel version ``3.10.0`` or later.

View File

@@ -13,7 +13,7 @@ target host:
* Ubuntu server 20.04 (Focal Fossa) LTS 64-bit * Ubuntu server 20.04 (Focal Fossa) LTS 64-bit
* Debian 10 64-bit * Debian 10 64-bit
* Centos 8 64-bit * Centos 8 Stream 64-bit
Configure at least one network interface to access the Internet or Configure at least one network interface to access the Internet or
suitable local repositories. suitable local repositories.

View File

@@ -121,16 +121,7 @@ version.
.. note:: .. note::
The |current_release_formal_name| release is only compatible with The |current_release_formal_name| release is only compatible with
Debian 11 (bullseye), Ubuntu 20.04 (Focal Fossa), CentOS 8 and Debian 11 (bullseye), Ubuntu 20.04 (Focal Fossa) and CentOS 8 Stream.
CentOS 8 Stream.
.. warning::
The announcement of early end-of-life for CentOS 8 and the migration
to CentOS Stream leaves OpenStack-Ansible currently un-installable on
CentOS Stream. A number of critical dependencies are taken from the
EPEL repository and currently these will not install onto a CentOS
Stream host. Careful consideration should be given to the life-cycle
of any new deployments on CentOS 8.
The next step is to bootstrap Ansible and the Ansible roles for the The next step is to bootstrap Ansible and the Ansible roles for the
development environment. development environment.

View File

@@ -58,7 +58,7 @@
(ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '8') (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '8')
msg: > msg: >
The only supported platforms for this release are Debian 11 (Bullseye), The only supported platforms for this release are Debian 11 (Bullseye),
Ubuntu 20.04 LTS (Focal), CentOS 8 and CentOS 8 Stream. Ubuntu 20.04 LTS (Focal) and CentOS 8 Stream.
roles: roles:
- role: "openstack_hosts" - role: "openstack_hosts"
vars_files: vars_files:

View File

@@ -77,42 +77,6 @@
utility_distro_packages: "{{ (utility_distro_packages | default([])) + utility_distro_openstack_clients_packages }}" utility_distro_packages: "{{ (utility_distro_packages | default([])) + utility_distro_openstack_clients_packages }}"
when: install_method == "distro" when: install_method == "distro"
- name: Add EPEL repsitory
block:
- name: Download EPEL gpg keys
get_url:
url: "{{ centos_epel_key | default('http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-' ~ ansible_facts['distribution_major_version']) }}"
dest: /etc/pki/rpm-gpg
register: _get_yum_keys
until: _get_yum_keys is success
retries: 5
delay: 2
- name: Install EPEL gpg keys
rpm_key:
key: "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_facts['ansible_distribution_major_version'] }}"
state: present
- name: Install the EPEL repository
yum_repository:
name: epel-utility
baseurl: "{{ centos_epel_mirror | default('http://download.fedoraproject.org/pub/epel') ~ '/'
~ ansible_facts['distribution_major_version'] ~ '/Everything/'
~ ansible_facts['architecture'] }}"
description: "Extra Packages for Enterprise Linux {{ ansible_facts['ansible_distribution_major_version'] }} - $basearch"
gpgcheck: yes
enabled: yes
state: present
includepkgs: 'python3-PyMySQL python36-PyMySQL'
register: install_epel_repo
until: install_epel_repo is success
retries: 5
delay: 2
when:
- install_method == "distro"
- ansible_facts['os_family'] | lower == 'redhat'
- ansible_distribution_major_version is version('8', '<')
- name: Install distro packages - name: Install distro packages
package: package:
name: "{{ utility_distro_packages | default([]) }}" name: "{{ utility_distro_packages | default([]) }}"

View File

@@ -0,0 +1,7 @@
---
upgrade:
- |
The Yoga release of OpenStack-Ansible removes support for Centos-8.
Deployments should be upgraded from Centos-8 to an alternative
supported operating system during the Xena release before upgrading
to Yoga.

View File

@@ -57,8 +57,7 @@ fi
# Build ansible-runtime venv # Build ansible-runtime venv
function build_ansible_runtime_venv { function build_ansible_runtime_venv {
# All distros have a python-virtualenv > 13. # All distros have a python-virtualenv > 13.
# - Centos 8 has 15.1, which holds pip 9.0.1, setuptools 28.8, wheel 0.29 # - Centos 8 Stream has 15.1, which holds pip 9.0.1, setuptools 28.8, wheel 0.29
# See also: http://mirror.centos.org/centos/7/os/x86_64/Packages/
# - openSUSE 42.3 has 13.1.2, which holds pip 7.1.2, setuptools 18.2, wheel 0.24. # - openSUSE 42.3 has 13.1.2, which holds pip 7.1.2, setuptools 18.2, wheel 0.24.
# See also: https://build.opensuse.org/package/show/openSUSE%3ALeap%3A42.3/python-virtualenv # See also: https://build.opensuse.org/package/show/openSUSE%3ALeap%3A42.3/python-virtualenv
# - Ubuntu Xenial has 15.0.1, holding pip 8.1.1, setuptools 20.3, wheel 0.29 # - Ubuntu Xenial has 15.0.1, holding pip 8.1.1, setuptools 20.3, wheel 0.29

View File

@@ -21,7 +21,7 @@
(ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '8') (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '8')
msg: >- msg: >-
The only supported platforms for this release are Debian Bullseye, The only supported platforms for this release are Debian Bullseye,
Ubuntu 20.04 (Focal), CentOS 8, CentOS 8 Stream Ubuntu 20.04 (Focal), and CentOS 8 Stream
when: (check_operating_system | default(True))| bool when: (check_operating_system | default(True))| bool
tags: tags:
- check-operating-system - check-operating-system