Skip to content

Commit 72f7e89

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Test setting the nova job to centos-9-stream"
2 parents 11cb312 + 9a7028f commit 72f7e89

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.zuul.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,7 @@
746746
# Runs emulation feature functionality test less frequently due
747747
# to being the initial release and experimental in nature.
748748
- nova-emulation
749-
- tempest-integrated-compute-centos-9-stream:
750-
irrelevant-files: *nova-base-irrelevant-files
749+
- tempest-centos9-stream-fips
751750
experimental:
752751
jobs:
753752
- ironic-tempest-bfv:
@@ -777,7 +776,7 @@
777776
irrelevant-files: *nova-base-irrelevant-files
778777
- devstack-tobiko-nova:
779778
irrelevant-files: *nova-base-irrelevant-files
780-
- tempest-centos8-stream-fips:
779+
- tempest-centos9-stream-fips:
781780
irrelevant-files: *nova-base-irrelevant-files
782781
- nova-emulation
783782
- tempest-integrated-compute-centos-9-stream:

tools/test-setup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,19 @@ function is_rhel8 {
2727
cat /etc/*release | grep -q 'release 8'
2828
}
2929

30+
function is_rhel9 {
31+
[ -f /usr/bin/dnf ] && \
32+
cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \
33+
cat /etc/*release | grep -q 'release 9'
34+
}
35+
3036
function set_conf_line { # file regex value
3137
sudo sh -c "grep -q -e '$2' $1 && \
3238
sed -i 's|$2|$3|g' $1 || \
3339
echo '$3' >> $1"
3440
}
3541

36-
if is_rhel7 || is_rhel8; then
42+
if is_rhel7 || is_rhel8 || is_rhel9; then
3743
# mysql needs to be started on centos/rhel
3844
sudo systemctl restart mariadb.service
3945

0 commit comments

Comments
 (0)