Restore NoopQuotaDriver in child cell with CellsV1

It is still required to disable quota checking in child cells.

Change-Id: Icf0dc0ad8040a54147fd03f790825760b2c1a3f3
Closes-bug: #1738035
This commit is contained in:
Mathieu Gagné 2017-12-13 11:17:46 -05:00
parent 9606525df2
commit 027a7d35ac
3 changed files with 7 additions and 0 deletions

View File

@ -171,6 +171,7 @@ class nova::cells (
nova_config { 'cells/cell_type': value => 'api' }
}
'child': {
nova_config { 'DEFAULT/quota_driver': value => 'nova.quota.NoopQuotaDriver' }
nova_config { 'cells/cell_type': value => 'compute' }
}
default: { fail("Unsupported cell_type parameter value: '${cell_type}'. Should be 'parent' or 'child'.") }

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Restore NoopQuotaDriver quota_driver in child cell with CellsV1
as it is still required to disable quota checking in child cells.

View File

@ -132,6 +132,7 @@ describe 'nova::cells' do
end
it { is_expected.to contain_nova_config('cells/name').with_value(expected_params[:cell_name]) }
it { is_expected.to contain_nova_config('cells/cell_type').with_value('compute')}
it { is_expected.to contain_nova_config('DEFAULT/quota_driver').with_value('nova.quota.NoopQuotaDriver')}
it_configures 'nova-cells'
end