Add attributes for cinder quotas

Add a few more quota attributes
* quota_snapshots
* no_snapshot_gb_quota
* use_default_quota_class

Change-Id: Ib621218b5ac67dca536ce18d587fc70e3068faf3
Closes-Bug: #1367403
This commit is contained in:
Mark Vanderwiel 2014-09-09 14:22:14 -05:00
parent 43553e0e17
commit 5d0aac6578
4 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,8 @@ This file is used to list changes made in each version of the openstack-block-st
# Update cinder.conf mode from 0644 to 0640
* Add attribute for ibmnas_platform_type
* Add attributes for quota_snapshots, no_snapshot_gb_quota and use_default_quota_class
## 10.0.0
* Upgrading to Juno
* Sync conf files with Juno

View File

@ -83,6 +83,9 @@ default['openstack']['block-storage']['storage_availability_zone'] = 'nova'
default['openstack']['block-storage']['quota_volumes'] = '10'
default['openstack']['block-storage']['quota_gigabytes'] = '1000'
default['openstack']['block-storage']['quota_driver'] = 'cinder.quota.DbQuotaDriver'
default['openstack']['block-storage']['quota_snapshots'] = 10
default['openstack']['block-storage']['no_snapshot_gb_quota'] = false
default['openstack']['block-storage']['use_default_quota_class'] = true
# Common rpc definitions
default['openstack']['block-storage']['rpc_thread_pool_size'] = 64

View File

@ -137,6 +137,7 @@ describe 'openstack-block-storage::cinder-common' do
%w(debug verbose lock_path notification_driver
storage_availability_zone quota_volumes quota_gigabytes quota_driver
volume_name_template snapshot_name_template osapi_volume_workers
use_default_quota_class quota_snapshots no_snapshot_gb_quota
control_exchange max_gigabytes).each do |attr_key|
it "has a #{attr_key} attribute" do
node.set['openstack']['block-storage'][attr_key] = "#{attr_key}_value"

View File

@ -201,6 +201,17 @@ quota_gigabytes=<%= node["openstack"]["block-storage"]["quota_gigabytes"] %>
quota_driver=<%= node["openstack"]["block-storage"]["quota_driver"] %>
#### (StrOpt) default driver to use for quota checks
# Number of volume snapshots allowed per project (integer
# value)
quota_snapshots=<%= node["openstack"]["block-storage"]["quota_snapshots"] %>
# Whether snapshots count against GigaByte quota (boolean
# value)
no_snapshot_gb_quota=<%= node["openstack"]["block-storage"]["no_snapshot_gb_quota"] %>
# Enables or disables use of default quota class with default
# quota. (boolean value)
use_default_quota_class=<%= node["openstack"]["block-storage"]["use_default_quota_class"] %>
######## defined in cinder.service ########