blob: 2afa980fc4ecc8970135a0bb8437e4c383424bb7 [file] [log] [blame]
Filip Pytlounda2a0792015-10-06 16:28:31 +02001==============================
2Openstack Cinder Block Storage
3==============================
4
Jakub Pavlikb513f132016-05-20 11:11:19 +02005Cinder provides an infrastructure for managing volumes in OpenStack. It was
6originally a Nova component called nova-volume, but has become an independent
7project since the Folsom release.
Filip Pytlounda2a0792015-10-06 16:28:31 +02008
9Sample pillars
10==============
11
Jakub Pavlikb513f132016-05-20 11:11:19 +020012New structure divides cinder-api,cinder-scheduler to role controller and
13cinder-volume to role volume.
Filip Pytlounda2a0792015-10-06 16:28:31 +020014
15.. code-block:: yaml
16
17 cinder:
18 controller:
19 enabled: true
20 version: juno
Dmitry Stremkovskiy9f4ac8b2017-07-11 09:48:46 +030021 cinder_uid: 304
22 cinder_gid: 304
Dmitry Stremkovskiyef4c7d02017-07-30 16:51:52 +030023 nas_secure_file_permissions: false
24 nas_secure_file_operations: false
Dmitry Stremkovskiya5dd7992017-07-30 19:54:23 +030025 cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef
26 cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010027 default_volume_type: 7k2SaS
stelucz1f3a82f2017-09-19 18:38:13 +020028 enable_force_upload: true
Damian Szeluga0918f5a2017-04-19 12:26:56 +020029 availability_zone_fallback: True
Filip Pytlounda2a0792015-10-06 16:28:31 +020030 database:
31 engine: mysql
32 host: 127.0.0.1
33 port: 3306
34 name: cinder
35 user: cinder
36 password: pwd
37 identity:
38 engine: keystone
39 host: 127.0.0.1
40 port: 35357
41 tenant: service
42 user: cinder
43 password: pwd
44 message_queue:
45 engine: rabbitmq
46 host: 127.0.0.1
47 port: 5672
48 user: openstack
49 password: pwd
50 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010051 backend:
52 7k2_SAS:
53 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +010054 type_name: slow-disks
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010055 host: 192.168.0.1
56 port: 22
57 user: username
58 password: pass
59 connection: FC/iSCSI
60 multihost: true
61 multipath: true
62 pool: SAS7K2
Kirill Bespalov01614c02017-07-31 17:06:09 +030063 audit:
Petr Michaleca1c7ff12016-11-29 16:32:50 +010064 enabled: false
Simon Pasquier9089de42017-02-03 16:13:22 +010065 osapi_max_limit: 500
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +030066 barbican:
67 enabled: true
Filip Pytlounda2a0792015-10-06 16:28:31 +020068
69 cinder:
70 volume:
71 enabled: true
72 version: juno
Dmitry Stremkovskiy9f4ac8b2017-07-11 09:48:46 +030073 cinder_uid: 304
74 cinder_gid: 304
Dmitry Stremkovskiyef4c7d02017-07-30 16:51:52 +030075 nas_secure_file_permissions: false
76 nas_secure_file_operations: false
Dmitry Stremkovskiya5dd7992017-07-30 19:54:23 +030077 cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef
78 cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +010079 default_volume_type: 7k2SaS
Michael Polenchukf0d642e2018-07-27 09:55:14 +040080 enable_force_upload: true
81 my_ip: 192.168.0.254
Filip Pytlounda2a0792015-10-06 16:28:31 +020082 database:
83 engine: mysql
84 host: 127.0.0.1
85 port: 3306
86 name: cinder
87 user: cinder
88 password: pwd
89 identity:
90 engine: keystone
91 host: 127.0.0.1
92 port: 35357
93 tenant: service
94 user: cinder
95 password: pwd
96 message_queue:
97 engine: rabbitmq
98 host: 127.0.0.1
99 port: 5672
100 user: openstack
101 password: pwd
102 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100103 backend:
104 7k2_SAS:
105 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100106 type_name: 7k2 SAS disk
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100107 host: 192.168.0.1
108 port: 22
109 user: username
110 password: pass
111 connection: FC/iSCSI
112 multihost: true
113 multipath: true
114 pool: SAS7K2
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100115 audit:
116 enabled: false
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300117 barbican:
118 enabled: true
Ondrej Smola74af21b2017-04-28 12:30:24 +0200119
120
Vasyl Saienkoa5de7512018-07-12 17:28:36 +0300121Volume vmware related options:
122
123.. code-block:: yaml
124
125 cinder:
126 volume:
127 backend:
128 vmware:
129 engine: vmware
130 host_username: vmware
131 host_password: vmware
132 cluster_names: vmware_cluster01,vmware_cluster02
133
134
Ondrej Smola74af21b2017-04-28 12:30:24 +0200135Enable CORS parameters
136
137.. code-block:: yaml
138
139 cinder:
140 controller:
141 cors:
142 allowed_origin: https:localhost.local,http:localhost.local
143 expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
144 allow_methods: GET,PUT,POST,DELETE,PATCH
145 allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
146 allow_credentials: True
147 max_age: 86400
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200148
149Client-side RabbitMQ HA setup for controller
150
151.. code-block:: yaml
152
153 cinder:
154 controller:
155 ....
156 message_queue:
157 engine: rabbitmq
158 members:
159 - host: 10.0.16.1
160 - host: 10.0.16.2
161 - host: 10.0.16.3
162 user: openstack
163 password: pwd
164 virtual_host: '/openstack'
165 ....
166
167Client-side RabbitMQ HA setup for volume component
168
169.. code-block:: yaml
170
171 cinder:
172 volume:
173 ....
174 message_queue:
175 engine: rabbitmq
176 members:
177 - host: 10.0.16.1
178 - host: 10.0.16.2
179 - host: 10.0.16.3
180 user: openstack
181 password: pwd
182 virtual_host: '/openstack'
183 ....
Filip Pytlounda2a0792015-10-06 16:28:31 +0200184
Kirill Bespalov01614c02017-07-31 17:06:09 +0300185
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300186Configuring TLS communications
187------------------------------
Kirill Bespalov01614c02017-07-31 17:06:09 +0300188
Kirill Bespalov01614c02017-07-31 17:06:09 +0300189
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300190**Note:** by default system wide installed CA certs are used, so ``cacert_file`` param is optional, as well as ``cacert``.
191
192
193- **RabbitMQ TLS**
Kirill Bespalov01614c02017-07-31 17:06:09 +0300194
195.. code-block:: yaml
196
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300197 cinder:
198 controller, volume:
Kirill Bespalov01614c02017-07-31 17:06:09 +0300199 message_queue:
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300200 port: 5671
Kirill Bespalov01614c02017-07-31 17:06:09 +0300201 ssl:
202 enabled: True
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300203 (optional) cacert: cert body if the cacert_file does not exists
204 (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem
205 (optional) version: TLSv1_2
Kirill Bespalov01614c02017-07-31 17:06:09 +0300206
207
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300208- **MySQL TLS**
Kirill Bespalov01614c02017-07-31 17:06:09 +0300209
210.. code-block:: yaml
211
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300212 cinder:
213 controller:
214 database:
Kirill Bespalov01614c02017-07-31 17:06:09 +0300215 ssl:
216 enabled: True
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300217 (optional) cacert: cert body if the cacert_file does not exists
218 (optional) cacert_file: /etc/openstack/mysql-ca.pem
Kirill Bespalov01614c02017-07-31 17:06:09 +0300219
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300220- **Openstack HTTPS API**
Kirill Bespalov01614c02017-07-31 17:06:09 +0300221
222.. code-block:: yaml
223
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300224 cinder:
225 controller, volume:
226 identity:
227 protocol: https
228 (optional) cacert_file: /etc/openstack/proxy.pem
229 glance:
230 protocol: https
231 (optional) cacert_file: /etc/openstack/proxy.pem
Kirill Bespalov01614c02017-07-31 17:06:09 +0300232
233
234
Filip Pytlounda2a0792015-10-06 16:28:31 +0200235Cinder setup with zeroing deleted volumes
236
Alexander Noskov62496fb2017-02-27 16:42:54 +0100237.. code-block:: yaml
238
Filip Pytlounda2a0792015-10-06 16:28:31 +0200239 cinder:
240 controller:
241 enabled: true
242 wipe_method: zero
243 ...
244
245Cinder setup with shreding deleted volumes
246
247.. code-block:: yaml
248
249 cinder:
250 controller:
251 enabled: true
252 wipe_method: shred
253 ...
254
Dmitry Ukov56c29072017-05-04 16:48:29 +0400255Configuration of policy.json file
256
257.. code-block:: yaml
258
259 cinder:
260 controller:
261 ....
262 policy:
263 'volume:delete': 'rule:admin_or_owner'
264 # Add key without value to remove line from policy.json
265 'volume:extend':
266
sgarbuz0901ebe2018-06-13 17:16:16 +0300267Default Cinder backend lvm_type setup
268
269.. code-block:: yaml
270
271 cinder:
272 volume:
273 enabled: true
274 backend:
275 # Type of LVM volumes to deploy; (default, thin, or auto). Auto defaults to thin if thin is supported.
276 lvm_type: auto
277
Filip Pytlounda2a0792015-10-06 16:28:31 +0200278
279Default Cinder setup with iSCSI target
280
281.. code-block:: yaml
282
283 cinder:
284 controller:
285 enabled: true
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200286 version: mitaka
287 default_volume_type: lvmdriver-1
Filip Pytlounda2a0792015-10-06 16:28:31 +0200288 database:
289 engine: mysql
290 host: 127.0.0.1
291 port: 3306
292 name: cinder
293 user: cinder
294 password: pwd
295 identity:
296 engine: keystone
297 host: 127.0.0.1
298 port: 35357
299 tenant: service
300 user: cinder
301 password: pwd
302 message_queue:
303 engine: rabbitmq
304 host: 127.0.0.1
305 port: 5672
306 user: openstack
307 password: pwd
308 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100309 backend:
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200310 lvmdriver-1:
311 engine: lvm
312 type_name: lvmdriver-1
313 volume_group: cinder-volume
Filip Pytlounda2a0792015-10-06 16:28:31 +0200314
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100315Cinder setup for IBM Storwize
Filip Pytlounda2a0792015-10-06 16:28:31 +0200316
317.. code-block:: yaml
318
319 cinder:
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100320 volume:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200321 enabled: true
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100322 backend:
323 7k2_SAS:
324 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100325 type_name: 7k2 SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100326 host: 192.168.0.1
327 port: 22
328 user: username
329 password: pass
330 connection: FC/iSCSI
331 multihost: true
332 multipath: true
333 pool: SAS7K2
334 10k_SAS:
335 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100336 type_name: 10k SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100337 host: 192.168.0.1
338 port: 22
339 user: username
340 password: pass
341 connection: FC/iSCSI
342 multihost: true
343 multipath: true
344 pool: SAS10K
345 15k_SAS:
346 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100347 type_name: 15k SAS
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100348 host: 192.168.0.1
349 port: 22
350 user: username
351 password: pass
352 connection: FC/iSCSI
353 multihost: true
354 multipath: true
355 pool: SAS15K
Filip Pytlounda2a0792015-10-06 16:28:31 +0200356
Jiri Broulik88548db2017-03-31 12:21:37 +0200357
358Cinder setup with NFS
359
360.. code-block:: yaml
361
362 cinder:
363 controller:
364 enabled: true
365 default_volume_type: nfs-driver
366 backend:
367 nfs-driver:
368 engine: nfs
369 type_name: nfs-driver
370 volume_group: cinder-volume
371 path: /var/lib/cinder/nfs
372 devices:
373 - 172.16.10.110:/var/nfs/cinder
374 options: rw,sync
375
376
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400377Cinder setup with NetApp
378
379.. code-block:: yaml
380
381 cinder:
382 controller:
383 backend:
384 netapp:
385 engine: netapp
386 type_name: netapp
387 user: openstack
388 vserver: vm1
389 server_hostname: 172.18.2.3
390 password: password
391 storage_protocol: nfs
392 transport_type: https
393 lun_space_reservation: enabled
394 use_multipath_for_image_xfer: True
Dmitry Stremkouskiffa53c02017-09-15 19:47:21 +0300395 nas_secure_file_operations: false
396 nas_secure_file_permissions: false
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400397 devices:
398 - 172.18.1.2:/vol_1
399 - 172.18.1.2:/vol_2
400 - 172.18.1.2:/vol_3
401 - 172.18.1.2:/vol_4
Jakub Pavlik94dc0c92017-06-14 14:53:23 +0200402 linux:
403 system:
404 package:
405 nfs-common:
406 version: latest
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400407
408
Filip Pytlounda2a0792015-10-06 16:28:31 +0200409Cinder setup with Hitachi VPS
410
411.. code-block:: yaml
412
413 cinder:
414 controller:
415 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100416 backend:
417 hus100_backend:
marcodaa52fa2016-01-25 23:49:50 +0100418 type_name: HUS100
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100419 backend: hus100_backend
420 engine: hitachi_vsp
421 connection: FC
Filip Pytlounda2a0792015-10-06 16:28:31 +0200422
Ondrej Smola16d66bd2017-01-15 13:56:03 +0100423Cinder setup with Hitachi VPS with defined ldev range
424
425.. code-block:: yaml
426
427 cinder:
428 controller:
429 enabled: true
430 backend:
431 hus100_backend:
432 type_name: HUS100
433 backend: hus100_backend
434 engine: hitachi_vsp
435 connection: FC
436 ldev_range: 0-1000
437
Filip Pytlounda2a0792015-10-06 16:28:31 +0200438Cinder setup with CEPH
439
440.. code-block:: yaml
441
442 cinder:
443 controller:
444 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100445 backend:
446 ceph_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100447 type_name: standard-iops
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100448 backend: ceph_backend
449 pool: volumes
450 engine: ceph
451 user: cinder
452 secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e
453 client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
Michel Nederlofb43a4872017-06-20 09:36:47 +0200454 report_discard_supported: True
Filip Pytlounda2a0792015-10-06 16:28:31 +0200455
456http://ceph.com/docs/master/rbd/rbd-openstack/
457
458
459Cinder setup with HP3par
460
461.. code-block:: yaml
462
463 cinder:
464 controller:
465 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100466 backend:
467 hp3par_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100468 type_name: hp3par
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100469 backend: hp3par_backend
470 user: hp3paruser
471 password: something
472 url: http://10.10.10.10/api/v1
473 cpg: OpenStackCPG
474 host: 10.10.10.10
475 login: hp3paradmin
476 sanpassword: something
477 debug: True
478 snapcpg: OpenStackSNAPCPG
Filip Pytlounda2a0792015-10-06 16:28:31 +0200479
480Cinder setup with Fujitsu Eternus
481
482.. code-block:: yaml
483
484 cinder:
485 volume:
486 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100487 backend:
488 10kThinPro:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100489 type_name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100490 engine: fujitsu
491 pool: 10kThinPro
492 host: 192.168.0.1
493 port: 5988
494 user: username
495 password: pass
496 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100497 name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100498 10k_SAS:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100499 type_name: 10k_SAS
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100500 pool: SAS10K
501 engine: fujitsu
502 host: 192.168.0.1
503 port: 5988
504 user: username
505 password: pass
506 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100507 name: 10k_SAS
Filip Pytlounda2a0792015-10-06 16:28:31 +0200508
Jakub Pavlik9703c602015-10-15 18:52:47 +0200509Cinder setup with IBM GPFS filesystem
510
511.. code-block:: yaml
512
513 cinder:
514 volume:
515 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100516 backend:
517 GPFS-GOLD:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100518 type_name: GPFS-GOLD
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100519 engine: gpfs
520 mount_point: '/mnt/gpfs-openstack/cinder/gold'
marcodaa52fa2016-01-25 23:49:50 +0100521 GPFS-SILVER:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100522 type_name: GPFS-SILVER
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100523 engine: gpfs
524 mount_point: '/mnt/gpfs-openstack/cinder/silver'
Kirill Bespalov01614c02017-07-31 17:06:09 +0300525
Jakub Pavlik9f5988a2016-01-11 13:44:57 +0100526Cinder setup with HP LeftHand
527
528.. code-block:: yaml
529
530 cinder:
531 volume:
532 enabled: true
533 backend:
534 HP-LeftHand:
535 type_name: normal-storage
536 engine: hp_lefthand
537 api_url: 'https://10.10.10.10:8081/lhos'
538 username: user
539 password: password
540 clustername: cluster1
541 iscsi_chap_enabled: false
542
Jakub Pavlika63764f2016-01-11 14:41:06 +0100543Extra parameters for HP LeftHand
Jakub Pavlika63764f2016-01-11 14:41:06 +0100544
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100545.. code-block:: yaml
546
Kirill Bespalov01614c02017-07-31 17:06:09 +0300547 cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100548
marcodaa52fa2016-01-25 23:49:50 +0100549Cinder setup with Solidfire
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100550
551.. code-block:: yaml
552
553 cinder:
554 volume:
555 enabled: true
556 backend:
557 solidfire:
558 type_name: normal-storage
559 engine: solidfire
560 san_ip: 10.10.10.10
561 san_login: user
562 san_password: password
563 clustername: cluster1
564 sf_emulate_512: false
sergio9e6387e2018-02-19 21:13:14 +0200565 sf_api_port: 14443
566 host: ctl01
Aleksieiev, Oleksii224e8ae2018-07-13 09:43:43 -0700567 #for compatibility with old versions
568 sf_account_prefix: PREFIX
Filip Pytlounda2a0792015-10-06 16:28:31 +0200569
Alexander Noskov023a0032017-06-16 09:31:59 +0200570Cinder setup with Block Device driver
571
572.. code-block:: yaml
573
574 cinder:
575 volume:
576 enabled: true
577 backend:
578 bdd:
579 engine: bdd
580 enabled: true
581 type_name: bdd
582 devices:
583 - sdb
584 - sdc
585 - sdd
586
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200587Enable cinder-backup service for ceph
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100588
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200589.. code-block:: yaml
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100590
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200591 cinder:
592 controller:
593 enabled: true
594 version: mitaka
595 backup:
596 engine: ceph
597 ceph_conf: "/etc/ceph/ceph.conf"
598 ceph_pool: backup
599 ceph_stripe_count: 0
600 ceph_stripe_unit: 0
601 ceph_user: cinder
602 ceph_chunk_size: 134217728
603 restore_discard_excess_bytes: false
604 volume:
605 enabled: true
606 version: mitaka
607 backup:
608 engine: ceph
609 ceph_conf: "/etc/ceph/ceph.conf"
610 ceph_pool: backup
611 ceph_stripe_count: 0
612 ceph_stripe_unit: 0
613 ceph_user: cinder
614 ceph_chunk_size: 134217728
615 restore_discard_excess_bytes: false
Kirill Bespalov01614c02017-07-31 17:06:09 +0300616
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100617Enable auditing filter, ie: CADF
618
619.. code-block:: yaml
620
621 cinder:
622 controller:
623 audit:
624 enabled: true
625 ....
626 filter_factory: 'keystonemiddleware.audit:filter_factory'
627 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
628 ....
629 volume:
630 audit:
631 enabled: true
632 ....
633 filter_factory: 'keystonemiddleware.audit:filter_factory'
634 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
635
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100636
637Cinder setup with custom availability zones:
638
639.. code-block:: yaml
640
641 cinder:
642 controller:
643 default_availability_zone: my-default-zone
644 storage_availability_zone: my-custom-zone-name
645 cinder:
646 volume:
647 default_availability_zone: my-default-zone
648 storage_availability_zone: my-custom-zone-name
649
Andrii Ostapenkob7aa34d2017-04-20 14:22:44 +0300650
651Cinder setup with custom non-admin volume query filters:
652
653.. code-block:: yaml
654
655 cinder:
656 controller:
657 query_volume_filters:
658 - name
659 - status
660 - metadata
661 - availability_zone
662 - bootable
663
664
Alexander Noskov62496fb2017-02-27 16:42:54 +0100665public_endpoint and osapi_volume_base_url parameters:
666"public_endpoint" is used for configuring versions endpoint,
667"osapi_volume_base_URL" is used to present Cinder URL to users.
668They are useful when running Cinder under load balancer in SSL.
669
670.. code-block:: yaml
671
672 cinder:
673 controller:
674 public_endpoint_address: https://${_param:cluster_domain}:8776
675
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100676The default availability zone is used when a volume has been created, without specifying a zone in the create request. (this zone must exist in your configuration obviously)
677The storage availability zone is the actual zone where the node belongs to. Make sure to specify this per node.
678Check the documentation of OpenStack for more information
679
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200680
681Client role
682
683.. code-block:: yaml
684
685 cinder:
686 client:
687 enabled: true
688 identity:
689 host: 127.0.0.1
690 port: 35357
691 project: service
692 user: cinder
693 password: pwd
694 protocol: http
695 endpoint_type: internalURL
696 region_name: RegionOne
697 backend:
698 ceph:
699 type_name: standard-iops
700 engine: ceph
701 key:
702 conn_speed: fibre-10G
703
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300704Enable Barbican integration
705
706.. code-block:: yaml
707
708 cinder:
709 controller:
710 barbican:
711 enabled: true
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200712
Oleg Iurchenko6fe8e5d2018-02-20 14:26:04 +0200713
714Specify Keystone API version (v3 is default):
715
716.. code-block:: yaml
717
718 cinder:
719 controller:
720 identity:
721 api_version: v2.0
722
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400723Enhanced logging with logging.conf
724----------------------------------
725
726By default logging.conf is disabled.
727
728That is possible to enable per-binary logging.conf with new variables:
729 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
730 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200731 * openstack_ossyslog_handler_enabled - set to true to enable OSSysLogHandler for all Openstack services.
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400732
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200733Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available.
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400734
735Also it is possible to configure this with pillar:
736
737.. code-block:: yaml
738
739 cinder:
740 controller:
741 logging:
742 log_appender: true
743 log_handlers:
744 watchedfile:
745 enabled: true
746 fluentd:
747 enabled: true
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200748 ossyslog:
749 enabled: true
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400750
751 volume:
752 logging:
753 log_appender: true
754 log_handlers:
755 watchedfile:
756 enabled: true
757 fluentd:
758 enabled: true
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200759 ossyslog:
760 enabled: true
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400761
Jakub Pavlikb513f132016-05-20 11:11:19 +0200762Documentation and Bugs
763============================
764
765To learn how to deploy OpenStack Salt, consult the documentation available
766online at:
767
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100768https://wiki.openstack.org/wiki/OpenStackSalt
Jakub Pavlikb513f132016-05-20 11:11:19 +0200769
770In the unfortunate event that bugs are discovered, they should be reported to
771the appropriate bug tracker. If you obtained the software from a 3rd party
772operating system vendor, it is often wise to use their own bug tracker for
773reporting problems. In all other cases use the master OpenStack bug tracker,
774available at:
775
776 http://bugs.launchpad.net/openstack-salt
777
778Developers wishing to work on the OpenStack Salt project should always base
779their work on the latest formulas code, available from the master GIT
780repository at:
781
782 https://git.openstack.org/cgit/openstack/salt-formula-cinder
783
784Developers should also join the discussion on the IRC list, at:
785
786 https://wiki.openstack.org/wiki/Meetings/openstack-salt
Filip Pytlounb0f5c1f2017-02-02 13:02:03 +0100787
788Documentation and Bugs
789======================
790
791To learn how to install and update salt-formulas, consult the documentation
792available online at:
793
794 http://salt-formulas.readthedocs.io/
795
796In the unfortunate event that bugs are discovered, they should be reported to
797the appropriate issue tracker. Use Github issue tracker for specific salt
798formula:
799
800 https://github.com/salt-formulas/salt-formula-cinder/issues
801
802For feature requests, bug reports or blueprints affecting entire ecosystem,
803use Launchpad salt-formulas project:
804
805 https://launchpad.net/salt-formulas
806
807You can also join salt-formulas-users team and subscribe to mailing list:
808
809 https://launchpad.net/~salt-formulas-users
810
811Developers wishing to work on the salt-formulas projects should always base
812their work on master branch and submit pull request against specific formula.
813
814 https://github.com/salt-formulas/salt-formula-cinder
815
816Any questions or feedback is always welcome so feel free to join our IRC
817channel:
818
819 #salt-formulas @ irc.freenode.net