
During the refactoring of the conductor_workers parameter from nova::api to nova::conductor, the conductor_workers default changed from $::processorcount to the parameter being absent. While this is consistent with the nova default behaviour, it changes the value for people who currently have a different default set. The solution is to do nothing, in case no value is given. For reference see: https://review.openstack.org/#/c/106656 https://review.openstack.org/#/c/108941 http://docs.openstack.org/trunk/config-reference/content/list-of-compute-config-options.html Change-Id: I908fc4953522f0b1db8f43882a44407aba9fa9f9
48 lines
1.1 KiB
Ruby
48 lines
1.1 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'nova::conductor' do
|
|
|
|
let :pre_condition do
|
|
'include nova'
|
|
end
|
|
|
|
context 'on Debian platforms' do
|
|
let :facts do
|
|
{ :osfamily => 'Debian' }
|
|
end
|
|
|
|
it_behaves_like 'generic nova service', {
|
|
:name => 'nova-conductor',
|
|
:package_name => 'nova-conductor',
|
|
:service_name => 'nova-conductor' }
|
|
|
|
it { should_not contain_nova_config('conductor/workers') }
|
|
|
|
describe 'when overriding params' do
|
|
let :params do
|
|
{:workers => '5' }
|
|
end
|
|
it { should contain_nova_config('conductor/workers').with_value('5') }
|
|
end
|
|
end
|
|
|
|
context 'on RedHat platforms' do
|
|
let :facts do
|
|
{ :osfamily => 'RedHat' }
|
|
end
|
|
|
|
it_behaves_like 'generic nova service', {
|
|
:name => 'nova-conductor',
|
|
:package_name => 'openstack-nova-conductor',
|
|
:service_name => 'openstack-nova-conductor' }
|
|
it { should_not contain_nova_config('conductor/workers') }
|
|
|
|
describe 'when overriding params' do
|
|
let :params do
|
|
{:workers => '5' }
|
|
end
|
|
it { should contain_nova_config('conductor/workers').with_value('5') }
|
|
end
|
|
end
|
|
end
|