Skip to content

Commit 9a7028f

Browse files
vakwetuafaranha
authored andcommitted
Test setting the nova job to centos-9-stream
Depends-On: https://review.opendev.org/c/openstack/tempest/+/831607 Change-Id: Ic8da6ee0313a911d742190ea5b0d4362cb6aef2f
1 parent de65131 commit 9a7028f

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
@@ -729,8 +729,7 @@
729729
# Runs emulation feature functionality test less frequently due
730730
# to being the initial release and experimental in nature.
731731
- nova-emulation
732-
- tempest-integrated-compute-centos-9-stream:
733-
irrelevant-files: *nova-base-irrelevant-files
732+
- tempest-centos9-stream-fips
734733
experimental:
735734
jobs:
736735
- ironic-tempest-bfv:
@@ -760,7 +759,7 @@
760759
irrelevant-files: *nova-base-irrelevant-files
761760
- devstack-tobiko-nova:
762761
irrelevant-files: *nova-base-irrelevant-files
763-
- tempest-centos8-stream-fips:
762+
- tempest-centos9-stream-fips:
764763
irrelevant-files: *nova-base-irrelevant-files
765764
- nova-emulation
766765
- 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)