OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 1 | ===== |
| 2 | Usage |
| 3 | ===== |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 4 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 5 | Cinder provides an infrastructure for managing volumes in OpenStack. |
| 6 | Originally, this project was the Nova component called ``nova-volume`` |
| 7 | and starting from the Folsom OpenStack release it has become an independent |
| 8 | project. |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 9 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 10 | This file provides the sample configurations for different use cases: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 11 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 12 | * Pillar sample of a basic Cinder configuration: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 13 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 14 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 19 | |
| 20 | cinder: |
| 21 | controller: |
| 22 | enabled: true |
| 23 | version: juno |
Dmitry Stremkovskiy | 9f4ac8b | 2017-07-11 09:48:46 +0300 | [diff] [blame] | 24 | cinder_uid: 304 |
| 25 | cinder_gid: 304 |
Dmitry Stremkovskiy | ef4c7d0 | 2017-07-30 16:51:52 +0300 | [diff] [blame] | 26 | nas_secure_file_permissions: false |
| 27 | nas_secure_file_operations: false |
Dmitry Stremkovskiy | a5dd799 | 2017-07-30 19:54:23 +0300 | [diff] [blame] | 28 | cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef |
| 29 | cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 30 | default_volume_type: 7k2SaS |
stelucz | 1f3a82f | 2017-09-19 18:38:13 +0200 | [diff] [blame] | 31 | enable_force_upload: true |
Damian Szeluga | 0918f5a | 2017-04-19 12:26:56 +0200 | [diff] [blame] | 32 | availability_zone_fallback: True |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 33 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 54 | backend: |
| 55 | 7k2_SAS: |
| 56 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 57 | type_name: slow-disks |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 58 | 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 Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 66 | audit: |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 67 | enabled: false |
Simon Pasquier | 9089de4 | 2017-02-03 16:13:22 +0100 | [diff] [blame] | 68 | osapi_max_limit: 500 |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 69 | barbican: |
| 70 | enabled: true |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 71 | |
| 72 | cinder: |
| 73 | volume: |
| 74 | enabled: true |
| 75 | version: juno |
Dmitry Stremkovskiy | 9f4ac8b | 2017-07-11 09:48:46 +0300 | [diff] [blame] | 76 | cinder_uid: 304 |
| 77 | cinder_gid: 304 |
Dmitry Stremkovskiy | ef4c7d0 | 2017-07-30 16:51:52 +0300 | [diff] [blame] | 78 | nas_secure_file_permissions: false |
| 79 | nas_secure_file_operations: false |
Dmitry Stremkovskiy | a5dd799 | 2017-07-30 19:54:23 +0300 | [diff] [blame] | 80 | cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef |
| 81 | cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 82 | default_volume_type: 7k2SaS |
Michael Polenchuk | f0d642e | 2018-07-27 09:55:14 +0400 | [diff] [blame] | 83 | enable_force_upload: true |
| 84 | my_ip: 192.168.0.254 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 85 | database: |
| 86 | engine: mysql |
| 87 | host: 127.0.0.1 |
| 88 | port: 3306 |
| 89 | name: cinder |
| 90 | user: cinder |
| 91 | password: pwd |
| 92 | identity: |
| 93 | engine: keystone |
| 94 | host: 127.0.0.1 |
| 95 | port: 35357 |
| 96 | tenant: service |
| 97 | user: cinder |
| 98 | password: pwd |
| 99 | message_queue: |
| 100 | engine: rabbitmq |
| 101 | host: 127.0.0.1 |
| 102 | port: 5672 |
| 103 | user: openstack |
| 104 | password: pwd |
| 105 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 106 | backend: |
| 107 | 7k2_SAS: |
| 108 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 109 | type_name: 7k2 SAS disk |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 110 | host: 192.168.0.1 |
| 111 | port: 22 |
| 112 | user: username |
| 113 | password: pass |
| 114 | connection: FC/iSCSI |
| 115 | multihost: true |
| 116 | multipath: true |
| 117 | pool: SAS7K2 |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 118 | audit: |
| 119 | enabled: false |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 120 | barbican: |
| 121 | enabled: true |
Ondrej Smola | 74af21b | 2017-04-28 12:30:24 +0200 | [diff] [blame] | 122 | |
| 123 | |
Vasyl Saienko | a5de751 | 2018-07-12 17:28:36 +0300 | [diff] [blame] | 124 | Volume vmware related options: |
| 125 | |
| 126 | .. code-block:: yaml |
| 127 | |
| 128 | cinder: |
| 129 | volume: |
| 130 | backend: |
| 131 | vmware: |
| 132 | engine: vmware |
| 133 | host_username: vmware |
| 134 | host_password: vmware |
| 135 | cluster_names: vmware_cluster01,vmware_cluster02 |
| 136 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 137 | * The CORS parameters enablement: |
Vasyl Saienko | a5de751 | 2018-07-12 17:28:36 +0300 | [diff] [blame] | 138 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 139 | .. code-block:: yaml |
Ondrej Smola | 74af21b | 2017-04-28 12:30:24 +0200 | [diff] [blame] | 140 | |
| 141 | cinder: |
| 142 | controller: |
| 143 | cors: |
| 144 | allowed_origin: https:localhost.local,http:localhost.local |
| 145 | expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 146 | allow_methods: GET,PUT,POST,DELETE,PATCH |
| 147 | allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 148 | allow_credentials: True |
| 149 | max_age: 86400 |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 150 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 151 | * The client-side RabbitMQ HA setup for the controller: |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 152 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 153 | .. code-block:: yaml |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 154 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 155 | cinder: |
| 156 | controller: |
| 157 | .... |
| 158 | message_queue: |
| 159 | engine: rabbitmq |
| 160 | members: |
| 161 | - host: 10.0.16.1 |
| 162 | - host: 10.0.16.2 |
| 163 | - host: 10.0.16.3 |
| 164 | user: openstack |
| 165 | password: pwd |
| 166 | virtual_host: '/openstack' |
| 167 | .... |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 168 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 169 | * The client-side RabbitMQ HA setup for the volume component |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 170 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 171 | .. code-block:: yaml |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 172 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 173 | cinder: |
| 174 | volume: |
| 175 | .... |
| 176 | message_queue: |
| 177 | engine: rabbitmq |
| 178 | members: |
| 179 | - host: 10.0.16.1 |
| 180 | - host: 10.0.16.2 |
| 181 | - host: 10.0.16.3 |
| 182 | user: openstack |
| 183 | password: pwd |
| 184 | virtual_host: '/openstack' |
| 185 | .... |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 186 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 187 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 188 | * Configuring TLS communications. |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 189 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 190 | .. note:: By default, system-wide installed CA certs are used. |
| 191 | Therefore, the ``cacert_file`` and ``cacert`` parameters are |
| 192 | optional. |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 193 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 194 | * RabbitMQ TLS: |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 195 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 196 | .. code-block:: yaml |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 197 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 198 | cinder: |
| 199 | controller, volume: |
| 200 | message_queue: |
| 201 | port: 5671 |
| 202 | ssl: |
| 203 | enabled: True |
| 204 | (optional) cacert: cert body if the cacert_file does not exists |
| 205 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 206 | (optional) version: TLSv1_2 |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 207 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 208 | * MySQL TLS: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 209 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 210 | .. code-block:: yaml |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 211 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 212 | cinder: |
| 213 | controller: |
| 214 | database: |
| 215 | ssl: |
| 216 | enabled: True |
| 217 | (optional) cacert: cert body if the cacert_file does not exists |
| 218 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 219 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 220 | * Openstack HTTPS API: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 221 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 222 | .. code-block:: yaml |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 223 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 224 | 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 Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 232 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 233 | * Cinder setup with zeroing deleted volumes: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 234 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 235 | .. code-block:: yaml |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 236 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 237 | cinder: |
| 238 | controller: |
| 239 | enabled: true |
| 240 | wipe_method: zero |
| 241 | ... |
| 242 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 243 | * Cinder setup with shreding deleted volumes: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 244 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 245 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 246 | |
| 247 | cinder: |
| 248 | controller: |
| 249 | enabled: true |
| 250 | wipe_method: shred |
| 251 | ... |
| 252 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 253 | * Configuration of ``policy.json`` file: |
Dmitry Ukov | 56c2907 | 2017-05-04 16:48:29 +0400 | [diff] [blame] | 254 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 255 | .. code-block:: yaml |
Dmitry Ukov | 56c2907 | 2017-05-04 16:48:29 +0400 | [diff] [blame] | 256 | |
| 257 | cinder: |
| 258 | controller: |
| 259 | .... |
| 260 | policy: |
| 261 | 'volume:delete': 'rule:admin_or_owner' |
| 262 | # Add key without value to remove line from policy.json |
| 263 | 'volume:extend': |
| 264 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 265 | * Default Cinder backend ``lvm_type`` setup: |
sgarbuz | 0901ebe | 2018-06-13 17:16:16 +0300 | [diff] [blame] | 266 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 267 | .. code-block:: yaml |
sgarbuz | 0901ebe | 2018-06-13 17:16:16 +0300 | [diff] [blame] | 268 | |
| 269 | cinder: |
| 270 | volume: |
| 271 | enabled: true |
| 272 | backend: |
| 273 | # Type of LVM volumes to deploy; (default, thin, or auto). Auto defaults to thin if thin is supported. |
| 274 | lvm_type: auto |
| 275 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 276 | * Default Cinder setup with iSCSI target: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 277 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 278 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 279 | |
| 280 | cinder: |
| 281 | controller: |
| 282 | enabled: true |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 283 | version: mitaka |
| 284 | default_volume_type: lvmdriver-1 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 285 | database: |
| 286 | engine: mysql |
| 287 | host: 127.0.0.1 |
| 288 | port: 3306 |
| 289 | name: cinder |
| 290 | user: cinder |
| 291 | password: pwd |
| 292 | identity: |
| 293 | engine: keystone |
| 294 | host: 127.0.0.1 |
| 295 | port: 35357 |
| 296 | tenant: service |
| 297 | user: cinder |
| 298 | password: pwd |
| 299 | message_queue: |
| 300 | engine: rabbitmq |
| 301 | host: 127.0.0.1 |
| 302 | port: 5672 |
| 303 | user: openstack |
| 304 | password: pwd |
| 305 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 306 | backend: |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 307 | lvmdriver-1: |
| 308 | engine: lvm |
| 309 | type_name: lvmdriver-1 |
| 310 | volume_group: cinder-volume |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 311 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 312 | * Cinder setup for IBM Storwize: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 313 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 314 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 315 | |
| 316 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 317 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 318 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 319 | backend: |
| 320 | 7k2_SAS: |
| 321 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 322 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 323 | host: 192.168.0.1 |
| 324 | port: 22 |
| 325 | user: username |
| 326 | password: pass |
| 327 | connection: FC/iSCSI |
| 328 | multihost: true |
| 329 | multipath: true |
| 330 | pool: SAS7K2 |
| 331 | 10k_SAS: |
| 332 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 333 | type_name: 10k SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 334 | host: 192.168.0.1 |
| 335 | port: 22 |
| 336 | user: username |
| 337 | password: pass |
| 338 | connection: FC/iSCSI |
| 339 | multihost: true |
| 340 | multipath: true |
| 341 | pool: SAS10K |
| 342 | 15k_SAS: |
| 343 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 344 | type_name: 15k SAS |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 345 | host: 192.168.0.1 |
| 346 | port: 22 |
| 347 | user: username |
| 348 | password: pass |
| 349 | connection: FC/iSCSI |
| 350 | multihost: true |
| 351 | multipath: true |
| 352 | pool: SAS15K |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 353 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 354 | * Cinder setup with NFS: |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 355 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 356 | .. code-block:: yaml |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 357 | |
| 358 | cinder: |
| 359 | controller: |
| 360 | enabled: true |
| 361 | default_volume_type: nfs-driver |
| 362 | backend: |
| 363 | nfs-driver: |
| 364 | engine: nfs |
| 365 | type_name: nfs-driver |
| 366 | volume_group: cinder-volume |
| 367 | path: /var/lib/cinder/nfs |
| 368 | devices: |
| 369 | - 172.16.10.110:/var/nfs/cinder |
| 370 | options: rw,sync |
| 371 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 372 | * Cinder setup with NetApp: |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 373 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 374 | .. code-block:: yaml |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 375 | |
| 376 | cinder: |
| 377 | controller: |
| 378 | backend: |
| 379 | netapp: |
| 380 | engine: netapp |
| 381 | type_name: netapp |
| 382 | user: openstack |
| 383 | vserver: vm1 |
| 384 | server_hostname: 172.18.2.3 |
| 385 | password: password |
| 386 | storage_protocol: nfs |
| 387 | transport_type: https |
| 388 | lun_space_reservation: enabled |
| 389 | use_multipath_for_image_xfer: True |
Dmitry Stremkouski | ffa53c0 | 2017-09-15 19:47:21 +0300 | [diff] [blame] | 390 | nas_secure_file_operations: false |
| 391 | nas_secure_file_permissions: false |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 392 | devices: |
| 393 | - 172.18.1.2:/vol_1 |
| 394 | - 172.18.1.2:/vol_2 |
| 395 | - 172.18.1.2:/vol_3 |
| 396 | - 172.18.1.2:/vol_4 |
Jakub Pavlik | 94dc0c9 | 2017-06-14 14:53:23 +0200 | [diff] [blame] | 397 | linux: |
| 398 | system: |
| 399 | package: |
| 400 | nfs-common: |
| 401 | version: latest |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 402 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 403 | * Cinder setup with Hitachi VPS: |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 404 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 405 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 406 | |
| 407 | cinder: |
| 408 | controller: |
| 409 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 410 | backend: |
| 411 | hus100_backend: |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 412 | type_name: HUS100 |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 413 | backend: hus100_backend |
| 414 | engine: hitachi_vsp |
| 415 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 416 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 417 | * Cinder setup with Hitachi VPS with defined ``ldev`` range: |
Ondrej Smola | 16d66bd | 2017-01-15 13:56:03 +0100 | [diff] [blame] | 418 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 419 | .. code-block:: yaml |
Ondrej Smola | 16d66bd | 2017-01-15 13:56:03 +0100 | [diff] [blame] | 420 | |
| 421 | cinder: |
| 422 | controller: |
| 423 | enabled: true |
| 424 | backend: |
| 425 | hus100_backend: |
| 426 | type_name: HUS100 |
| 427 | backend: hus100_backend |
| 428 | engine: hitachi_vsp |
| 429 | connection: FC |
| 430 | ldev_range: 0-1000 |
| 431 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 432 | * Cinder setup with Ceph: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 433 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 434 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 435 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 436 | cinder: |
| 437 | controller: |
| 438 | enabled: true |
| 439 | backend: |
| 440 | ceph_backend: |
| 441 | type_name: standard-iops |
| 442 | backend: ceph_backend |
| 443 | pool: volumes |
| 444 | engine: ceph |
| 445 | user: cinder |
| 446 | secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e |
| 447 | client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw== |
| 448 | report_discard_supported: True |
stelucz | 9f4986c | 2018-08-30 09:46:55 +0200 | [diff] [blame] | 449 | image_volume_cache_enabled: False |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 450 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 451 | .. note:: `Ceph official documentation <http://ceph.com/docs/master/rbd/rbd-openstack/>`__ |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 452 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 453 | * Cinder setup with HP3par: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 454 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 455 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 456 | |
| 457 | cinder: |
| 458 | controller: |
| 459 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 460 | backend: |
| 461 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 462 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 463 | backend: hp3par_backend |
| 464 | user: hp3paruser |
| 465 | password: something |
| 466 | url: http://10.10.10.10/api/v1 |
| 467 | cpg: OpenStackCPG |
| 468 | host: 10.10.10.10 |
| 469 | login: hp3paradmin |
| 470 | sanpassword: something |
| 471 | debug: True |
| 472 | snapcpg: OpenStackSNAPCPG |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 473 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 474 | * Cinder setup with Fujitsu Eternus: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 475 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 476 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 477 | |
| 478 | cinder: |
| 479 | volume: |
| 480 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 481 | backend: |
| 482 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 483 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 484 | engine: fujitsu |
| 485 | pool: 10kThinPro |
| 486 | host: 192.168.0.1 |
| 487 | port: 5988 |
| 488 | user: username |
| 489 | password: pass |
| 490 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 491 | name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 492 | 10k_SAS: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 493 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 494 | pool: SAS10K |
| 495 | engine: fujitsu |
| 496 | host: 192.168.0.1 |
| 497 | port: 5988 |
| 498 | user: username |
| 499 | password: pass |
| 500 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 501 | name: 10k_SAS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 502 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 503 | * Cinder setup with IBM GPFS filesystem: |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 504 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 505 | .. code-block:: yaml |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 506 | |
| 507 | cinder: |
| 508 | volume: |
| 509 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 510 | backend: |
| 511 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 512 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 513 | engine: gpfs |
| 514 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 515 | GPFS-SILVER: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 516 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 517 | engine: gpfs |
| 518 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 519 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 520 | * Cinder setup with HP LeftHand: |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 521 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 522 | .. code-block:: yaml |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 523 | |
| 524 | cinder: |
| 525 | volume: |
| 526 | enabled: true |
| 527 | backend: |
| 528 | HP-LeftHand: |
| 529 | type_name: normal-storage |
| 530 | engine: hp_lefthand |
| 531 | api_url: 'https://10.10.10.10:8081/lhos' |
| 532 | username: user |
| 533 | password: password |
| 534 | clustername: cluster1 |
| 535 | iscsi_chap_enabled: false |
| 536 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 537 | * Extra parameters for HP LeftHand: |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 538 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 539 | .. code-block:: yaml |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 540 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 541 | cinder type-key normal-storage set hplh:data_pl=r-10-2 hplh:provisioning=full |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 542 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 543 | * Cinder setup with Solidfire: |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 544 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 545 | .. code-block:: yaml |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 546 | |
| 547 | cinder: |
| 548 | volume: |
| 549 | enabled: true |
| 550 | backend: |
| 551 | solidfire: |
| 552 | type_name: normal-storage |
| 553 | engine: solidfire |
| 554 | san_ip: 10.10.10.10 |
| 555 | san_login: user |
| 556 | san_password: password |
| 557 | clustername: cluster1 |
| 558 | sf_emulate_512: false |
sergio | 9e6387e | 2018-02-19 21:13:14 +0200 | [diff] [blame] | 559 | sf_api_port: 14443 |
| 560 | host: ctl01 |
Aleksieiev, Oleksii | 224e8ae | 2018-07-13 09:43:43 -0700 | [diff] [blame] | 561 | #for compatibility with old versions |
| 562 | sf_account_prefix: PREFIX |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 563 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 564 | * Cinder setup with Block Device driver: |
Alexander Noskov | 023a003 | 2017-06-16 09:31:59 +0200 | [diff] [blame] | 565 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 566 | .. code-block:: yaml |
Alexander Noskov | 023a003 | 2017-06-16 09:31:59 +0200 | [diff] [blame] | 567 | |
| 568 | cinder: |
| 569 | volume: |
| 570 | enabled: true |
| 571 | backend: |
| 572 | bdd: |
| 573 | engine: bdd |
| 574 | enabled: true |
| 575 | type_name: bdd |
| 576 | devices: |
| 577 | - sdb |
| 578 | - sdc |
| 579 | - sdd |
| 580 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 581 | * Enable cinder-backup service for ceph |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 582 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 583 | .. code-block:: yaml |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 584 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 585 | cinder: |
| 586 | controller: |
| 587 | enabled: true |
| 588 | version: mitaka |
| 589 | backup: |
| 590 | engine: ceph |
| 591 | ceph_conf: "/etc/ceph/ceph.conf" |
| 592 | ceph_pool: backup |
| 593 | ceph_stripe_count: 0 |
| 594 | ceph_stripe_unit: 0 |
| 595 | ceph_user: cinder |
| 596 | ceph_chunk_size: 134217728 |
| 597 | restore_discard_excess_bytes: false |
| 598 | volume: |
| 599 | enabled: true |
| 600 | version: mitaka |
| 601 | backup: |
| 602 | engine: ceph |
| 603 | ceph_conf: "/etc/ceph/ceph.conf" |
| 604 | ceph_pool: backup |
| 605 | ceph_stripe_count: 0 |
| 606 | ceph_stripe_unit: 0 |
| 607 | ceph_user: cinder |
| 608 | ceph_chunk_size: 134217728 |
| 609 | restore_discard_excess_bytes: false |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 610 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 611 | * Auditing filter (CADF) enablement: |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 612 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 613 | .. code-block:: yaml |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 614 | |
| 615 | cinder: |
| 616 | controller: |
| 617 | audit: |
| 618 | enabled: true |
| 619 | .... |
| 620 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 621 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 622 | .... |
| 623 | volume: |
| 624 | audit: |
| 625 | enabled: true |
| 626 | .... |
| 627 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 628 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 629 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 630 | * Cinder setup with custom availability zones: |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 631 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 632 | .. code-block:: yaml |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 633 | |
| 634 | cinder: |
| 635 | controller: |
| 636 | default_availability_zone: my-default-zone |
| 637 | storage_availability_zone: my-custom-zone-name |
| 638 | cinder: |
| 639 | volume: |
| 640 | default_availability_zone: my-default-zone |
| 641 | storage_availability_zone: my-custom-zone-name |
| 642 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 643 | The ``default_availability_zone`` is used when a volume has been created, |
| 644 | without specifying a zone in the ``create`` request as this zone must exist |
| 645 | in your configuration. |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 646 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 647 | The ``storage_availability_zone`` is an actual zone where the node belongs to |
| 648 | and must be specified per each node. |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 649 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 650 | * Cinder setup with custom non-admin volume query filters: |
| 651 | |
| 652 | .. code-block:: yaml |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 653 | |
| 654 | cinder: |
| 655 | controller: |
| 656 | query_volume_filters: |
| 657 | - name |
| 658 | - status |
| 659 | - metadata |
| 660 | - availability_zone |
| 661 | - bootable |
| 662 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 663 | * ``public_endpoint`` and ``osapi_volume_base_url``: |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 664 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 665 | * ``public_endpoint`` |
| 666 | Used for configuring versions endpoint |
| 667 | * ``osapi_volume_base_URL`` |
| 668 | Used to present Cinder URL to users |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 669 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 670 | These parameters can be useful when running Cinder under load balancer in |
| 671 | SSL. |
| 672 | |
| 673 | .. code-block:: yaml |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 674 | |
| 675 | cinder: |
| 676 | controller: |
| 677 | public_endpoint_address: https://${_param:cluster_domain}:8776 |
| 678 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 679 | * Client role definition: |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 680 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 681 | .. code-block:: yaml |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 682 | |
| 683 | cinder: |
| 684 | client: |
| 685 | enabled: true |
| 686 | identity: |
| 687 | host: 127.0.0.1 |
| 688 | port: 35357 |
| 689 | project: service |
| 690 | user: cinder |
| 691 | password: pwd |
| 692 | protocol: http |
| 693 | endpoint_type: internalURL |
| 694 | region_name: RegionOne |
| 695 | backend: |
| 696 | ceph: |
| 697 | type_name: standard-iops |
| 698 | engine: ceph |
| 699 | key: |
| 700 | conn_speed: fibre-10G |
| 701 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 702 | * Barbican integration enablement: |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 703 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 704 | .. code-block:: yaml |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 705 | |
| 706 | cinder: |
| 707 | controller: |
| 708 | barbican: |
| 709 | enabled: true |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 710 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 711 | * Keystone API version specification (v3 is default): |
Oleg Iurchenko | 6fe8e5d | 2018-02-20 14:26:04 +0200 | [diff] [blame] | 712 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 713 | .. code-block:: yaml |
Oleg Iurchenko | 6fe8e5d | 2018-02-20 14:26:04 +0200 | [diff] [blame] | 714 | |
| 715 | cinder: |
| 716 | controller: |
| 717 | identity: |
| 718 | api_version: v2.0 |
| 719 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 720 | **Enhanced logging with logging.conf** |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 721 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 722 | By default ``logging.conf`` is disabled. |
| 723 | You can enable per-binary ``logging.conf`` by setting the following |
| 724 | parameters: |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 725 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 726 | * ``openstack_log_appender`` |
| 727 | Set to ``true`` to enable ``log_config_append`` for all OpenStack |
| 728 | services |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 729 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 730 | * ``openstack_fluentd_handler_enabled`` |
| 731 | Set to ``true`` to enable FluentHandler for all Openstack services |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 732 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 733 | * ``openstack_ossyslog_handler_enabled`` |
| 734 | Set to ``true`` to enable OSSysLogHandler for all Openstack services |
| 735 | |
| 736 | Only WatchedFileHandler, OSSysLogHandler, and FluentHandler are available. |
| 737 | |
| 738 | To configure this functionality with pillar: |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 739 | |
| 740 | .. code-block:: yaml |
| 741 | |
| 742 | cinder: |
| 743 | controller: |
| 744 | logging: |
| 745 | log_appender: true |
| 746 | log_handlers: |
| 747 | watchedfile: |
| 748 | enabled: true |
| 749 | fluentd: |
| 750 | enabled: true |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 751 | ossyslog: |
| 752 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 753 | |
| 754 | volume: |
| 755 | logging: |
| 756 | log_appender: true |
| 757 | log_handlers: |
| 758 | watchedfile: |
| 759 | enabled: true |
| 760 | fluentd: |
| 761 | enabled: true |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 762 | ossyslog: |
| 763 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 764 | |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 765 | Enable x509 and ssl communication between Cinder and Galera cluster. |
| 766 | --------------------- |
| 767 | By default communication between Cinder and Galera is unsecure. |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 768 | |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame^] | 769 | cinder: |
| 770 | volume: |
| 771 | database: |
| 772 | x509: |
| 773 | enabled: True |
| 774 | controller: |
| 775 | database: |
| 776 | x509: |
| 777 | enabled: True |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 778 | |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame^] | 779 | You able to set custom certificates in pillar: |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 780 | |
| 781 | cinder: |
| 782 | controller: |
| 783 | database: |
| 784 | x509: |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame^] | 785 | cacert: (certificate content) |
| 786 | cert: (certificate content) |
| 787 | key: (certificate content) |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 788 | volume: |
| 789 | database: |
| 790 | x509: |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame^] | 791 | cacert: (certificate content) |
| 792 | cert: (certificate content) |
| 793 | key: (certificate content) |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 794 | |
| 795 | You can read more about it here: |
| 796 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
| 797 | |
| 798 | **Documentation and bugs** |
| 799 | ====================== |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 800 | * http://salt-formulas.readthedocs.io/ |
| 801 | Learn how to install and update salt-formulas |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 802 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 803 | * https://github.com/salt-formulas/salt-formula-cinder/issues |
| 804 | In the unfortunate event that bugs are discovered, report the issue to the |
| 805 | appropriate issue tracker. Use the Github issue tracker for a specific salt |
| 806 | formula |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 807 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 808 | * https://launchpad.net/salt-formulas |
| 809 | For feature requests, bug reports, or blueprints affecting the entire |
| 810 | ecosystem, use the Launchpad salt-formulas project |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 811 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 812 | * https://launchpad.net/~salt-formulas-users |
| 813 | Join the salt-formulas-users team and subscribe to mailing list if required |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 814 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 815 | * https://github.com/salt-formulas/salt-formula-cinder |
| 816 | Develop the salt-formulas projects in the master branch and then submit pull |
| 817 | requests against a specific formula |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 818 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 819 | * #salt-formulas @ irc.freenode.net |
| 820 | Use this IRC channel in case of any questions or feedback which is always |
| 821 | welcome |