Correct section for cell_type nova.conf parameter
Move the cell_type parameter to the [cells] section, from the [DEFAULT] section. Change-Id: I711aa640726cba76a0cb64ae685b9c3e282f8395 Closes-bug: 1403174
This commit is contained in:
@@ -171,11 +171,11 @@ class nova::cells (
|
|||||||
case $cell_type {
|
case $cell_type {
|
||||||
'parent': {
|
'parent': {
|
||||||
nova_config { 'DEFAULT/compute_api_class': value => 'nova.compute.cells_api.ComputeCellsAPI' }
|
nova_config { 'DEFAULT/compute_api_class': value => 'nova.compute.cells_api.ComputeCellsAPI' }
|
||||||
nova_config { 'DEFAULT/cell_type': value => 'api' }
|
nova_config { 'cells/cell_type': value => 'api' }
|
||||||
}
|
}
|
||||||
'child': {
|
'child': {
|
||||||
nova_config { 'DEFAULT/quota_driver': value => 'nova.quota.NoopQuotaDriver' }
|
nova_config { 'DEFAULT/quota_driver': value => 'nova.quota.NoopQuotaDriver' }
|
||||||
nova_config { 'DEFAULT/cell_type': value => 'compute' }
|
nova_config { 'cells/cell_type': value => 'compute' }
|
||||||
}
|
}
|
||||||
default: { fail("Unsupported cell_type parameter value: '${cell_type}'. Should be 'parent' or 'child'.") }
|
default: { fail("Unsupported cell_type parameter value: '${cell_type}'. Should be 'parent' or 'child'.") }
|
||||||
}
|
}
|
||||||
|
@@ -107,6 +107,7 @@ describe 'nova::cells' do
|
|||||||
end
|
end
|
||||||
it { should contain_nova_config('cells/name').with_value(expected_params[:cell_name]) }
|
it { should contain_nova_config('cells/name').with_value(expected_params[:cell_name]) }
|
||||||
it { should contain_nova_config('DEFAULT/compute_api_class').with_value('nova.compute.cells_api.ComputeCellsAPI')}
|
it { should contain_nova_config('DEFAULT/compute_api_class').with_value('nova.compute.cells_api.ComputeCellsAPI')}
|
||||||
|
it { should contain_nova_config('cells/cell_type').with_value('api')}
|
||||||
it_configures 'nova-cells'
|
it_configures 'nova-cells'
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -134,6 +135,7 @@ describe 'nova::cells' do
|
|||||||
end
|
end
|
||||||
it { should contain_nova_config('cells/name').with_value(expected_params[:cell_name]) }
|
it { should contain_nova_config('cells/name').with_value(expected_params[:cell_name]) }
|
||||||
it { should contain_nova_config('DEFAULT/quota_driver').with_value('nova.quota.NoopQuotaDriver')}
|
it { should contain_nova_config('DEFAULT/quota_driver').with_value('nova.quota.NoopQuotaDriver')}
|
||||||
|
it { should contain_nova_config('cells/cell_type').with_value('compute')}
|
||||||
it_configures 'nova-cells'
|
it_configures 'nova-cells'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user