blob: 3cde4ca59272e4473a6bc4a59770b13782a2be76 [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
stelucz1f3a82f2017-09-19 18:38:13 +020080 nable_force_upload: true
Filip Pytlounda2a0792015-10-06 16:28:31 +020081 database:
82 engine: mysql
83 host: 127.0.0.1
84 port: 3306
85 name: cinder
86 user: cinder
87 password: pwd
88 identity:
89 engine: keystone
90 host: 127.0.0.1
91 port: 35357
92 tenant: service
93 user: cinder
94 password: pwd
95 message_queue:
96 engine: rabbitmq
97 host: 127.0.0.1
98 port: 5672
99 user: openstack
100 password: pwd
101 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100102 backend:
103 7k2_SAS:
104 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100105 type_name: 7k2 SAS disk
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100106 host: 192.168.0.1
107 port: 22
108 user: username
109 password: pass
110 connection: FC/iSCSI
111 multihost: true
112 multipath: true
113 pool: SAS7K2
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100114 audit:
115 enabled: false
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300116 barbican:
117 enabled: true
Ondrej Smola74af21b2017-04-28 12:30:24 +0200118
119
120Enable CORS parameters
121
122.. code-block:: yaml
123
124 cinder:
125 controller:
126 cors:
127 allowed_origin: https:localhost.local,http:localhost.local
128 expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
129 allow_methods: GET,PUT,POST,DELETE,PATCH
130 allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
131 allow_credentials: True
132 max_age: 86400
Jiri Konecny2dce35f2016-04-19 16:29:52 +0200133
134Client-side RabbitMQ HA setup for controller
135
136.. code-block:: yaml
137
138 cinder:
139 controller:
140 ....
141 message_queue:
142 engine: rabbitmq
143 members:
144 - host: 10.0.16.1
145 - host: 10.0.16.2
146 - host: 10.0.16.3
147 user: openstack
148 password: pwd
149 virtual_host: '/openstack'
150 ....
151
152Client-side RabbitMQ HA setup for volume component
153
154.. code-block:: yaml
155
156 cinder:
157 volume:
158 ....
159 message_queue:
160 engine: rabbitmq
161 members:
162 - host: 10.0.16.1
163 - host: 10.0.16.2
164 - host: 10.0.16.3
165 user: openstack
166 password: pwd
167 virtual_host: '/openstack'
168 ....
Filip Pytlounda2a0792015-10-06 16:28:31 +0200169
Kirill Bespalov01614c02017-07-31 17:06:09 +0300170
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300171Configuring TLS communications
172------------------------------
Kirill Bespalov01614c02017-07-31 17:06:09 +0300173
Kirill Bespalov01614c02017-07-31 17:06:09 +0300174
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300175**Note:** by default system wide installed CA certs are used, so ``cacert_file`` param is optional, as well as ``cacert``.
176
177
178- **RabbitMQ TLS**
Kirill Bespalov01614c02017-07-31 17:06:09 +0300179
180.. code-block:: yaml
181
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300182 cinder:
183 controller, volume:
Kirill Bespalov01614c02017-07-31 17:06:09 +0300184 message_queue:
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300185 port: 5671
Kirill Bespalov01614c02017-07-31 17:06:09 +0300186 ssl:
187 enabled: True
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300188 (optional) cacert: cert body if the cacert_file does not exists
189 (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem
190 (optional) version: TLSv1_2
Kirill Bespalov01614c02017-07-31 17:06:09 +0300191
192
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300193- **MySQL 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:
199 database:
Kirill Bespalov01614c02017-07-31 17:06:09 +0300200 ssl:
201 enabled: True
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300202 (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
Kirill Bespalov1550d6c2017-11-21 12:55:33 +0300205- **Openstack HTTPS API**
Kirill Bespalov01614c02017-07-31 17:06:09 +0300206
207.. code-block:: yaml
208
Kirill Bespalov1550d6c2017-11-21 12:55:33 +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
218
219
Filip Pytlounda2a0792015-10-06 16:28:31 +0200220Cinder setup with zeroing deleted volumes
221
Alexander Noskov62496fb2017-02-27 16:42:54 +0100222.. code-block:: yaml
223
Filip Pytlounda2a0792015-10-06 16:28:31 +0200224 cinder:
225 controller:
226 enabled: true
227 wipe_method: zero
228 ...
229
230Cinder setup with shreding deleted volumes
231
232.. code-block:: yaml
233
234 cinder:
235 controller:
236 enabled: true
237 wipe_method: shred
238 ...
239
Dmitry Ukov56c29072017-05-04 16:48:29 +0400240Configuration of policy.json file
241
242.. code-block:: yaml
243
244 cinder:
245 controller:
246 ....
247 policy:
248 'volume:delete': 'rule:admin_or_owner'
249 # Add key without value to remove line from policy.json
250 'volume:extend':
251
sgarbuz0901ebe2018-06-13 17:16:16 +0300252Default Cinder backend lvm_type setup
253
254.. code-block:: yaml
255
256 cinder:
257 volume:
258 enabled: true
259 backend:
260 # Type of LVM volumes to deploy; (default, thin, or auto). Auto defaults to thin if thin is supported.
261 lvm_type: auto
262
Filip Pytlounda2a0792015-10-06 16:28:31 +0200263
264Default Cinder setup with iSCSI target
265
266.. code-block:: yaml
267
268 cinder:
269 controller:
270 enabled: true
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200271 version: mitaka
272 default_volume_type: lvmdriver-1
Filip Pytlounda2a0792015-10-06 16:28:31 +0200273 database:
274 engine: mysql
275 host: 127.0.0.1
276 port: 3306
277 name: cinder
278 user: cinder
279 password: pwd
280 identity:
281 engine: keystone
282 host: 127.0.0.1
283 port: 35357
284 tenant: service
285 user: cinder
286 password: pwd
287 message_queue:
288 engine: rabbitmq
289 host: 127.0.0.1
290 port: 5672
291 user: openstack
292 password: pwd
293 virtual_host: '/openstack'
Jakub Pavlikaf96c2a2016-01-08 15:49:54 +0100294 backend:
Jakub Pavlik3d437df2016-04-11 22:07:50 +0200295 lvmdriver-1:
296 engine: lvm
297 type_name: lvmdriver-1
298 volume_group: cinder-volume
Filip Pytlounda2a0792015-10-06 16:28:31 +0200299
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100300Cinder setup for IBM Storwize
Filip Pytlounda2a0792015-10-06 16:28:31 +0200301
302.. code-block:: yaml
303
304 cinder:
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100305 volume:
Filip Pytlounda2a0792015-10-06 16:28:31 +0200306 enabled: true
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100307 backend:
308 7k2_SAS:
309 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100310 type_name: 7k2 SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100311 host: 192.168.0.1
312 port: 22
313 user: username
314 password: pass
315 connection: FC/iSCSI
316 multihost: true
317 multipath: true
318 pool: SAS7K2
319 10k_SAS:
320 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100321 type_name: 10k SAS disk
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100322 host: 192.168.0.1
323 port: 22
324 user: username
325 password: pass
326 connection: FC/iSCSI
327 multihost: true
328 multipath: true
329 pool: SAS10K
330 15k_SAS:
331 engine: storwize
Jakub Pavlikedd46102016-01-08 16:20:38 +0100332 type_name: 15k SAS
Ales Komarekdf13bbd2016-01-05 21:33:36 +0100333 host: 192.168.0.1
334 port: 22
335 user: username
336 password: pass
337 connection: FC/iSCSI
338 multihost: true
339 multipath: true
340 pool: SAS15K
Filip Pytlounda2a0792015-10-06 16:28:31 +0200341
Jiri Broulik88548db2017-03-31 12:21:37 +0200342
343Cinder setup with NFS
344
345.. code-block:: yaml
346
347 cinder:
348 controller:
349 enabled: true
350 default_volume_type: nfs-driver
351 backend:
352 nfs-driver:
353 engine: nfs
354 type_name: nfs-driver
355 volume_group: cinder-volume
356 path: /var/lib/cinder/nfs
357 devices:
358 - 172.16.10.110:/var/nfs/cinder
359 options: rw,sync
360
361
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400362Cinder setup with NetApp
363
364.. code-block:: yaml
365
366 cinder:
367 controller:
368 backend:
369 netapp:
370 engine: netapp
371 type_name: netapp
372 user: openstack
373 vserver: vm1
374 server_hostname: 172.18.2.3
375 password: password
376 storage_protocol: nfs
377 transport_type: https
378 lun_space_reservation: enabled
379 use_multipath_for_image_xfer: True
Dmitry Stremkouskiffa53c02017-09-15 19:47:21 +0300380 nas_secure_file_operations: false
381 nas_secure_file_permissions: false
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400382 devices:
383 - 172.18.1.2:/vol_1
384 - 172.18.1.2:/vol_2
385 - 172.18.1.2:/vol_3
386 - 172.18.1.2:/vol_4
Jakub Pavlik94dc0c92017-06-14 14:53:23 +0200387 linux:
388 system:
389 package:
390 nfs-common:
391 version: latest
Alexey Chekunovf916f0c2017-05-25 13:29:45 +0400392
393
Filip Pytlounda2a0792015-10-06 16:28:31 +0200394Cinder setup with Hitachi VPS
395
396.. code-block:: yaml
397
398 cinder:
399 controller:
400 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100401 backend:
402 hus100_backend:
marcodaa52fa2016-01-25 23:49:50 +0100403 type_name: HUS100
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100404 backend: hus100_backend
405 engine: hitachi_vsp
406 connection: FC
Filip Pytlounda2a0792015-10-06 16:28:31 +0200407
Ondrej Smola16d66bd2017-01-15 13:56:03 +0100408Cinder setup with Hitachi VPS with defined ldev range
409
410.. code-block:: yaml
411
412 cinder:
413 controller:
414 enabled: true
415 backend:
416 hus100_backend:
417 type_name: HUS100
418 backend: hus100_backend
419 engine: hitachi_vsp
420 connection: FC
421 ldev_range: 0-1000
422
Filip Pytlounda2a0792015-10-06 16:28:31 +0200423Cinder setup with CEPH
424
425.. code-block:: yaml
426
427 cinder:
428 controller:
429 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100430 backend:
431 ceph_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100432 type_name: standard-iops
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100433 backend: ceph_backend
434 pool: volumes
435 engine: ceph
436 user: cinder
437 secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e
438 client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
Michel Nederlofb43a4872017-06-20 09:36:47 +0200439 report_discard_supported: True
Filip Pytlounda2a0792015-10-06 16:28:31 +0200440
441http://ceph.com/docs/master/rbd/rbd-openstack/
442
443
444Cinder setup with HP3par
445
446.. code-block:: yaml
447
448 cinder:
449 controller:
450 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100451 backend:
452 hp3par_backend:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100453 type_name: hp3par
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100454 backend: hp3par_backend
455 user: hp3paruser
456 password: something
457 url: http://10.10.10.10/api/v1
458 cpg: OpenStackCPG
459 host: 10.10.10.10
460 login: hp3paradmin
461 sanpassword: something
462 debug: True
463 snapcpg: OpenStackSNAPCPG
Filip Pytlounda2a0792015-10-06 16:28:31 +0200464
465Cinder setup with Fujitsu Eternus
466
467.. code-block:: yaml
468
469 cinder:
470 volume:
471 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100472 backend:
473 10kThinPro:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100474 type_name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100475 engine: fujitsu
476 pool: 10kThinPro
477 host: 192.168.0.1
478 port: 5988
479 user: username
480 password: pass
481 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100482 name: 10kThinPro
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100483 10k_SAS:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100484 type_name: 10k_SAS
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100485 pool: SAS10K
486 engine: fujitsu
487 host: 192.168.0.1
488 port: 5988
489 user: username
490 password: pass
491 connection: FC/iSCSI
marcodaa52fa2016-01-25 23:49:50 +0100492 name: 10k_SAS
Filip Pytlounda2a0792015-10-06 16:28:31 +0200493
Jakub Pavlik9703c602015-10-15 18:52:47 +0200494Cinder setup with IBM GPFS filesystem
495
496.. code-block:: yaml
497
498 cinder:
499 volume:
500 enabled: true
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100501 backend:
502 GPFS-GOLD:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100503 type_name: GPFS-GOLD
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100504 engine: gpfs
505 mount_point: '/mnt/gpfs-openstack/cinder/gold'
marcodaa52fa2016-01-25 23:49:50 +0100506 GPFS-SILVER:
Jakub Pavlikedd46102016-01-08 16:20:38 +0100507 type_name: GPFS-SILVER
Jakub Pavlik5d7df0d2016-01-06 13:08:30 +0100508 engine: gpfs
509 mount_point: '/mnt/gpfs-openstack/cinder/silver'
Kirill Bespalov01614c02017-07-31 17:06:09 +0300510
Jakub Pavlik9f5988a2016-01-11 13:44:57 +0100511Cinder setup with HP LeftHand
512
513.. code-block:: yaml
514
515 cinder:
516 volume:
517 enabled: true
518 backend:
519 HP-LeftHand:
520 type_name: normal-storage
521 engine: hp_lefthand
522 api_url: 'https://10.10.10.10:8081/lhos'
523 username: user
524 password: password
525 clustername: cluster1
526 iscsi_chap_enabled: false
527
Jakub Pavlika63764f2016-01-11 14:41:06 +0100528Extra parameters for HP LeftHand
Jakub Pavlika63764f2016-01-11 14:41:06 +0100529
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100530.. code-block:: yaml
531
Kirill Bespalov01614c02017-07-31 17:06:09 +0300532 cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100533
marcodaa52fa2016-01-25 23:49:50 +0100534Cinder setup with Solidfire
Jakub Pavlik5050dda2016-01-11 16:52:32 +0100535
536.. code-block:: yaml
537
538 cinder:
539 volume:
540 enabled: true
541 backend:
542 solidfire:
543 type_name: normal-storage
544 engine: solidfire
545 san_ip: 10.10.10.10
546 san_login: user
547 san_password: password
548 clustername: cluster1
549 sf_emulate_512: false
sergio9e6387e2018-02-19 21:13:14 +0200550 sf_api_port: 14443
551 host: ctl01
Aleksieiev, Oleksii224e8ae2018-07-13 09:43:43 -0700552 #for compatibility with old versions
553 sf_account_prefix: PREFIX
Filip Pytlounda2a0792015-10-06 16:28:31 +0200554
Alexander Noskov023a0032017-06-16 09:31:59 +0200555Cinder setup with Block Device driver
556
557.. code-block:: yaml
558
559 cinder:
560 volume:
561 enabled: true
562 backend:
563 bdd:
564 engine: bdd
565 enabled: true
566 type_name: bdd
567 devices:
568 - sdb
569 - sdc
570 - sdd
571
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200572Enable cinder-backup service for ceph
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100573
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200574.. code-block:: yaml
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100575
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200576 cinder:
577 controller:
578 enabled: true
579 version: mitaka
580 backup:
581 engine: ceph
582 ceph_conf: "/etc/ceph/ceph.conf"
583 ceph_pool: backup
584 ceph_stripe_count: 0
585 ceph_stripe_unit: 0
586 ceph_user: cinder
587 ceph_chunk_size: 134217728
588 restore_discard_excess_bytes: false
589 volume:
590 enabled: true
591 version: mitaka
592 backup:
593 engine: ceph
594 ceph_conf: "/etc/ceph/ceph.conf"
595 ceph_pool: backup
596 ceph_stripe_count: 0
597 ceph_stripe_unit: 0
598 ceph_user: cinder
599 ceph_chunk_size: 134217728
600 restore_discard_excess_bytes: false
Kirill Bespalov01614c02017-07-31 17:06:09 +0300601
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100602Enable auditing filter, ie: CADF
603
604.. code-block:: yaml
605
606 cinder:
607 controller:
608 audit:
609 enabled: true
610 ....
611 filter_factory: 'keystonemiddleware.audit:filter_factory'
612 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
613 ....
614 volume:
615 audit:
616 enabled: true
617 ....
618 filter_factory: 'keystonemiddleware.audit:filter_factory'
619 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
620
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100621
622Cinder setup with custom availability zones:
623
624.. code-block:: yaml
625
626 cinder:
627 controller:
628 default_availability_zone: my-default-zone
629 storage_availability_zone: my-custom-zone-name
630 cinder:
631 volume:
632 default_availability_zone: my-default-zone
633 storage_availability_zone: my-custom-zone-name
634
Andrii Ostapenkob7aa34d2017-04-20 14:22:44 +0300635
636Cinder setup with custom non-admin volume query filters:
637
638.. code-block:: yaml
639
640 cinder:
641 controller:
642 query_volume_filters:
643 - name
644 - status
645 - metadata
646 - availability_zone
647 - bootable
648
649
Alexander Noskov62496fb2017-02-27 16:42:54 +0100650public_endpoint and osapi_volume_base_url parameters:
651"public_endpoint" is used for configuring versions endpoint,
652"osapi_volume_base_URL" is used to present Cinder URL to users.
653They are useful when running Cinder under load balancer in SSL.
654
655.. code-block:: yaml
656
657 cinder:
658 controller:
659 public_endpoint_address: https://${_param:cluster_domain}:8776
660
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100661The 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)
662The storage availability zone is the actual zone where the node belongs to. Make sure to specify this per node.
663Check the documentation of OpenStack for more information
664
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200665
666Client role
667
668.. code-block:: yaml
669
670 cinder:
671 client:
672 enabled: true
673 identity:
674 host: 127.0.0.1
675 port: 35357
676 project: service
677 user: cinder
678 password: pwd
679 protocol: http
680 endpoint_type: internalURL
681 region_name: RegionOne
682 backend:
683 ceph:
684 type_name: standard-iops
685 engine: ceph
686 key:
687 conn_speed: fibre-10G
688
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300689Enable Barbican integration
690
691.. code-block:: yaml
692
693 cinder:
694 controller:
695 barbican:
696 enabled: true
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200697
Oleg Iurchenko6fe8e5d2018-02-20 14:26:04 +0200698
699Specify Keystone API version (v3 is default):
700
701.. code-block:: yaml
702
703 cinder:
704 controller:
705 identity:
706 api_version: v2.0
707
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400708Enhanced logging with logging.conf
709----------------------------------
710
711By default logging.conf is disabled.
712
713That is possible to enable per-binary logging.conf with new variables:
714 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
715 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200716 * openstack_ossyslog_handler_enabled - set to true to enable OSSysLogHandler for all Openstack services.
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400717
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200718Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available.
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400719
720Also it is possible to configure this with pillar:
721
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
Jakub Pavlikb513f132016-05-20 11:11:19 +0200747Documentation and Bugs
748============================
749
750To learn how to deploy OpenStack Salt, consult the documentation available
751online at:
752
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100753https://wiki.openstack.org/wiki/OpenStackSalt
Jakub Pavlikb513f132016-05-20 11:11:19 +0200754
755In the unfortunate event that bugs are discovered, they should be reported to
756the appropriate bug tracker. If you obtained the software from a 3rd party
757operating system vendor, it is often wise to use their own bug tracker for
758reporting problems. In all other cases use the master OpenStack bug tracker,
759available at:
760
761 http://bugs.launchpad.net/openstack-salt
762
763Developers wishing to work on the OpenStack Salt project should always base
764their work on the latest formulas code, available from the master GIT
765repository at:
766
767 https://git.openstack.org/cgit/openstack/salt-formula-cinder
768
769Developers should also join the discussion on the IRC list, at:
770
771 https://wiki.openstack.org/wiki/Meetings/openstack-salt
Filip Pytlounb0f5c1f2017-02-02 13:02:03 +0100772
773Documentation and Bugs
774======================
775
776To learn how to install and update salt-formulas, consult the documentation
777available online at:
778
779 http://salt-formulas.readthedocs.io/
780
781In the unfortunate event that bugs are discovered, they should be reported to
782the appropriate issue tracker. Use Github issue tracker for specific salt
783formula:
784
785 https://github.com/salt-formulas/salt-formula-cinder/issues
786
787For feature requests, bug reports or blueprints affecting entire ecosystem,
788use Launchpad salt-formulas project:
789
790 https://launchpad.net/salt-formulas
791
792You can also join salt-formulas-users team and subscribe to mailing list:
793
794 https://launchpad.net/~salt-formulas-users
795
796Developers wishing to work on the salt-formulas projects should always base
797their work on master branch and submit pull request against specific formula.
798
799 https://github.com/salt-formulas/salt-formula-cinder
800
801Any questions or feedback is always welcome so feel free to join our IRC
802channel:
803
804 #salt-formulas @ irc.freenode.net