Test setting the nova job to centos-9-stream
Depends-On: https://review.opendev.org/c/openstack/tempest/+/831607 Change-Id: Ic8da6ee0313a911d742190ea5b0d4362cb6aef2f
This commit is contained in:
parent
de65131f92
commit
9a7028f02c
@ -729,8 +729,7 @@
|
||||
# Runs emulation feature functionality test less frequently due
|
||||
# to being the initial release and experimental in nature.
|
||||
- nova-emulation
|
||||
- tempest-integrated-compute-centos-9-stream:
|
||||
irrelevant-files: *nova-base-irrelevant-files
|
||||
- tempest-centos9-stream-fips
|
||||
experimental:
|
||||
jobs:
|
||||
- ironic-tempest-bfv:
|
||||
@ -760,7 +759,7 @@
|
||||
irrelevant-files: *nova-base-irrelevant-files
|
||||
- devstack-tobiko-nova:
|
||||
irrelevant-files: *nova-base-irrelevant-files
|
||||
- tempest-centos8-stream-fips:
|
||||
- tempest-centos9-stream-fips:
|
||||
irrelevant-files: *nova-base-irrelevant-files
|
||||
- nova-emulation
|
||||
- tempest-integrated-compute-centos-9-stream:
|
||||
|
@ -27,13 +27,19 @@ function is_rhel8 {
|
||||
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'
|
||||
}
|
||||
|
||||
function set_conf_line { # file regex value
|
||||
sudo sh -c "grep -q -e '$2' $1 && \
|
||||
sed -i 's|$2|$3|g' $1 || \
|
||||
echo '$3' >> $1"
|
||||
}
|
||||
|
||||
if is_rhel7 || is_rhel8; then
|
||||
if is_rhel7 || is_rhel8 || is_rhel9; then
|
||||
# mysql needs to be started on centos/rhel
|
||||
sudo systemctl restart mariadb.service
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user