
This is a combination of 3 commits. ======================================== CI: Move probe tests to centos 9 stream Pin selenium to 3.x for now, until we can run down the issues with 4.x ======================================== CI: Move off CentOS 8 Remove swift-tox-py36-centos-8-stream job entirely. Move the following jobs to CentOS 9: - swift-tox-func-s3api-ceph-s3tests-tempauth - swift-tox-func-s3api-tests-tempauth - swift-multinode-rolling-upgrade, as well as the other rolling upgrade jobs Remove the swift-multinode-rolling-upgrade-victoria job, as py39 support (required for CentOS 9) was not added until wallaby. NOTE(elod.illes): swift-multinode-rolling-upgrade-victoria job cannot be removed here as it is defined only here and still not removed on master branch. ======================================== CI: Migrate CentOS Stream 8 FIPS job to CentOS Stream 9 (cherry picked from commit6fd031055c
) ======================================== Conflicts: .zuul.yaml NOTE(elod.illes): this patch is backported to unmaintained/wallaby as CentOS Stream 8 is EOL and centos-8-stream nodeset was removed from Zuul and it gives a config error: 'The nodeset "centos-8-stream" was not found.' Official Wallaby runtimes [1] only contains CentOS Stream 8 and python 3.6 & 3.8. [1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html Related-Change: I596415d17f77f48a6e8a63a61b734a8ca0865847 Change-Id: I4f6b9c07af7bc768654f1a5d0c66b048e0f2c9c1 (cherry picked from commit2032fb214e
) (cherry picked from commit9fa1b7edec
) (cherry picked from commit1a18d3c16b
) (cherry picked from commiteadb2acde6
)
55 lines
1.7 KiB
Bash
Executable File
55 lines
1.7 KiB
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
# Set up a partition formatted with XFS to use as TMPDIR for our tests.
|
|
# OpenStack CI will invoke this script as part of tox based tests.
|
|
# The file .zuul.yaml set TMPDIR to $HOME/xfstmp.
|
|
|
|
# Create a large-ish file that we will mount as a loopback
|
|
truncate -s 1GB $HOME/1G_xfs_file
|
|
# Format the new file as XFS.
|
|
/sbin/mkfs.xfs $HOME/1G_xfs_file
|
|
# loopback mount the file
|
|
mkdir -p $HOME/xfstmp
|
|
sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp
|
|
sudo chmod 777 $HOME/xfstmp
|
|
|
|
# Install liberasurecode-devel for CentOS from RDO repository.
|
|
|
|
function is_rhel7 {
|
|
[ -f /usr/bin/yum ] && \
|
|
cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \
|
|
cat /etc/*release | grep -q 'release 7'
|
|
}
|
|
function is_rhel8 {
|
|
[ -f /usr/bin/dnf ] && \
|
|
cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \
|
|
cat /etc/*release | grep -q 'release 8'
|
|
}
|
|
function is_rhel9 {
|
|
[ -f /usr/bin/dnf ] && \
|
|
cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \
|
|
cat /etc/*release | grep -q 'release 9'
|
|
}
|
|
|
|
|
|
if is_rhel7; then
|
|
# Install CentOS OpenStack repos so that we have access to some extra
|
|
# packages.
|
|
sudo yum install -y centos-release-openstack-rocky
|
|
sudo yum install -y liberasurecode-devel
|
|
fi
|
|
|
|
if is_rhel8; then
|
|
# Install CentOS OpenStack repos so that we have access to some extra
|
|
# packages.
|
|
sudo dnf install -y centos-release-openstack-ussuri
|
|
sudo dnf install -y liberasurecode-devel
|
|
fi
|
|
|
|
if is_rhel9; then
|
|
# Install CentOS OpenStack repos so that we have access to some extra
|
|
# packages.
|
|
sudo dnf install -y centos-release-openstack-yoga
|
|
sudo dnf install -y liberasurecode-devel
|
|
fi
|