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 commit204a8b398d
) (cherry picked from commit1a0803fa9c
)
This commit is contained in:
parent
ed67f9b12a
commit
41830c41a7
@ -177,7 +177,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 {
|
||||
|
@ -62,7 +62,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
|
||||
@ -99,7 +99,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