Add support for [quota] recheck_quota

Change-Id: I7e1277c2def8df2512cb08021d20365ef6bc3b9f
This commit is contained in:
Takashi Kajinami
2022-04-10 18:53:39 +09:00
parent 54d7f05aa1
commit d927147bd1
3 changed files with 13 additions and 0 deletions

View File

@@ -48,6 +48,11 @@
# (optional) Number of servers per server group
# Defaults to $::os_service_default
#
# [*recheck_quota*]
# (optional) Recheck quota after resource creation to prevent allowing
# quota to be exceeded.
# Defaults to $::os_service_default
#
# DEPRECATED PARAMETERS
#
# [*reservation_expire*]
@@ -90,6 +95,7 @@ class nova::quota(
$key_pairs = $::os_service_default,
$server_groups = $::os_service_default,
$server_group_members = $::os_service_default,
$recheck_quota = $::os_service_default,
# DEPRECATED PARAMETERS
$reservation_expire = undef,
$until_refresh = undef,
@@ -128,6 +134,7 @@ class nova::quota(
'quota/key_pairs': value => $key_pairs;
'quota/server_groups': value => $server_groups;
'quota/server_group_members': value => $server_group_members;
'quota/recheck_quota': value => $recheck_quota;
}
nova_config {

View File

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

View File

@@ -17,6 +17,7 @@ describe 'nova::quota' do
:key_pairs => '<SERVICE DEFAULT>',
:server_groups => '<SERVICE DEFAULT>',
:server_group_members => '<SERVICE DEFAULT>',
:recheck_quota => '<SERVICE DEFAULT>',
}
end
@@ -50,6 +51,7 @@ describe 'nova::quota' do
:key_pairs => 200,
:server_groups => 20,
:server_group_members => 20,
:recheck_quota => true,
})
end