8 1. [Overview - What is the cinder module?](#overview)
9 2. [Module Description - What does the module do?](#module-description)
10 3. [Setup - The basics of getting started with cinder](#setup)
11 4. [Implementation - An under-the-hood peek at what the module is doing](#implementation)
12 5. [Limitations - OS compatibility, etc.](#limitations)
13 6. [Development - Guide for contributing to the module](#development)
14 7. [Contributors - Those with commits](#contributors)
15 8. [Release Notes - Notes on the most recent updates to the module](#release-notes)
20 The cinder module is a part of [Stackforge](https://github.com/stackfoge), an effort by the Openstack infrastructure team to provide continuous integration testing and code review for Openstack and Openstack community projects not part of the core software. The module its self is used to flexibly configure and manage the block storage service for Openstack.
25 The cinder module is a thorough attempt to make Puppet capable of managing the entirety of cinder. This includes manifests to provision such things as keystone endpoints, RPC configurations specific to cinder, and database connections. Types are shipped as part of the cinder module to assist in manipulation of configuration files.
27 This module is tested in combination with other modules needed to build and leverage an entire Openstack software stack. These modules can be found, all pulled together in the [openstack module](https://github.com/stackfoge/puppet-openstack).
32 **What the cinder module affects**
34 * cinder, the block storage service for Openstack.
38 puppet module install puppetlabs/cinder
40 ### Beginning with cinder
42 To utilize the cinder module's functionality you will need to declare multiple resources. The following is a modified excerpt from the [openstack module](https://github.com/stackfoge/puppet-openstack). This is not an exhaustive list of all the components needed, we recommend you consult and understand the [openstack module](https://github.com/stackforge/puppet-openstack) and the [core openstack](http://docs.openstack.org) documentation.
44 **Define a cinder control node**
48 database_connection => 'mysql://cinder:secret_block_password@openstack-controller.example.com/cinder',
49 rabbit_password => 'secret_rpc_password_for_blocks',
50 rabbit_host => 'openstack-controller.example.com',
54 class { 'cinder::api':
55 keystone_password => $keystone_password,
56 keystone_enabled => $keystone_enabled,
57 keystone_user => $keystone_user,
58 keystone_auth_host => $keystone_auth_host,
59 keystone_auth_port => $keystone_auth_port,
60 keystone_auth_protocol => $keystone_auth_protocol,
61 service_port => $keystone_service_port,
62 package_ensure => $cinder_api_package_ensure,
63 bind_host => $cinder_bind_host,
64 enabled => $cinder_api_enabled,
67 class { 'cinder::scheduler':
68 scheduler_driver => 'cinder.scheduler.simple.SimpleScheduler',
72 **Define a cinder storage node**
76 database_connection => 'mysql://cinder:secret_block_password@openstack-controller.example.com/cinder',
77 rabbit_password => 'secret_rpc_password_for_blocks',
78 rabbit_host => 'openstack-controller.example.com',
82 class { 'cinder::volume': }
84 class { 'cinder::volume::iscsi':
85 iscsi_ip_address => '10.0.0.2',
89 **Define a cinder storage node with multiple backends **
93 database_connection => 'mysql://cinder:secret_block_password@openstack-controller.example.com/cinder',
94 rabbit_password => 'secret_rpc_password_for_blocks',
95 rabbit_host => 'openstack-controller.example.com',
99 class { 'cinder::volume': }
101 cinder::backend::iscsi {'iscsi1':
102 iscsi_ip_address => '10.0.0.2',
105 cinder::backend::iscsi {'iscsi2':
106 iscsi_ip_address => '10.0.0.3',
109 cinder::backend::iscsi {'iscsi3':
110 iscsi_ip_address => '10.0.0.4',
111 volume_backend_name => 'iscsi',
114 cinder::backend::iscsi {'iscsi4':
115 iscsi_ip_address => '10.0.0.5',
116 volume_backend_name => 'iscsi',
119 cinder::backend::rbd {'rbd-images':
120 rbd_pool => 'images',
121 rbd_user => 'images',
124 # Cinder::Type requires keystone credentials
126 os_password => 'admin',
127 os_tenant_name => 'admin',
128 os_username => 'admin',
129 os_auth_url => 'http://127.0.0.1:5000/v2.0/',
132 cinder::type {'iscsi':
133 set_key => 'volume_backend_name',
134 set_value => ['iscsi1', 'iscsi2', 'iscsi']
138 set_key => 'volume_backend_name',
139 set_value => 'rbd-images',
142 class { 'cinder::backends':
143 enabled_backends => ['iscsi1', 'iscsi2', 'rbd-images']
147 Note: that the name passed to any backend resource must be unique accross all backends otherwise a duplicate resource will be defined.
149 ** Using type and type_set **
151 Cinder allows for the usage of type to set extended information that can be used for various reasons. We have resource provider for ``type`` and ``type_set`` Since types are rarely defined with out also setting attributes with it, the resource for ``type`` can also call ``type_set`` if you pass ``set_key`` and ``set_value``
159 cinder is a combination of Puppet manifest and ruby code to delivery configuration and extra functionality through types and providers.
164 * Setup of storage nodes is limited to Linux and LVM, i.e. Puppet won't configure a Nexenta appliance but nova can be configured to use the Nexenta driver with Class['cinder::volume::nexenta'].
169 Developer documentation for the entire puppet-openstack project.
171 * https://wiki.openstack.org/wiki/Puppet-openstack#Developer_documentation
176 * https://github.com/stackforge/puppet-cinder/graphs/contributors
183 * Service Validation for Cinder-API
184 * Automates generation of NFS config file
185 * spec: pin rspec-puppet to 1.0.1
186 * Switch to using the new SolidFire driver name
187 * Makes kombu_ssl_* parameters optional when rabbit_use_ssl => true
189 * Create type-key only if it doesn't exist
190 * use lioadm on Fedora
191 * Pin puppetlabs-concat to 1.2.1 in fixtures
192 * Add nfs_mount_options variable when backend is NetApp
193 * Change default MySQL collate to utf8_general_ci
194 * Add configuration helpers for Quobyte
195 * Implement HP 3par iscsi backend module
196 * Update .gitreview file for project rename
200 * Stable Juno release
201 * Added class to manage policy.json
202 * Changed the default value of the san_thin_provision parameter for eqlx
203 * Added database tuning parameters
204 * Made keystone user creation optional when creating a service
205 * Added ability to hide secrets from logs
206 * Added parameters for netapp and and cinder-api workers
207 * Corrected the package name for cinder backup
208 * Added support for the EMC VNX direct driver
209 * Migrated the mysql backend to use openstacklib::db::mysql
210 * Added support for availability zones
214 * Added parameters to set cinder volume driver
215 * Added class for extended logging options
216 * Added option to specify endpoint protocol
217 * Fixed cinder type path issues
218 * Added option to specify cinder volume path
219 * Fixed targetcli package dependency on target service
220 * Fixed os version fact comparison for RedHat-based operating systems
221 for specifying service provider
222 * Added option to configure os_region_name in the cinder config
226 * Added Cinder v2 endpoint support.
227 * Added SSL support for Cinder API.
228 * Added RabbitMQ SSL support.
229 * Moved default_volume_type to cinder::api
230 * Removed warnings for existing Cinder volumes.
235 * Stable Icehouse release.
236 * Updated NetApp unified driver config options.
237 * Updated support for latest RabbitMQ module.
238 * Added Glance support.
239 * Added GlusterFS driver support.
240 * Added region support.
241 * Added support for MySQL module (>= 2.2).
242 * Added support for Swift and Ceph backup backend.
243 * Added cinder::config to handle additional custom options.
244 * Refactored duplicate code for single and multiple backends.
245 * Removed control exchange flag.
246 * Removed deprecated cinder::base class.
250 * Fixed resource duplication bug.
254 * Added default_volume_type as a Cinder API parameter.
255 * Added parameter for endpoint procols.
256 * Deprecated glance_api_version.
257 * Added support for VMDK.
258 * Added support for Cinder multi backend.
259 * Added support for https authentication endpoints.
260 * Replaced pip with native package manager (VMDK).
264 * Major release for OpenStack Havana.
265 * Added support for SolidFire.
266 * Added support for ceilometer.
267 * Fixed bug for cinder-volume requirement.
271 * Added support for rate limiting via api-paste.ini
272 * Added support to configure control_exchange.
273 * Added parameter check to enable or disable db_sync.
274 * Added syslog support.
275 * Added default auth_uri setting for auth token.
276 * Set package defaults to present.
277 * Fixed a bug to create empty init script when necessary.
278 * Various lint fixes.
282 * Added configuration of Cinder quotas.
283 * Added support for NetApp direct driver backend.
284 * Added support for ceph backend.
285 * Added support for SQL idle timeout.
286 * Added support for RabbitMQ clustering with single IP.
287 * Fixed allowed_hosts/database connection bug.
288 * Fixed lvm2 setup failure for Ubuntu.
289 * Removed unnecessary mysql::server dependency.
290 * Pinned RabbitMQ and database module versions.
291 * Various lint and bug fixes.
295 * Upstream is now part of stackfoge.
296 * Nexenta, NFS, and SAN support added as cinder volume drivers.
297 * Postgres support added.
298 * The Apache Qpid and the RabbitMQ message brokers available as RPC backends.
299 * Configurability of scheduler_driver.
300 * Various cleanups and bug fixes.