From ef784e195f85fe4ab28eb0c115e49a63cb3db76a Mon Sep 17 00:00:00 2001 From: elajkat Date: Tue, 12 Jan 2021 13:14:25 +0100 Subject: [PATCH] Setting available_features for stable branch available_features for Neutron tempest tests is default to "all" and used from Victoria to enable/disable tests that has no API extension. It is added here to make sure that stable gating will not execute these tests (like for IPv6 metadata in neutron-tempest-plugin or updating min_bw QoS values for port already attached to VMs) Cherry-picked from stable/victoria patch (https://review.opendev.org/c/openstack/devstack/+/769885), but the list for available_features is empty on Ussuri. Change-Id: Ic6056218e51e6b0da554bcdf139214d2229ba3c1 Related-Bug: #1882804 (cherry picked from commit e34a8720bfb263a0b4d585929ef9f035c3ba0f36) --- lib/tempest | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/tempest b/lib/tempest index e26ccf06ce..a5c961bc85 100644 --- a/lib/tempest +++ b/lib/tempest @@ -696,6 +696,17 @@ function configure_tempest { object_storage_api_extensions=$(remove_disabled_extensions $object_storage_api_extensions $DISABLE_STORAGE_API_EXTENSIONS) fi iniset $TEMPEST_CONFIG object-storage-feature-enabled discoverable_apis $object_storage_api_extensions + + # This feature list for Neutron used from Victoria, the aim is to skip tests + # for features in Neutron that has no API extension, or can't be detected + # otherwise from the API. + # It is added here to avoid stable gating to run these tests (like for IPv6 metadata + # in neutron-tempest-plugin or updating min_bw QoS values for ports already attached + # to VMs). + # To check new features grep neutron-tempest-plugin and tempest for + # is_network_feature_enabled, and please check with Neutron team. + local network_available_features="" + iniset $TEMPEST_CONFIG network-feature-enabled available_features $network_available_features # Cinder API Extensions DEFAULT_VOL_EXT="OS-SCH-HNT,backups,capabilities,cgsnapshots,consistencygroups" DEFAULT_VOL_EXT+=",encryption,os-admin-actions,os-availability-zone"