blob: 5e1f64522a0ae416d0a772255e82af597f66e956 [file] [log] [blame]
OlgaGusarenko74b53f22018-06-28 17:35:48 +03001=====
2Usage
3=====
Filip Pytlounda2a0792015-10-06 16:28:31 +02004
OlgaGusarenko74b53f22018-06-28 17:35:48 +03005Cinder provides an infrastructure for managing volumes in OpenStack.
6Originally, this project was the Nova component called ``nova-volume``
7and starting from the Folsom OpenStack release it has become an independent
8project.
Filip Pytlounda2a0792015-10-06 16:28:31 +02009
OlgaGusarenko74b53f22018-06-28 17:35:48 +030010This file provides the sample configurations for different use cases:
Filip Pytlounda2a0792015-10-06 16:28:31 +020011
OlgaGusarenko74b53f22018-06-28 17:35:48 +030012* Pillar sample of a basic Cinder configuration:
Filip Pytlounda2a0792015-10-06 16:28:31 +020013
OlgaGusarenko74b53f22018-06-28 17:35:48 +030014 The pillar structure defines ``cinder-api`` and ``cinder-scheduler`` inside
15 the ``controller`` role and ``cinder-volume`` inside the to ``volume``
16 role.
17
18 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +020019
20 cinder:
21 controller:
22 enabled: true
23 version: juno
Dmitry Stremkovskiy9f4ac8b2017-07-11 09:48:46 +030024 cinder_uid: 304
25 cinder_gid: 304
Dmitry Stremkovskiyef4c7d02017-07-30 16:51:52 +030026 nas_secure_file_permissions: false
27 nas_secure_file_operations: false
Dmitry Stremkovskiya5dd7992017-07-30 19:54:23 +030028 cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef
29 cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010030 default_volume_type: 7k2SaS
stelucz1f3a82f2017-09-19 18:38:13 +020031 enable_force_upload: true
Damian Szeluga0918f5a2017-04-19 12:26:56 +020032 availability_zone_fallback: True
Filip Pytlounda2a0792015-10-06 16:28:31 +020033 database:
34 engine: mysql
35 host: 127.0.0.1
36 port: 3306
37 name: cinder
38 user: cinder
39 password: pwd
40 identity:
41 engine: keystone
42 host: 127.0.0.1
43 port: 35357
44 tenant: service
45 user: cinder
46 password: pwd
47 message_queue:
48 engine: rabbitmq
49 host: 127.0.0.1
50 port: 5672
51 user: openstack
52 password: pwd
53 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010054 backend:
55 7k2_SAS:
56 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +010057 type_name: slow-disks
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010058 host: 192.168.0.1
59 port: 22
60 user: username
61 password: pass
62 connection: FC/iSCSI
63 multihost: true
64 multipath: true
65 pool: SAS7K2
Kirill Bespalov01614c02017-07-31 17:06:09 +030066 audit:
Petr Michaleca1c7ff12016-11-29 16:32:50 +010067 enabled: false
Simon Pasquier9089de42017-02-03 16:13:22 +010068 osapi_max_limit: 500
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +030069 barbican:
70 enabled: true
Filip Pytlounda2a0792015-10-06 16:28:31 +020071
72 cinder:
73 volume:
74 enabled: true
75 version: juno
Dmitry Stremkovskiy9f4ac8b2017-07-11 09:48:46 +030076 cinder_uid: 304
77 cinder_gid: 304
Dmitry Stremkovskiyef4c7d02017-07-30 16:51:52 +030078 nas_secure_file_permissions: false
79 nas_secure_file_operations: false
Dmitry Stremkovskiya5dd7992017-07-30 19:54:23 +030080 cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef
81 cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010082 default_volume_type: 7k2SaS
stelucz1f3a82f2017-09-19 18:38:13 +020083 nable_force_upload: true
Filip Pytlounda2a0792015-10-06 16:28:31 +020084 database:
85 engine: mysql
86 host: 127.0.0.1
87 port: 3306
88 name: cinder
89 user: cinder
90 password: pwd
91 identity:
92 engine: keystone
93 host: 127.0.0.1
94 port: 35357
95 tenant: service
96 user: cinder
97 password: pwd
98 message_queue:
99 engine: rabbitmq
100 host: 127.0.0.1
101 port: 5672
102 user: openstack
103 password: pwd
104 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100105 backend:
106 7k2_SAS:
107 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100108 type_name: 7k2 SAS disk
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100109 host: 192.168.0.1
110 port: 22
111 user: username
112 password: pass
113 connection: FC/iSCSI
114 multihost: true
115 multipath: true
116 pool: SAS7K2
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100117 audit:
118 enabled: false
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300119 barbican:
120 enabled: true
Ondrej Smola74af21b2017-04-28 12:30:24 +0200121
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300122* The CORS parameters enablement:
Ondrej Smola74af21b2017-04-28 12:30:24 +0200123
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300124 .. code-block:: yaml
Ondrej Smola74af21b2017-04-28 12:30:24 +0200125
126 cinder:
127 controller:
128 cors:
129 allowed_origin: https:localhost.local,http:localhost.local
130 expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
131 allow_methods: GET,PUT,POST,DELETE,PATCH
132 allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
133 allow_credentials: True
134 max_age: 86400
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200135
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300136* The client-side RabbitMQ HA setup for the controller:
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200137
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300138 .. code-block:: yaml
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200139
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300140 cinder:
141 controller:
142 ....
143 message_queue:
144 engine: rabbitmq
145 members:
146 - host: 10.0.16.1
147 - host: 10.0.16.2
148 - host: 10.0.16.3
149 user: openstack
150 password: pwd
151 virtual_host: '/openstack'
152 ....
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200153
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300154* The client-side RabbitMQ HA setup for the volume component
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200155
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300156 .. code-block:: yaml
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200157
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300158 cinder:
159 volume:
160 ....
161 message_queue:
162 engine: rabbitmq
163 members:
164 - host: 10.0.16.1
165 - host: 10.0.16.2
166 - host: 10.0.16.3
167 user: openstack
168 password: pwd
169 virtual_host: '/openstack'
170 ....
Filip Pytlounda2a0792015-10-06 16:28:31 +0200171
Kirill Bespalov01614c02017-07-31 17:06:09 +0300172
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300173* Configuring TLS communications.
Kirill Bespalov01614c02017-07-31 17:06:09 +0300174
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300175 .. note:: By default, system-wide installed CA certs are used.
176 Therefore, the ``cacert_file`` and ``cacert`` parameters are
177 optional.
Kirill Bespalov01614c02017-07-31 17:06:09 +0300178
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300179 * RabbitMQ TLS:
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300180
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300181 .. code-block:: yaml
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300182
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300183 cinder:
184 controller, volume:
185 message_queue:
186 port: 5671
187 ssl:
188 enabled: True
189 (optional) cacert: cert body if the cacert_file does not exists
190 (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem
191 (optional) version: TLSv1_2
Kirill Bespalov01614c02017-07-31 17:06:09 +0300192
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300193 * MySQL TLS:
Kirill Bespalov01614c02017-07-31 17:06:09 +0300194
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300195 .. code-block:: yaml
Kirill Bespalov01614c02017-07-31 17:06:09 +0300196
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300197 cinder:
198 controller:
199 database:
200 ssl:
201 enabled: True
202 (optional) cacert: cert body if the cacert_file does not exists
203 (optional) cacert_file: /etc/openstack/mysql-ca.pem
Kirill Bespalov01614c02017-07-31 17:06:09 +0300204
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300205 * Openstack HTTPS API:
Kirill Bespalov01614c02017-07-31 17:06:09 +0300206
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300207 .. code-block:: yaml
Kirill Bespalov01614c02017-07-31 17:06:09 +0300208
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300209 cinder:
210 controller, volume:
211 identity:
212 protocol: https
213 (optional) cacert_file: /etc/openstack/proxy.pem
214 glance:
215 protocol: https
216 (optional) cacert_file: /etc/openstack/proxy.pem
Kirill Bespalov01614c02017-07-31 17:06:09 +0300217
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300218* Cinder setup with zeroing deleted volumes:
Kirill Bespalov01614c02017-07-31 17:06:09 +0300219
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300220 .. code-block:: yaml
Alexander Noskov62496fb2017-02-27 16:42:54 +0100221
Filip Pytlounda2a0792015-10-06 16:28:31 +0200222 cinder:
223 controller:
224 enabled: true
225 wipe_method: zero
226 ...
227
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300228* Cinder setup with shreding deleted volumes:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200229
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300230 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +0200231
232 cinder:
233 controller:
234 enabled: true
235 wipe_method: shred
236 ...
237
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300238* Configuration of ``policy.json`` file:
Dmitry Ukov56c29072017-05-04 16:48:29 +0400239
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300240 .. code-block:: yaml
Dmitry Ukov56c29072017-05-04 16:48:29 +0400241
242 cinder:
243 controller:
244 ....
245 policy:
246 'volume:delete': 'rule:admin_or_owner'
247 # Add key without value to remove line from policy.json
248 'volume:extend':
249
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300250* Default Cinder backend ``lvm_type`` setup:
sgarbuz0901ebe2018-06-13 17:16:16 +0300251
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300252 .. code-block:: yaml
sgarbuz0901ebe2018-06-13 17:16:16 +0300253
254 cinder:
255 volume:
256 enabled: true
257 backend:
258 # Type of LVM volumes to deploy; (default, thin, or auto). Auto defaults to thin if thin is supported.
259 lvm_type: auto
260
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300261* Default Cinder setup with iSCSI target:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200262
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300263 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +0200264
265 cinder:
266 controller:
267 enabled: true
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200268 version: mitaka
269 default_volume_type: lvmdriver-1
Filip Pytlounda2a0792015-10-06 16:28:31 +0200270 database:
271 engine: mysql
272 host: 127.0.0.1
273 port: 3306
274 name: cinder
275 user: cinder
276 password: pwd
277 identity:
278 engine: keystone
279 host: 127.0.0.1
280 port: 35357
281 tenant: service
282 user: cinder
283 password: pwd
284 message_queue:
285 engine: rabbitmq
286 host: 127.0.0.1
287 port: 5672
288 user: openstack
289 password: pwd
290 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100291 backend:
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200292 lvmdriver-1:
293 engine: lvm
294 type_name: lvmdriver-1
295 volume_group: cinder-volume
Filip Pytlounda2a0792015-10-06 16:28:31 +0200296
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300297* Cinder setup for IBM Storwize:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200298
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300299 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +0200300
301 cinder:
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100302 volume:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200303 enabled: true
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100304 backend:
305 7k2_SAS:
306 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100307 type_name: 7k2 SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100308 host: 192.168.0.1
309 port: 22
310 user: username
311 password: pass
312 connection: FC/iSCSI
313 multihost: true
314 multipath: true
315 pool: SAS7K2
316 10k_SAS:
317 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100318 type_name: 10k SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100319 host: 192.168.0.1
320 port: 22
321 user: username
322 password: pass
323 connection: FC/iSCSI
324 multihost: true
325 multipath: true
326 pool: SAS10K
327 15k_SAS:
328 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100329 type_name: 15k SAS
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100330 host: 192.168.0.1
331 port: 22
332 user: username
333 password: pass
334 connection: FC/iSCSI
335 multihost: true
336 multipath: true
337 pool: SAS15K
Filip Pytlounda2a0792015-10-06 16:28:31 +0200338
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300339* Cinder setup with NFS:
Jiri Broulik88548db2017-03-31 12:21:37 +0200340
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300341 .. code-block:: yaml
Jiri Broulik88548db2017-03-31 12:21:37 +0200342
343 cinder:
344 controller:
345 enabled: true
346 default_volume_type: nfs-driver
347 backend:
348 nfs-driver:
349 engine: nfs
350 type_name: nfs-driver
351 volume_group: cinder-volume
352 path: /var/lib/cinder/nfs
353 devices:
354 - 172.16.10.110:/var/nfs/cinder
355 options: rw,sync
356
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300357* Cinder setup with NetApp:
Jiri Broulik88548db2017-03-31 12:21:37 +0200358
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300359 .. code-block:: yaml
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400360
361 cinder:
362 controller:
363 backend:
364 netapp:
365 engine: netapp
366 type_name: netapp
367 user: openstack
368 vserver: vm1
369 server_hostname: 172.18.2.3
370 password: password
371 storage_protocol: nfs
372 transport_type: https
373 lun_space_reservation: enabled
374 use_multipath_for_image_xfer: True
Dmitry Stremkouskiffa53c02017-09-15 19:47:21 +0300375 nas_secure_file_operations: false
376 nas_secure_file_permissions: false
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400377 devices:
378 - 172.18.1.2:/vol_1
379 - 172.18.1.2:/vol_2
380 - 172.18.1.2:/vol_3
381 - 172.18.1.2:/vol_4
Jakub Pavlik94dc0c92017-06-14 14:53:23 +0200382 linux:
383 system:
384 package:
385 nfs-common:
386 version: latest
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400387
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300388* Cinder setup with Hitachi VPS:
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400389
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300390 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +0200391
392 cinder:
393 controller:
394 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100395 backend:
396 hus100_backend:
marcodaa52fa2016-01-25 23:49:50 +0100397 type_name: HUS100
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100398 backend: hus100_backend
399 engine: hitachi_vsp
400 connection: FC
Filip Pytlounda2a0792015-10-06 16:28:31 +0200401
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300402* Cinder setup with Hitachi VPS with defined ``ldev`` range:
Ondrej Smola16d66bd2017-01-15 13:56:03 +0100403
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300404 .. code-block:: yaml
Ondrej Smola16d66bd2017-01-15 13:56:03 +0100405
406 cinder:
407 controller:
408 enabled: true
409 backend:
410 hus100_backend:
411 type_name: HUS100
412 backend: hus100_backend
413 engine: hitachi_vsp
414 connection: FC
415 ldev_range: 0-1000
416
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300417* Cinder setup with Ceph:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200418
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300419 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +0200420
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300421 cinder:
422 controller:
423 enabled: true
424 backend:
425 ceph_backend:
426 type_name: standard-iops
427 backend: ceph_backend
428 pool: volumes
429 engine: ceph
430 user: cinder
431 secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e
432 client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
433 report_discard_supported: True
Filip Pytlounda2a0792015-10-06 16:28:31 +0200434
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300435 .. note:: `Ceph official documentation <http://ceph.com/docs/master/rbd/rbd-openstack/>`__
Filip Pytlounda2a0792015-10-06 16:28:31 +0200436
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300437* Cinder setup with HP3par:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200438
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300439 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +0200440
441 cinder:
442 controller:
443 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100444 backend:
445 hp3par_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100446 type_name: hp3par
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100447 backend: hp3par_backend
448 user: hp3paruser
449 password: something
450 url: http://10.10.10.10/api/v1
451 cpg: OpenStackCPG
452 host: 10.10.10.10
453 login: hp3paradmin
454 sanpassword: something
455 debug: True
456 snapcpg: OpenStackSNAPCPG
Filip Pytlounda2a0792015-10-06 16:28:31 +0200457
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300458* Cinder setup with Fujitsu Eternus:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200459
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300460 .. code-block:: yaml
Filip Pytlounda2a0792015-10-06 16:28:31 +0200461
462 cinder:
463 volume:
464 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100465 backend:
466 10kThinPro:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100467 type_name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100468 engine: fujitsu
469 pool: 10kThinPro
470 host: 192.168.0.1
471 port: 5988
472 user: username
473 password: pass
474 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100475 name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100476 10k_SAS:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100477 type_name: 10k_SAS
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100478 pool: SAS10K
479 engine: fujitsu
480 host: 192.168.0.1
481 port: 5988
482 user: username
483 password: pass
484 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100485 name: 10k_SAS
Filip Pytlounda2a0792015-10-06 16:28:31 +0200486
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300487* Cinder setup with IBM GPFS filesystem:
Jakub Pavlik9703c602015-10-15 18:52:47 +0200488
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300489 .. code-block:: yaml
Jakub Pavlik9703c602015-10-15 18:52:47 +0200490
491 cinder:
492 volume:
493 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100494 backend:
495 GPFS-GOLD:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100496 type_name: GPFS-GOLD
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100497 engine: gpfs
498 mount_point: '/mnt/gpfs-openstack/cinder/gold'
marcodaa52fa2016-01-25 23:49:50 +0100499 GPFS-SILVER:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100500 type_name: GPFS-SILVER
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100501 engine: gpfs
502 mount_point: '/mnt/gpfs-openstack/cinder/silver'
Kirill Bespalov01614c02017-07-31 17:06:09 +0300503
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300504* Cinder setup with HP LeftHand:
Jakub Pavlik9f5988a2016-01-11 13:44:57 +0100505
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300506 .. code-block:: yaml
Jakub Pavlik9f5988a2016-01-11 13:44:57 +0100507
508 cinder:
509 volume:
510 enabled: true
511 backend:
512 HP-LeftHand:
513 type_name: normal-storage
514 engine: hp_lefthand
515 api_url: 'https://10.10.10.10:8081/lhos'
516 username: user
517 password: password
518 clustername: cluster1
519 iscsi_chap_enabled: false
520
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300521* Extra parameters for HP LeftHand:
Jakub Pavlika63764f2016-01-11 14:41:06 +0100522
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300523 .. code-block:: yaml
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100524
Kirill Bespalov01614c02017-07-31 17:06:09 +0300525 cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100526
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300527* Cinder setup with Solidfire:
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100528
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300529 .. code-block:: yaml
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100530
531 cinder:
532 volume:
533 enabled: true
534 backend:
535 solidfire:
536 type_name: normal-storage
537 engine: solidfire
538 san_ip: 10.10.10.10
539 san_login: user
540 san_password: password
541 clustername: cluster1
542 sf_emulate_512: false
sergio9e6387e2018-02-19 21:13:14 +0200543 sf_api_port: 14443
544 host: ctl01
Filip Pytlounda2a0792015-10-06 16:28:31 +0200545
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300546* Cinder setup with Block Device driver:
Alexander Noskov023a0032017-06-16 09:31:59 +0200547
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300548 .. code-block:: yaml
Alexander Noskov023a0032017-06-16 09:31:59 +0200549
550 cinder:
551 volume:
552 enabled: true
553 backend:
554 bdd:
555 engine: bdd
556 enabled: true
557 type_name: bdd
558 devices:
559 - sdb
560 - sdc
561 - sdd
562
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300563* Enable cinder-backup service for ceph
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100564
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300565 .. code-block:: yaml
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100566
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200567 cinder:
568 controller:
569 enabled: true
570 version: mitaka
571 backup:
572 engine: ceph
573 ceph_conf: "/etc/ceph/ceph.conf"
574 ceph_pool: backup
575 ceph_stripe_count: 0
576 ceph_stripe_unit: 0
577 ceph_user: cinder
578 ceph_chunk_size: 134217728
579 restore_discard_excess_bytes: false
580 volume:
581 enabled: true
582 version: mitaka
583 backup:
584 engine: ceph
585 ceph_conf: "/etc/ceph/ceph.conf"
586 ceph_pool: backup
587 ceph_stripe_count: 0
588 ceph_stripe_unit: 0
589 ceph_user: cinder
590 ceph_chunk_size: 134217728
591 restore_discard_excess_bytes: false
Kirill Bespalov01614c02017-07-31 17:06:09 +0300592
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300593* Auditing filter (CADF) enablement:
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100594
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300595 .. code-block:: yaml
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100596
597 cinder:
598 controller:
599 audit:
600 enabled: true
601 ....
602 filter_factory: 'keystonemiddleware.audit:filter_factory'
603 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
604 ....
605 volume:
606 audit:
607 enabled: true
608 ....
609 filter_factory: 'keystonemiddleware.audit:filter_factory'
610 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
611
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300612* Cinder setup with custom availability zones:
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100613
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300614 .. code-block:: yaml
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100615
616 cinder:
617 controller:
618 default_availability_zone: my-default-zone
619 storage_availability_zone: my-custom-zone-name
620 cinder:
621 volume:
622 default_availability_zone: my-default-zone
623 storage_availability_zone: my-custom-zone-name
624
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300625 The ``default_availability_zone`` is used when a volume has been created,
626 without specifying a zone in the ``create`` request as this zone must exist
627 in your configuration.
Andrii Ostapenkob7aa34d2017-04-20 14:22:44 +0300628
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300629 The ``storage_availability_zone`` is an actual zone where the node belongs to
630 and must be specified per each node.
Andrii Ostapenkob7aa34d2017-04-20 14:22:44 +0300631
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300632* Cinder setup with custom non-admin volume query filters:
633
634 .. code-block:: yaml
Andrii Ostapenkob7aa34d2017-04-20 14:22:44 +0300635
636 cinder:
637 controller:
638 query_volume_filters:
639 - name
640 - status
641 - metadata
642 - availability_zone
643 - bootable
644
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300645* ``public_endpoint`` and ``osapi_volume_base_url``:
Andrii Ostapenkob7aa34d2017-04-20 14:22:44 +0300646
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300647 * ``public_endpoint``
648 Used for configuring versions endpoint
649 * ``osapi_volume_base_URL``
650 Used to present Cinder URL to users
Alexander Noskov62496fb2017-02-27 16:42:54 +0100651
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300652 These parameters can be useful when running Cinder under load balancer in
653 SSL.
654
655 .. code-block:: yaml
Alexander Noskov62496fb2017-02-27 16:42:54 +0100656
657 cinder:
658 controller:
659 public_endpoint_address: https://${_param:cluster_domain}:8776
660
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300661* Client role definition:
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100662
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300663 .. code-block:: yaml
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200664
665 cinder:
666 client:
667 enabled: true
668 identity:
669 host: 127.0.0.1
670 port: 35357
671 project: service
672 user: cinder
673 password: pwd
674 protocol: http
675 endpoint_type: internalURL
676 region_name: RegionOne
677 backend:
678 ceph:
679 type_name: standard-iops
680 engine: ceph
681 key:
682 conn_speed: fibre-10G
683
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300684* Barbican integration enablement:
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300685
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300686 .. code-block:: yaml
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300687
688 cinder:
689 controller:
690 barbican:
691 enabled: true
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200692
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300693* Keystone API version specification (v3 is default):
Oleg Iurchenko6fe8e5d2018-02-20 14:26:04 +0200694
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300695 .. code-block:: yaml
Oleg Iurchenko6fe8e5d2018-02-20 14:26:04 +0200696
697 cinder:
698 controller:
699 identity:
700 api_version: v2.0
701
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300702**Enhanced logging with logging.conf**
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400703
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300704By default ``logging.conf`` is disabled.
705You can enable per-binary ``logging.conf`` by setting the following
706parameters:
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400707
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300708* ``openstack_log_appender``
709 Set to ``true`` to enable ``log_config_append`` for all OpenStack
710 services
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400711
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300712* ``openstack_fluentd_handler_enabled``
713 Set to ``true`` to enable FluentHandler for all Openstack services
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400714
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300715* ``openstack_ossyslog_handler_enabled``
716 Set to ``true`` to enable OSSysLogHandler for all Openstack services
717
718Only WatchedFileHandler, OSSysLogHandler, and FluentHandler are available.
719
720To configure this functionality with pillar:
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400721
722.. code-block:: yaml
723
724 cinder:
725 controller:
726 logging:
727 log_appender: true
728 log_handlers:
729 watchedfile:
730 enabled: true
731 fluentd:
732 enabled: true
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200733 ossyslog:
734 enabled: true
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400735
736 volume:
737 logging:
738 log_appender: true
739 log_handlers:
740 watchedfile:
741 enabled: true
742 fluentd:
743 enabled: true
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200744 ossyslog:
745 enabled: true
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400746
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300747**Documentation and bugs**
Jakub Pavlikb513f132016-05-20 11:11:19 +0200748
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300749* http://salt-formulas.readthedocs.io/
750 Learn how to install and update salt-formulas
Jakub Pavlikb513f132016-05-20 11:11:19 +0200751
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300752* https://github.com/salt-formulas/salt-formula-cinder/issues
753 In the unfortunate event that bugs are discovered, report the issue to the
754 appropriate issue tracker. Use the Github issue tracker for a specific salt
755 formula
Jakub Pavlikb513f132016-05-20 11:11:19 +0200756
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300757* https://launchpad.net/salt-formulas
758 For feature requests, bug reports, or blueprints affecting the entire
759 ecosystem, use the Launchpad salt-formulas project
Jakub Pavlikb513f132016-05-20 11:11:19 +0200760
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300761* https://launchpad.net/~salt-formulas-users
762 Join the salt-formulas-users team and subscribe to mailing list if required
Jakub Pavlikb513f132016-05-20 11:11:19 +0200763
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300764* https://github.com/salt-formulas/salt-formula-cinder
765 Develop the salt-formulas projects in the master branch and then submit pull
766 requests against a specific formula
Jakub Pavlikb513f132016-05-20 11:11:19 +0200767
OlgaGusarenko74b53f22018-06-28 17:35:48 +0300768* #salt-formulas @ irc.freenode.net
769 Use this IRC channel in case of any questions or feedback which is always
770 welcome