Merge "Add support for [quota] count_usage_from_placement"

This commit is contained in:
Zuul 2022-09-19 09:15:25 +00:00 committed by Gerrit Code Review
commit 7129762029
3 changed files with 13 additions and 0 deletions

View File

@ -53,6 +53,10 @@
# quota to be exceeded.
# Defaults to $::os_service_default
#
# [*count_usage_from_placement*]
# (optional Enable the counting of quota usage from the placement service.
# Defaults to $::os_service_default
#
class nova::quota(
$driver = $::os_service_default,
$instances = $::os_service_default,
@ -66,6 +70,7 @@ class nova::quota(
$server_groups = $::os_service_default,
$server_group_members = $::os_service_default,
$recheck_quota = $::os_service_default,
$count_usage_from_placement = $::os_service_default,
) {
include nova::deps
@ -83,5 +88,6 @@ class nova::quota(
'quota/server_groups': value => $server_groups;
'quota/server_group_members': value => $server_group_members;
'quota/recheck_quota': value => $recheck_quota;
'quota/count_usage_from_placement': value => $count_usage_from_placement;
}
}

View File

@ -0,0 +1,5 @@
---
features:
- |
The new ``nova::quota::count_usage_from_placement`` parameter has been
added.

View File

@ -18,6 +18,7 @@ describe 'nova::quota' do
:server_groups => '<SERVICE DEFAULT>',
:server_group_members => '<SERVICE DEFAULT>',
:recheck_quota => '<SERVICE DEFAULT>',
:count_usage_from_placement => '<SERVICE DEFAULT>',
}
end
@ -52,6 +53,7 @@ describe 'nova::quota' do
:server_groups => 20,
:server_group_members => 20,
:recheck_quota => true,
:count_usage_from_placement => false,
})
end