Fix gate: Add feature flag for nova policies removed in Wallaby
This patch set adds a new feature flag called
``removed_nova_policies_wallaby`` under the configuration
group ``[policy-feature-enabled]`` for skipping Nova
tests whose policies were removed in Wallaby. This feature flag
is currently applied to os-agents which is removed in nova
recently - https://review.opendev.org/#/c/749309
Change-Id: Iaa0ddbdca454b93bd8373ce749603f28c5c59180
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index 32c6562..10c44c0 100644
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -48,6 +48,10 @@
# These policies were removed in Ussuri but are available in Pike.
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_ussuri False
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_victoria False
+
+ # TODO(gmann): Remove these once stable/victoria becomes EOL.
+ # These policies were removed in Wallaby.
+ iniset $TEMPEST_CONFIG policy-feature-enabled removed_nova_policies_wallaby False
fi
if [[ ${DEVSTACK_SERIES} == 'queens' ]]; then
@@ -76,6 +80,10 @@
# These policies were removed in Ussuri but are available in Queens.
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_ussuri False
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_victoria False
+
+ # TODO(gmann): Remove these once stable/victoria becomes EOL.
+ # These policies were removed in Wallaby.
+ iniset $TEMPEST_CONFIG policy-feature-enabled removed_nova_policies_wallaby False
fi
if [[ ${DEVSTACK_SERIES} == 'rocky' ]]; then
@@ -94,6 +102,10 @@
# These policies were removed in Ussuri but are available in Rocky.
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_ussuri False
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_victoria False
+
+ # TODO(gmann): Remove these once stable/victoria becomes EOL.
+ # These policies were removed in Wallaby.
+ iniset $TEMPEST_CONFIG policy-feature-enabled removed_nova_policies_wallaby False
fi
if [[ ${DEVSTACK_SERIES} == 'stein' ]]; then
@@ -107,17 +119,33 @@
# These policies were removed in Ussuri but are available in Stein.
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_ussuri False
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_victoria False
+
+ # TODO(gmann): Remove these once stable/victoria becomes EOL.
+ # These policies were removed in Wallaby.
+ iniset $TEMPEST_CONFIG policy-feature-enabled removed_nova_policies_wallaby False
fi
if [[ ${DEVSTACK_SERIES} == 'train' ]]; then
# Remove this once stable/train becomes EOL.
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_ussuri False
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_victoria False
+ # TODO(gmann): Remove these once stable/victoria becomes EOL.
+ # These policies were removed in Wallaby.
+ iniset $TEMPEST_CONFIG policy-feature-enabled removed_nova_policies_wallaby False
fi
if [[ ${DEVSTACK_SERIES} == 'ussuri' ]]; then
# Remove this once stable/ussuri becomes EOL.
iniset $TEMPEST_CONFIG policy-feature-enabled changed_nova_policies_victoria False
+ # TODO(gmann): Remove these once stable/victoria becomes EOL.
+ # These policies were removed in Wallaby.
+ iniset $TEMPEST_CONFIG policy-feature-enabled removed_nova_policies_wallaby False
+ fi
+
+ if [[ ${DEVSTACK_SERIES} == 'victoria' ]]; then
+ # TODO(gmann): Remove these once stable/victoria becomes EOL.
+ # These policies were removed in Wallaby.
+ iniset $TEMPEST_CONFIG policy-feature-enabled removed_nova_policies_wallaby False
fi
iniset $TEMPEST_CONFIG patrole rbac_test_roles $RBAC_TEST_ROLES