Merge "Add new config option for nova policy available defaults"

This commit is contained in:
Zuul
2025-08-01 04:21:38 +00:00
committed by Gerrit Code Review
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
---
features:
- |
A new config option ``nova_policy_roles`` is added in the
``compute-feature-enabled`` section. This can be used to
configure the available roles that are used as default in
nova policy rules.

View File

@@ -627,6 +627,14 @@ ComputeFeaturesGroup = [
cfg.BoolOpt('unified_limits',
default=False,
help='Does the test environment support unified limits?'),
cfg.ListOpt('nova_policy_roles',
default=['admin', 'member', 'reader'],
help='Compute service API policies roles list. List all the '
'roles which are used as default in Nova policy rules. '
'This config option value is used to run the tests with '
'the available roles in Nova. For example, if manager '
'role is not present in the nova release then tempest '
'will use old defaults role token to call nova APIs'),
]