Remove python 3.9 support

OpenStack recently dropped python3.9 support for global requirements[1]
as it was removed from the Flamingo supported runtimes[2].

So this patch removes 3.9 support from nova too.

[1]https://review.opendev.org/c/openstack/requirements/+/948285
[2]https://governance.openstack.org/tc/reference/runtimes/2025.2.html#python

Change-Id: I8aea971d7972959c32d5175926cbaddb21839f8e
This commit is contained in:
Balazs Gibizer 2025-04-29 09:19:32 +02:00
parent 3e7017eb29
commit a5bcaf69b1
3 changed files with 10 additions and 35 deletions

View File

@ -1,34 +1,6 @@
# See https://docs.openstack.org/infra/manual/drivers.html#naming-with-zuul-v3
# for job naming conventions.
- job:
name: nova-tox-functional-py39
parent: openstack-tox-functional-py39
description: |
Run tox-based functional tests for the OpenStack Nova project
under cPython version 3.9 with Nova specific irrelevant-files list.
Uses tox with the ``functional-py39`` environment.
This job also provides a parent for other projects to run the nova
functional tests on their own changes.
required-projects:
# including nova here makes this job reusable by other projects
- openstack/nova
- openstack/placement
irrelevant-files: &functional-irrelevant-files
- ^.*\.rst$
- ^api-.*$
- ^doc/(source|test)/.*$
- ^nova/locale/.*$
- ^\.pre-commit-config\.yaml$
- ^releasenotes/.*$
vars:
# explicitly stating the work dir makes this job reusable by other
# projects
zuul_work_dir: src/opendev.org/openstack/nova
bindep_profile: test py39
timeout: 3600
- job:
name: nova-tox-functional-py310
parent: openstack-tox-functional-py310
@ -43,7 +15,13 @@
# including nova here makes this job reusable by other projects
- openstack/nova
- openstack/placement
irrelevant-files: *functional-irrelevant-files
irrelevant-files: &functional-irrelevant-files
- ^.*\.rst$
- ^api-.*$
- ^doc/(source|test)/.*$
- ^nova/locale/.*$
- ^\.pre-commit-config\.yaml$
- ^releasenotes/.*$
vars:
# explicitly stating the work dir makes this job reusable by other
# projects
@ -809,7 +787,6 @@
- nova-ovs-hybrid-plug
- nova-tox-validate-backport:
voting: false
- nova-tox-functional-py39
- nova-tox-functional-py310
- nova-tox-functional-py312
- openstack-tox-py312:
@ -837,7 +814,6 @@
gate:
jobs:
- nova-live-migration
- nova-tox-functional-py39
- nova-tox-functional-py310
- nova-tox-functional-py312
- nova-multi-cell

View File

@ -10,7 +10,7 @@ project_urls =
Bug Tracker = https://bugs.launchpad.net/nova/
Documentation = https://docs.openstack.org/nova/
Source Code = https://opendev.org/openstack/nova
python_requires = >=3.9
python_requires = >=3.10
classifiers =
Development Status :: 5 - Production/Stable
Environment :: OpenStack
@ -20,7 +20,6 @@ classifiers =
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12

View File

@ -53,14 +53,14 @@ commands =
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
stestr slowest
[testenv:{unit,py3,py39,py310,py311,py312}]
[testenv:{unit,py3,py310,py311,py312}]
setenv =
{[testenv]setenv}
# we do not have any greenlet leaks in unit tests so enforce that
# by making greenlet leaks a failure.
NOVA_RAISE_ON_GREENLET_LEAK=True
[testenv:functional{,-py39,-py310,-py311,-py312}]
[testenv:functional{,-py310,-py311,-py312}]
description =
Run functional tests.
setenv =