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
This commit is contained in:

committed by
Takashi Kajinami

parent
a3cb04d142
commit
204a8b398d
@@ -209,7 +209,12 @@ class ceilometer::agent::polling (
|
|||||||
|
|
||||||
ceilometer_config {
|
ceilometer_config {
|
||||||
'polling/batch_size': value => $batch_size;
|
'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 {
|
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 contain_ceilometer_config('polling/batch_size').with_value('<SERVICE DEFAULT>') }
|
||||||
it { should_not contain_file('polling') }
|
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
|
end
|
||||||
|
|
||||||
context 'when setting package_ensure' do
|
context 'when setting package_ensure' do
|
||||||
@@ -109,7 +109,7 @@ describe 'ceilometer::agent::polling' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it {
|
it {
|
||||||
should contain_ceilometer_config('DEFAULT/tenant_name_discovery').with_value(true)
|
should contain_ceilometer_config('polling/tenant_name_discovery').with_value(true)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user