Switch centos 9-stream jobs to run with python 3.12

With [1] py39 constraints drop can't run fips jobs on
centos 9-stream or rocky9.
As a workaround we can run with PYTHON3_VERSION: 3.12 in affected
jobs until centos 10-stream support is ready[1]

[1] https://review.opendev.org/c/openstack/requirements/+/948285
[2] https://review.opendev.org/c/openstack/devstack/+/937251

Related-Bug: #2109591
Depends-On: https://review.opendev.org/c/openstack/devstack/+/948511
Change-Id: Ia9ab6ab0c410994808c5420b60431aa947d3962c
This commit is contained in:
yatinkarel 2025-04-08 20:48:54 +05:30
parent 5090d675be
commit 75c0895f39
3 changed files with 18 additions and 0 deletions

View File

@ -25,6 +25,7 @@
# This is DB USER used in mysql db
DATABASE_USER=openstack_citest
MYSQL_GATHER_PERFORMANCE={{ MYSQL_GATHER_PERFORMANCE | default(true) }}
PYTHON3_VERSION={{ PYTHON3_VERSION | default('3') }}
source $NEUTRON_DIR/tools/configure_for_func_testing.sh
if is_fedora; then

View File

@ -150,6 +150,10 @@
vars:
nslookup_target: 'opendev.org'
enable_fips: True
# NOTE(ykarel) remove python3 override with 10-stream switch
PYTHON3_VERSION: 3.12
tox_environment:
TOX_PYTHON: python3.12
devstack_localrc:
ISCSI_CHAP_ALGORITHMS: SHA3-256,SHA256
Q_BUILD_OVS_FROM_GIT: true
@ -235,6 +239,10 @@
vars:
nslookup_target: 'opendev.org'
enable_fips: True
# NOTE(ykarel) remove python3 override with 10-stream switch
PYTHON3_VERSION: 3.12
tox_environment:
TOX_PYTHON: python3.12
devstack_localrc:
ISCSI_CHAP_ALGORITHMS: SHA3-256,SHA256
Q_BUILD_OVS_FROM_GIT: true

View File

@ -702,6 +702,9 @@
parent: neutron-ovn-tempest-ovs-master
nodeset: devstack-single-node-centos-9-stream
vars:
devstack_localrc:
# NOTE(ykarel) remove python3 override with 10-stream switch
PYTHON3_VERSION: 3.12
zuul_copy_output:
'{{ devstack_base_dir }}/data/ovs': 'logs'
'{{ devstack_base_dir }}/data/ovn': 'logs'
@ -721,6 +724,9 @@
devstack_services:
br-ex-tcpdump: true
br-int-flows: true
devstack_localrc:
# NOTE(ykarel) remove python3 override with 10-stream switch
PYTHON3_VERSION: 3.12
devstack_local_conf:
test-config:
"$TEMPEST_CONFIG":
@ -737,6 +743,9 @@
vars:
nslookup_target: 'opendev.org'
configure_swap_size: 4096
devstack_localrc:
# NOTE(ykarel) remove python3 override with 10-stream switch
PYTHON3_VERSION: 3.12
devstack_local_conf:
test-config:
"$TEMPEST_CONFIG":