Skip to content

Commit 84d12ce

Browse files
committed
Cap API max microversions for stable/2026.1
This commit cap the API max microversions for compute, volume and placement API for stable/2026.1. Compute - https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/rest_api_version_history.rst#2103-maximum-in-20261-gazpacho Volume - https://github.com/openstack/cinder/blob/master/cinder/api/openstack/rest_api_version_history.rst#371 Placement - https://github.com/openstack/placement/blob/master/placement/rest_api_version_history.rst#139 Change-Id: I71b8e8ec03514b149b1a537708cb5cbd32199e19 Signed-off-by: Ghanshyam Maan <[email protected]>
1 parent 1368244 commit 84d12ce

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

lib/tempest

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,11 @@ function configure_tempest {
483483
# Compute Features
484484
# Set the microversion range for compute tests.
485485
# This is used to run the Nova microversions tests.
486-
# Setting [None, latest] range of microversion which allow Tempest to run all microversions tests.
486+
# Setting [None, 2.103] range of microversion which allow Tempest to run all microversions tests on stable/2026.1.
487487
# NOTE- To avoid microversion tests failure on stable branch, we need to change "tempest_compute_max_microversion"
488488
# for stable branch on each release which should be changed from "latest" to max supported version of that release.
489489
local tempest_compute_min_microversion=${TEMPEST_COMPUTE_MIN_MICROVERSION:-None}
490-
local tempest_compute_max_microversion=${TEMPEST_COMPUTE_MAX_MICROVERSION:-"latest"}
490+
local tempest_compute_max_microversion=${TEMPEST_COMPUTE_MAX_MICROVERSION:-"2.103"}
491491
# Reset microversions to None where v2.0 is running which does not support microversion.
492492
# Both "None" means no microversion testing.
493493
if [[ "$TEMPEST_COMPUTE_TYPE" == "compute_legacy" ]]; then
@@ -604,8 +604,13 @@ function configure_tempest {
604604
if [[ "$CINDER_BACKUP_DRIVER" == *"swift"* ]]; then
605605
iniset $TEMPEST_CONFIG volume backup_driver swift
606606
fi
607+
# Set the microversion range for volume tests.
608+
# This is used to run the Cinder microversions tests.
609+
# Setting [None, 3.71] range of microversion which allow Tempest to run all microversions tests on stable/2026.1.
610+
# NOTE- To avoid microversion tests failure on stable branch, we need to change "tempest_volume_max_microversion"
611+
# for stable branch on each release which should be changed from "latest" to max supported version of that release.
607612
local tempest_volume_min_microversion=${TEMPEST_VOLUME_MIN_MICROVERSION:-None}
608-
local tempest_volume_max_microversion=${TEMPEST_VOLUME_MAX_MICROVERSION:-"latest"}
613+
local tempest_volume_max_microversion=${TEMPEST_VOLUME_MAX_MICROVERSION:-"3.71"}
609614
if [ "$tempest_volume_min_microversion" == "None" ]; then
610615
inicomment $TEMPEST_CONFIG volume min_microversion
611616
else
@@ -660,11 +665,11 @@ function configure_tempest {
660665

661666
# Placement Features
662667
# Set the microversion range for placement.
663-
# Setting [None, latest] range of microversion which allow Tempest to run all microversions tests.
668+
# Setting [None, 1.39] range of microversion which allow Tempest to run all microversions tests on stable/2026.1.
664669
# NOTE- To avoid microversion tests failure on stable branch, we need to change "tempest_placement_max_microversion"
665670
# for stable branch on each release which should be changed from "latest" to max supported version of that release.
666671
local tempest_placement_min_microversion=${TEMPEST_PLACEMENT_MIN_MICROVERSION:-None}
667-
local tempest_placement_max_microversion=${TEMPEST_PLACEMENT_MAX_MICROVERSION:-"latest"}
672+
local tempest_placement_max_microversion=${TEMPEST_PLACEMENT_MAX_MICROVERSION:-"1.39"}
668673
if [ "$tempest_placement_min_microversion" == "None" ]; then
669674
inicomment $TEMPEST_CONFIG placement min_microversion
670675
else

0 commit comments

Comments
 (0)