blob: fbdaaf9c57391d151cd037380345197e38316955 [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
Filip Pytlounda2a0792015-10-06 16:28:31 +0200552
Alexander Noskov023a0032017-06-16 09:31:59 +0200553Cinder setup with Block Device driver
554
555.. code-block:: yaml
556
557 cinder:
558 volume:
559 enabled: true
560 backend:
561 bdd:
562 engine: bdd
563 enabled: true
564 type_name: bdd
565 devices:
566 - sdb
567 - sdc
568 - sdd
569
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200570Enable cinder-backup service for ceph
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100571
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200572.. code-block:: yaml
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100573
Ondrej Smolaed6abbf2017-04-25 11:55:44 +0200574 cinder:
575 controller:
576 enabled: true
577 version: mitaka
578 backup:
579 engine: ceph
580 ceph_conf: "/etc/ceph/ceph.conf"
581 ceph_pool: backup
582 ceph_stripe_count: 0
583 ceph_stripe_unit: 0
584 ceph_user: cinder
585 ceph_chunk_size: 134217728
586 restore_discard_excess_bytes: false
587 volume:
588 enabled: true
589 version: mitaka
590 backup:
591 engine: ceph
592 ceph_conf: "/etc/ceph/ceph.conf"
593 ceph_pool: backup
594 ceph_stripe_count: 0
595 ceph_stripe_unit: 0
596 ceph_user: cinder
597 ceph_chunk_size: 134217728
598 restore_discard_excess_bytes: false
Kirill Bespalov01614c02017-07-31 17:06:09 +0300599
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100600Enable auditing filter, ie: CADF
601
602.. code-block:: yaml
603
604 cinder:
605 controller:
606 audit:
607 enabled: true
608 ....
609 filter_factory: 'keystonemiddleware.audit:filter_factory'
610 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
611 ....
612 volume:
613 audit:
614 enabled: true
615 ....
616 filter_factory: 'keystonemiddleware.audit:filter_factory'
617 map_file: '/etc/pycadf/cinder_api_audit_map.conf'
618
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100619
620Cinder setup with custom availability zones:
621
622.. code-block:: yaml
623
624 cinder:
625 controller:
626 default_availability_zone: my-default-zone
627 storage_availability_zone: my-custom-zone-name
628 cinder:
629 volume:
630 default_availability_zone: my-default-zone
631 storage_availability_zone: my-custom-zone-name
632
Andrii Ostapenkob7aa34d2017-04-20 14:22:44 +0300633
634Cinder setup with custom non-admin volume query filters:
635
636.. code-block:: yaml
637
638 cinder:
639 controller:
640 query_volume_filters:
641 - name
642 - status
643 - metadata
644 - availability_zone
645 - bootable
646
647
Alexander Noskov62496fb2017-02-27 16:42:54 +0100648public_endpoint and osapi_volume_base_url parameters:
649"public_endpoint" is used for configuring versions endpoint,
650"osapi_volume_base_URL" is used to present Cinder URL to users.
651They are useful when running Cinder under load balancer in SSL.
652
653.. code-block:: yaml
654
655 cinder:
656 controller:
657 public_endpoint_address: https://${_param:cluster_domain}:8776
658
Michel Nederlofb8603eb2017-02-09 10:04:38 +0100659The 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)
660The storage availability zone is the actual zone where the node belongs to. Make sure to specify this per node.
661Check the documentation of OpenStack for more information
662
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200663
664Client role
665
666.. code-block:: yaml
667
668 cinder:
669 client:
670 enabled: true
671 identity:
672 host: 127.0.0.1
673 port: 35357
674 project: service
675 user: cinder
676 password: pwd
677 protocol: http
678 endpoint_type: internalURL
679 region_name: RegionOne
680 backend:
681 ceph:
682 type_name: standard-iops
683 engine: ceph
684 key:
685 conn_speed: fibre-10G
686
Oleg Iurchenko83ee09a2017-10-17 18:24:28 +0300687Enable Barbican integration
688
689.. code-block:: yaml
690
691 cinder:
692 controller:
693 barbican:
694 enabled: true
Jiri Broulik47aa6b32017-07-10 18:39:15 +0200695
Oleg Iurchenko6fe8e5d2018-02-20 14:26:04 +0200696
697Specify Keystone API version (v3 is default):
698
699.. code-block:: yaml
700
701 cinder:
702 controller:
703 identity:
704 api_version: v2.0
705
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400706Enhanced logging with logging.conf
707----------------------------------
708
709By default logging.conf is disabled.
710
711That is possible to enable per-binary logging.conf with new variables:
712 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
713 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200714 * openstack_ossyslog_handler_enabled - set to true to enable OSSysLogHandler for all Openstack services.
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400715
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200716Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available.
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400717
718Also it is possible to configure this with pillar:
719
720.. code-block:: yaml
721
722 cinder:
723 controller:
724 logging:
725 log_appender: true
726 log_handlers:
727 watchedfile:
728 enabled: true
729 fluentd:
730 enabled: true
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200731 ossyslog:
732 enabled: true
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400733
734 volume:
735 logging:
736 log_appender: true
737 log_handlers:
738 watchedfile:
739 enabled: true
740 fluentd:
741 enabled: true
Oleksii Chupryn688ae092018-02-07 09:49:21 +0200742 ossyslog:
743 enabled: true
Dmitry Kalashnik3291f542017-12-05 18:43:47 +0400744
Jakub Pavlikb513f132016-05-20 11:11:19 +0200745Documentation and Bugs
746============================
747
748To learn how to deploy OpenStack Salt, consult the documentation available
749online at:
750
Petr Michaleca1c7ff12016-11-29 16:32:50 +0100751https://wiki.openstack.org/wiki/OpenStackSalt
Jakub Pavlikb513f132016-05-20 11:11:19 +0200752
753In the unfortunate event that bugs are discovered, they should be reported to
754the appropriate bug tracker. If you obtained the software from a 3rd party
755operating system vendor, it is often wise to use their own bug tracker for
756reporting problems. In all other cases use the master OpenStack bug tracker,
757available at:
758
759 http://bugs.launchpad.net/openstack-salt
760
761Developers wishing to work on the OpenStack Salt project should always base
762their work on the latest formulas code, available from the master GIT
763repository at:
764
765 https://git.openstack.org/cgit/openstack/salt-formula-cinder
766
767Developers should also join the discussion on the IRC list, at:
768
769 https://wiki.openstack.org/wiki/Meetings/openstack-salt
Filip Pytlounb0f5c1f2017-02-02 13:02:03 +0100770
771Documentation and Bugs
772======================
773
774To learn how to install and update salt-formulas, consult the documentation
775available online at:
776
777 http://salt-formulas.readthedocs.io/
778
779In the unfortunate event that bugs are discovered, they should be reported to
780the appropriate issue tracker. Use Github issue tracker for specific salt
781formula:
782
783 https://github.com/salt-formulas/salt-formula-cinder/issues
784
785For feature requests, bug reports or blueprints affecting entire ecosystem,
786use Launchpad salt-formulas project:
787
788 https://launchpad.net/salt-formulas
789
790You can also join salt-formulas-users team and subscribe to mailing list:
791
792 https://launchpad.net/~salt-formulas-users
793
794Developers wishing to work on the salt-formulas projects should always base
795their work on master branch and submit pull request against specific formula.
796
797 https://github.com/salt-formulas/salt-formula-cinder
798
799Any questions or feedback is always welcome so feel free to join our IRC
800channel:
801
802 #salt-formulas @ irc.freenode.net