Set 'tenant_name_discovery' parameter in 'polling' section
As of now 'tenant_name_discovery'[1] is being configured in 'DEFAULT' section in ceilometer config file.
As per Ceilometer this must be configured as a polling option[2].
[1] https://github.com/openstack/ceilometer/blob/master/ceilometer/polling/manager.py#L69-L80
[2] https://github.com/openstack/ceilometer/blob/master/ceilometer/opts.py#L98
Change-Id: Ib5c273df325f5ed0dccf7f45a9c7a91aba9568c3
(cherry picked from commit 204a8b398d
)
This commit is contained in:
parent
57a17b9071
commit
1a0803fa9c
@ -218,7 +218,12 @@ class ceilometer::agent::polling (
|
||||
|
||||
ceilometer_config {
|
||||
'polling/batch_size': value => $batch_size;
|
||||
'DEFAULT/tenant_name_discovery': value => $tenant_name_discovery;
|
||||
'polling/tenant_name_discovery': value => $tenant_name_discovery;
|
||||
}
|
||||
|
||||
# TODO(tkajinam): Remove this after 2024.1 release
|
||||
ceilometer_config {
|
||||
'DEFAULT/tenant_name_discovery': ensure => absent;
|
||||
}
|
||||
|
||||
if $manage_service {
|
||||
|
@ -72,7 +72,7 @@ describe 'ceilometer::agent::polling' do
|
||||
|
||||
it { should contain_ceilometer_config('polling/batch_size').with_value('<SERVICE DEFAULT>') }
|
||||
it { should_not contain_file('polling') }
|
||||
it { should contain_ceilometer_config('DEFAULT/tenant_name_discovery').with_value('<SERVICE DEFAULT>') }
|
||||
it { should contain_ceilometer_config('polling/tenant_name_discovery').with_value('<SERVICE DEFAULT>') }
|
||||
end
|
||||
|
||||
context 'when setting package_ensure' do
|
||||
@ -109,7 +109,7 @@ describe 'ceilometer::agent::polling' do
|
||||
end
|
||||
|
||||
it {
|
||||
should contain_ceilometer_config('DEFAULT/tenant_name_discovery').with_value(true)
|
||||
should contain_ceilometer_config('polling/tenant_name_discovery').with_value(true)
|
||||
}
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user