From 36705b52336a442dc05d9874638d269834ff93b7 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 9 Apr 2020 11:00:28 +0100 Subject: [PATCH] CentOS 8 support This adds support for CentOS 8 Change-Id: If7ddbd6655086657db03074a27a2d47053fd88e0 --- .zuul.yaml | 19 ++++++++++++ stack.sh | 85 +++++++++++++++--------------------------------------- 2 files changed, 43 insertions(+), 61 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 48c2d0d798..4a54a3a070 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -38,6 +38,16 @@ nodes: - controller +- nodeset: + name: devstack-single-node-centos-8 + nodes: + - name: controller + label: centos-8 + groups: + - name: tempest + nodes: + - controller + - nodeset: name: devstack-single-node-opensuse-15 nodes: @@ -498,6 +508,14 @@ # we often have to rush things through devstack to stabilise the gate, # and these platforms don't have the round-the-clock support to avoid # becoming blockers in that situation. +- job: + name: devstack-platform-centos-8 + parent: tempest-full-py3 + description: Centos 8 platform test + nodeset: devstack-single-node-centos-8 + voting: false + timeout: 9000 + - job: name: devstack-platform-opensuse-15 parent: tempest-full-py3 @@ -595,6 +613,7 @@ - devstack-ipv6 - devstack-platform-opensuse-15 - devstack-platform-fedora-latest + - devstack-platform-centos-8 - devstack-multinode - devstack-unit-tests - openstack-tox-bashate diff --git a/stack.sh b/stack.sh index b59af404a4..aa898de9fb 100755 --- a/stack.sh +++ b/stack.sh @@ -221,7 +221,7 @@ write_devstack_version # Warn users who aren't on an explicitly supported distro, but allow them to # override check and attempt installation with ``FORCE=yes ./stack`` -if [[ ! ${DISTRO} =~ (bionic|stretch|jessie|f30|f31|opensuse-15.0|opensuse-15.1|opensuse-tumbleweed) ]]; then +if [[ ! ${DISTRO} =~ (bionic|stretch|jessie|f30|f31|opensuse-15.0|opensuse-15.1|opensuse-tumbleweed|rhel8) ]]; then echo "WARNING: this script has not been tested on $DISTRO" if [[ "$FORCE" != "yes" ]]; then die $LINENO "If you wish to run this script anyway run with FORCE=yes" @@ -290,67 +290,20 @@ function _install_epel { uninstall_package epel-release || true fi - # This trick installs the latest epel-release from a bootstrap - # repo, then removes itself (as epel-release installed the - # "real" repo). - # - # You would think that rather than this, you could use - # $releasever directly in .repo file we create below. However - # RHEL gives a $releasever of "6Server" which breaks the path; - # see https://bugzilla.redhat.com/show_bug.cgi?id=1150759 - cat <