From 9a2b6dddbba4063a21a1308c00091ad6fa93c2e5 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 9 Jan 2024 14:48:40 +0900 Subject: [PATCH] Remove script logic for CentOS/RHEL < 7 CentOS/RHEL 7 support was removed during Ussuri cycle. Change-Id: If226e95500038f819227afccaec4b7fc345ea90e --- run_tests.sh | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 5b4b19888..b0044486c 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -176,27 +176,16 @@ $SUDO $PKG_MGR -y install puppet \ OS_NAME=$(facter operatingsystem) OS_VERSION=$(facter operatingsystemmajrelease) -if ([ "$OS_NAME" = "RedHat" ] || [ "$OS_NAME" = "CentOS" ]) && [ $OS_VERSION -gt 7 ]; then - $SUDO $PKG_MGR -y install python3-setuptools \ - python3-devel \ - python3-wheel \ - python3-pyyaml -else - $SUDO $PKG_MGR -y install python-setuptools \ - python-devel \ - yum-plugin-priorities -fi +$SUDO $PKG_MGR -y install python3-setuptools \ + python3-devel \ + python3-wheel \ + python3-pyyaml # Don't assume pip is installed which pip3 && PIP=pip3 if [ -z $PIP ]; then - if ([ "$OS_NAME" = "RedHat" ] || [ "$OS_NAME" = "CentOS" ]) && [ $OS_VERSION -gt 7 ]; then - $SUDO $PKG_MGR -y install python3-pip python3-wheel - PIP=pip3 - else - which pip || $SUDO easy_install pip - PIP=pip - fi + $SUDO $PKG_MGR -y install python3-pip python3-wheel + PIP=pip3 fi # Try to use pre-cached cirros images, if available, otherwise download them @@ -282,12 +271,7 @@ if [ "${INSTALL_FROM_SOURCE}" = true ]; then fi export PUPPETFILE_DIR=/usr/share/openstack-puppet/modules export GEM_HOME=/tmp/packstackgems - if ([ "$OS_NAME" = "RedHat" ] || [ "$OS_NAME" = "CentOS" ]) && [ $OS_VERSION -gt 8 ]; then - $SUDO gem install r10k - else - $SUDO gem install gettext -v 3.2.9 --no-ri --no-rdoc - $SUDO gem install r10k -v 2.6.4 --no-ri --no-rdoc - fi + $SUDO gem install r10k # make sure there is no puppet module pre-installed $SUDO rm -rf "${PUPPETFILE_DIR:?}/"* install_modules