From 2f1e501325b1d49928840806f16864087f8f15dd Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Mon, 7 Oct 2019 17:29:28 +0000 Subject: [PATCH] Cap max microversions for stable/train This commit cap the max microversions for compute and volume API for stable/train. Compute- https://opendev.org/openstack/nova/src/commit/6b177d42c7a0918018645033b6325b710f8fb925/nova/api/openstack/compute/rest_api_version_history.rst#279-maximum-in-train Volume- https://opendev.org/openstack/cinder/src/commit/ad5342445060bc63cb46531c21f27202bea78905/cinder/api/openstack/rest_api_version_history.rst#359-maximum-in-stein-and-train Placement - https://opendev.org/openstack/placement/src/commit/dbd03867118ee059b39be7677b8881b0f1a0b9c8/placement/rest_api_version_history.rst#136---support-same_subtree-queryparam-on-get-allocation_candidates Change-Id: I5fe683256301bf1a00bc15733f8c7093853123f2 --- lib/tempest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tempest b/lib/tempest index 96c9ced14a..ab39eba982 100644 --- a/lib/tempest +++ b/lib/tempest @@ -376,7 +376,7 @@ function configure_tempest { # 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.79"} # 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 @@ -473,7 +473,7 @@ function configure_tempest { fi iniset $TEMPEST_CONFIG volume-feature-enabled extend_attached_volume $(trueorfalse False TEMPEST_EXTEND_ATTACHED_VOLUME) 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.59"} # Reset microversions to None where v2 is running which does not support microversion. # Both "None" means no microversion testing. if [[ "$TEMPEST_VOLUME_TYPE" == "volumev2" ]]; then @@ -534,7 +534,7 @@ function configure_tempest { # 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.36"} if [ "$tempest_placement_min_microversion" == "None" ]; then inicomment $TEMPEST_CONFIG placement min_microversion else