Merge "Add rpc_response_timeout option"
This commit is contained in:
commit
f799c2df05
@ -41,6 +41,10 @@
|
||||
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*rpc_response_timeout*]
|
||||
# (Optional) Seconds to wait for a response from a call.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*control_exchange*]
|
||||
# (Optional) The default exchange under which topics are scope.
|
||||
# Defaults to 'openstack'.
|
||||
@ -252,6 +256,7 @@ class manila (
|
||||
$database_max_overflow = undef,
|
||||
$rpc_backend = 'rabbit',
|
||||
$default_transport_url = $::os_service_default,
|
||||
$rpc_response_timeout = $::os_service_default,
|
||||
$control_exchange = 'openstack',
|
||||
$notification_transport_url = $::os_service_default,
|
||||
$notification_driver = 'messaging',
|
||||
@ -386,6 +391,7 @@ deprecated. Please use manila::default_transport_url instead.")
|
||||
|
||||
oslo::messaging::default { 'manila_config':
|
||||
transport_url => $default_transport_url,
|
||||
rpc_response_timeout => $rpc_response_timeout,
|
||||
control_exchange => $control_exchange,
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- Add new parameter "rpc_response_timeout", seconds to wait for a
|
||||
response from a call
|
@ -33,6 +33,9 @@ describe 'manila' do
|
||||
is_expected.to contain_manila_config('DEFAULT/transport_url').with(
|
||||
:value => '<SERVICE DEFAULT>'
|
||||
)
|
||||
is_expected.to contain_manila_config('DEFAULT/rpc_response_timeout').with(
|
||||
:value => '<SERVICE DEFAULT>'
|
||||
)
|
||||
is_expected.to contain_manila_config('oslo_messaging_notifications/transport_url').with(
|
||||
:value => '<SERVICE DEFAULT>'
|
||||
)
|
||||
@ -278,11 +281,15 @@ describe 'manila' do
|
||||
let :params do
|
||||
{
|
||||
:default_transport_url => 'rabbit://rabbit_user:password@localhost:5673',
|
||||
:rpc_response_timeout => '120',
|
||||
:control_exchange => 'manila',
|
||||
:notification_transport_url => 'rabbit://rabbit_user:password@localhost:5673',
|
||||
}
|
||||
end
|
||||
|
||||
it { is_expected.to contain_manila_config('DEFAULT/transport_url').with_value('rabbit://rabbit_user:password@localhost:5673') }
|
||||
it { is_expected.to contain_manila_config('DEFAULT/rpc_response_timeout').with_value('120') }
|
||||
it { is_expected.to contain_manila_config('DEFAULT/control_exchange').with_value('manila') }
|
||||
it { is_expected.to contain_manila_config('oslo_messaging_notifications/transport_url').with_value('rabbit://rabbit_user:password@localhost:5673') }
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user