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
|
# Runs emulation feature functionality test less frequently due
|
||||||
# to being the initial release and experimental in nature.
|
# to being the initial release and experimental in nature.
|
||||||
- nova-emulation
|
- nova-emulation
|
||||||
- tempest-integrated-compute-centos-9-stream:
|
- tempest-centos9-stream-fips
|
||||||
irrelevant-files: *nova-base-irrelevant-files
|
|
||||||
experimental:
|
experimental:
|
||||||
jobs:
|
jobs:
|
||||||
- ironic-tempest-bfv:
|
- ironic-tempest-bfv:
|
||||||
@ -760,7 +759,7 @@
|
|||||||
irrelevant-files: *nova-base-irrelevant-files
|
irrelevant-files: *nova-base-irrelevant-files
|
||||||
- devstack-tobiko-nova:
|
- devstack-tobiko-nova:
|
||||||
irrelevant-files: *nova-base-irrelevant-files
|
irrelevant-files: *nova-base-irrelevant-files
|
||||||
- tempest-centos8-stream-fips:
|
- tempest-centos9-stream-fips:
|
||||||
irrelevant-files: *nova-base-irrelevant-files
|
irrelevant-files: *nova-base-irrelevant-files
|
||||||
- nova-emulation
|
- nova-emulation
|
||||||
- tempest-integrated-compute-centos-9-stream:
|
- tempest-integrated-compute-centos-9-stream:
|
||||||
|
@ -27,13 +27,19 @@ function is_rhel8 {
|
|||||||
cat /etc/*release | grep -q 'release 8'
|
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
|
function set_conf_line { # file regex value
|
||||||
sudo sh -c "grep -q -e '$2' $1 && \
|
sudo sh -c "grep -q -e '$2' $1 && \
|
||||||
sed -i 's|$2|$3|g' $1 || \
|
sed -i 's|$2|$3|g' $1 || \
|
||||||
echo '$3' >> $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
|
# mysql needs to be started on centos/rhel
|
||||||
sudo systemctl restart mariadb.service
|
sudo systemctl restart mariadb.service
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user