From 11813e521fdebd5a7696b6e1ad84a96217ad10a6 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Thu, 28 Sep 2023 15:14:47 -0700 Subject: [PATCH] Cap max microversions for stable/2023.2 This commit cap the max microversions for compute, volume and placement API for stable/2023.2. Compute- https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/rest_api_version_history.rst#295-maximum-in-20231-antelope-and-20232-bobcat Volume - https://github.com/openstack/cinder/blob/master/cinder/api/openstack/rest_api_version_history.rst#370-maximum-in-zed-and-20231 Placement - https://github.com/openstack/placement/blob/master/placement/rest_api_version_history.rst#139---support-for-the-any-traits-syntax-in-the-required-parameter Change-Id: I52f244df1af212db518e221c85c4c1e2f628d572 --- lib/tempest | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/tempest b/lib/tempest index 40a522b46c..c03f671eb7 100644 --- a/lib/tempest +++ b/lib/tempest @@ -464,11 +464,11 @@ function configure_tempest { # Compute Features # Set the microversion range for compute tests. # This is used to run the Nova microversions tests. - # Setting [None, latest] range of microversion which allow Tempest to run all microversions tests. + # Setting [None, 2.95] range of microversion which allow Tempest to run available microversions tests on stable/2023.2. # NOTE- To avoid microversion tests failure on stable branch, we need to change "tempest_compute_max_microversion" # for stable branch on each release which should be changed from "latest" to max supported version of that release. local tempest_compute_min_microversion=${TEMPEST_COMPUTE_MIN_MICROVERSION:-None} - local tempest_compute_max_microversion=${TEMPEST_COMPUTE_MAX_MICROVERSION:-"latest"} + local tempest_compute_max_microversion=${TEMPEST_COMPUTE_MAX_MICROVERSION:-"2.95"} # Reset microversions to None where v2.0 is running which does not support microversion. # Both "None" means no microversion testing. if [[ "$TEMPEST_COMPUTE_TYPE" == "compute_legacy" ]]; then @@ -572,7 +572,7 @@ function configure_tempest { fi iniset $TEMPEST_CONFIG volume-feature-enabled volume_revert $(trueorfalse False TEMPEST_VOLUME_REVERT_TO_SNAPSHOT) local tempest_volume_min_microversion=${TEMPEST_VOLUME_MIN_MICROVERSION:-None} - local tempest_volume_max_microversion=${TEMPEST_VOLUME_MAX_MICROVERSION:-"latest"} + local tempest_volume_max_microversion=${TEMPEST_VOLUME_MAX_MICROVERSION:-"3.70"} if [ "$tempest_volume_min_microversion" == "None" ]; then inicomment $TEMPEST_CONFIG volume min_microversion else @@ -627,11 +627,11 @@ function configure_tempest { # Placement Features # Set the microversion range for placement. - # Setting [None, latest] range of microversion which allow Tempest to run all microversions tests. + # Setting [None, 1.39] range of microversion which allow Tempest to run available microversions tests on stable/2023.2. # NOTE- To avoid microversion tests failure on stable branch, we need to change "tempest_placement_max_microversion" # for stable branch on each release which should be changed from "latest" to max supported version of that release. local tempest_placement_min_microversion=${TEMPEST_PLACEMENT_MIN_MICROVERSION:-None} - local tempest_placement_max_microversion=${TEMPEST_PLACEMENT_MAX_MICROVERSION:-"latest"} + local tempest_placement_max_microversion=${TEMPEST_PLACEMENT_MAX_MICROVERSION:-"1.39"} if [ "$tempest_placement_min_microversion" == "None" ]; then inicomment $TEMPEST_CONFIG placement min_microversion else