Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 1 | ============================== |
| 2 | Openstack Cinder Block Storage |
| 3 | ============================== |
| 4 | |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 5 | Cinder provides an infrastructure for managing volumes in OpenStack. It was |
| 6 | originally a Nova component called nova-volume, but has become an independent |
| 7 | project since the Folsom release. |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 8 | |
| 9 | Sample pillars |
| 10 | ============== |
| 11 | |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 12 | New structure divides cinder-api,cinder-scheduler to role controller and |
| 13 | cinder-volume to role volume. |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 14 | |
| 15 | .. code-block:: yaml |
| 16 | |
| 17 | cinder: |
| 18 | controller: |
| 19 | enabled: true |
| 20 | version: juno |
Dmitry Stremkovskiy | 9f4ac8b | 2017-07-11 09:48:46 +0300 | [diff] [blame] | 21 | cinder_uid: 304 |
| 22 | cinder_gid: 304 |
Dmitry Stremkovskiy | ef4c7d0 | 2017-07-30 16:51:52 +0300 | [diff] [blame] | 23 | nas_secure_file_permissions: false |
| 24 | nas_secure_file_operations: false |
Dmitry Stremkovskiy | a5dd799 | 2017-07-30 19:54:23 +0300 | [diff] [blame] | 25 | cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef |
| 26 | cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 27 | default_volume_type: 7k2SaS |
stelucz | 1f3a82f | 2017-09-19 18:38:13 +0200 | [diff] [blame] | 28 | enable_force_upload: true |
Damian Szeluga | 0918f5a | 2017-04-19 12:26:56 +0200 | [diff] [blame] | 29 | availability_zone_fallback: True |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 30 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 51 | backend: |
| 52 | 7k2_SAS: |
| 53 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 54 | type_name: slow-disks |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 55 | 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 Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 63 | audit: |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 64 | enabled: false |
Simon Pasquier | 9089de4 | 2017-02-03 16:13:22 +0100 | [diff] [blame] | 65 | osapi_max_limit: 500 |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 66 | barbican: |
| 67 | enabled: true |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 68 | |
| 69 | cinder: |
| 70 | volume: |
| 71 | enabled: true |
| 72 | version: juno |
Dmitry Stremkovskiy | 9f4ac8b | 2017-07-11 09:48:46 +0300 | [diff] [blame] | 73 | cinder_uid: 304 |
| 74 | cinder_gid: 304 |
Dmitry Stremkovskiy | ef4c7d0 | 2017-07-30 16:51:52 +0300 | [diff] [blame] | 75 | nas_secure_file_permissions: false |
| 76 | nas_secure_file_operations: false |
Dmitry Stremkovskiy | a5dd799 | 2017-07-30 19:54:23 +0300 | [diff] [blame] | 77 | cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef |
| 78 | cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 79 | default_volume_type: 7k2SaS |
stelucz | 1f3a82f | 2017-09-19 18:38:13 +0200 | [diff] [blame] | 80 | nable_force_upload: true |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 81 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 102 | backend: |
| 103 | 7k2_SAS: |
| 104 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 105 | type_name: 7k2 SAS disk |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 106 | 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 Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 114 | audit: |
| 115 | enabled: false |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 116 | barbican: |
| 117 | enabled: true |
Ondrej Smola | 74af21b | 2017-04-28 12:30:24 +0200 | [diff] [blame] | 118 | |
| 119 | |
| 120 | Enable 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 Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 133 | |
| 134 | Client-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 | |
| 152 | Client-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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 169 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 170 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 171 | Configuring TLS communications |
| 172 | ------------------------------ |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 173 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 174 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 175 | **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 Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 179 | |
| 180 | .. code-block:: yaml |
| 181 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 182 | cinder: |
| 183 | controller, volume: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 184 | message_queue: |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 185 | port: 5671 |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 186 | ssl: |
| 187 | enabled: True |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 188 | (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 Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 191 | |
| 192 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 193 | - **MySQL TLS** |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 194 | |
| 195 | .. code-block:: yaml |
| 196 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 197 | cinder: |
| 198 | controller: |
| 199 | database: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 200 | ssl: |
| 201 | enabled: True |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 202 | (optional) cacert: cert body if the cacert_file does not exists |
| 203 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 204 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 205 | - **Openstack HTTPS API** |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 206 | |
| 207 | .. code-block:: yaml |
| 208 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 209 | 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 Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 217 | |
| 218 | |
| 219 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 220 | Cinder setup with zeroing deleted volumes |
| 221 | |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 222 | .. code-block:: yaml |
| 223 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 224 | cinder: |
| 225 | controller: |
| 226 | enabled: true |
| 227 | wipe_method: zero |
| 228 | ... |
| 229 | |
| 230 | Cinder 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 Ukov | 56c2907 | 2017-05-04 16:48:29 +0400 | [diff] [blame] | 240 | Configuration 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 | |
sgarbuz | 0901ebe | 2018-06-13 17:16:16 +0300 | [diff] [blame] | 252 | Default 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 263 | |
| 264 | Default Cinder setup with iSCSI target |
| 265 | |
| 266 | .. code-block:: yaml |
| 267 | |
| 268 | cinder: |
| 269 | controller: |
| 270 | enabled: true |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 271 | version: mitaka |
| 272 | default_volume_type: lvmdriver-1 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 273 | 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 Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 294 | backend: |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 295 | lvmdriver-1: |
| 296 | engine: lvm |
| 297 | type_name: lvmdriver-1 |
| 298 | volume_group: cinder-volume |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 299 | |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 300 | Cinder setup for IBM Storwize |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 301 | |
| 302 | .. code-block:: yaml |
| 303 | |
| 304 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 305 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 306 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 307 | backend: |
| 308 | 7k2_SAS: |
| 309 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 310 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 311 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 321 | type_name: 10k SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 322 | 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 Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 332 | type_name: 15k SAS |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 333 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 341 | |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 342 | |
| 343 | Cinder 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 Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 362 | Cinder 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 Stremkouski | ffa53c0 | 2017-09-15 19:47:21 +0300 | [diff] [blame] | 380 | nas_secure_file_operations: false |
| 381 | nas_secure_file_permissions: false |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 382 | 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 Pavlik | 94dc0c9 | 2017-06-14 14:53:23 +0200 | [diff] [blame] | 387 | linux: |
| 388 | system: |
| 389 | package: |
| 390 | nfs-common: |
| 391 | version: latest |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 392 | |
| 393 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 394 | Cinder setup with Hitachi VPS |
| 395 | |
| 396 | .. code-block:: yaml |
| 397 | |
| 398 | cinder: |
| 399 | controller: |
| 400 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 401 | backend: |
| 402 | hus100_backend: |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 403 | type_name: HUS100 |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 404 | backend: hus100_backend |
| 405 | engine: hitachi_vsp |
| 406 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 407 | |
Ondrej Smola | 16d66bd | 2017-01-15 13:56:03 +0100 | [diff] [blame] | 408 | Cinder 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 423 | Cinder setup with CEPH |
| 424 | |
| 425 | .. code-block:: yaml |
| 426 | |
| 427 | cinder: |
| 428 | controller: |
| 429 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 430 | backend: |
| 431 | ceph_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 432 | type_name: standard-iops |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 433 | 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 Nederlof | b43a487 | 2017-06-20 09:36:47 +0200 | [diff] [blame] | 439 | report_discard_supported: True |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 440 | |
| 441 | http://ceph.com/docs/master/rbd/rbd-openstack/ |
| 442 | |
| 443 | |
| 444 | Cinder setup with HP3par |
| 445 | |
| 446 | .. code-block:: yaml |
| 447 | |
| 448 | cinder: |
| 449 | controller: |
| 450 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 451 | backend: |
| 452 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 453 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 454 | 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 Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 464 | |
| 465 | Cinder setup with Fujitsu Eternus |
| 466 | |
| 467 | .. code-block:: yaml |
| 468 | |
| 469 | cinder: |
| 470 | volume: |
| 471 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 472 | backend: |
| 473 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 474 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 475 | engine: fujitsu |
| 476 | pool: 10kThinPro |
| 477 | host: 192.168.0.1 |
| 478 | port: 5988 |
| 479 | user: username |
| 480 | password: pass |
| 481 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 482 | name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 483 | 10k_SAS: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 484 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 485 | pool: SAS10K |
| 486 | engine: fujitsu |
| 487 | host: 192.168.0.1 |
| 488 | port: 5988 |
| 489 | user: username |
| 490 | password: pass |
| 491 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 492 | name: 10k_SAS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 493 | |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 494 | Cinder setup with IBM GPFS filesystem |
| 495 | |
| 496 | .. code-block:: yaml |
| 497 | |
| 498 | cinder: |
| 499 | volume: |
| 500 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 501 | backend: |
| 502 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 503 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 504 | engine: gpfs |
| 505 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 506 | GPFS-SILVER: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 507 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 508 | engine: gpfs |
| 509 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 510 | |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 511 | Cinder 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 Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 528 | Extra parameters for HP LeftHand |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 529 | |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 530 | .. code-block:: yaml |
| 531 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 532 | 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] | 533 | |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 534 | Cinder setup with Solidfire |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 535 | |
| 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 |
sergio | 9e6387e | 2018-02-19 21:13:14 +0200 | [diff] [blame] | 550 | sf_api_port: 14443 |
| 551 | host: ctl01 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 552 | |
Alexander Noskov | 023a003 | 2017-06-16 09:31:59 +0200 | [diff] [blame] | 553 | Cinder 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 Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 570 | Enable cinder-backup service for ceph |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 571 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 572 | .. code-block:: yaml |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 573 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 574 | 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 Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 599 | |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 600 | Enable 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 Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 619 | |
| 620 | Cinder 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 Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 633 | |
| 634 | Cinder 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 Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 648 | public_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. |
| 651 | They 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 Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 659 | The 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) |
| 660 | The storage availability zone is the actual zone where the node belongs to. Make sure to specify this per node. |
| 661 | Check the documentation of OpenStack for more information |
| 662 | |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 663 | |
| 664 | Client 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 Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 687 | Enable Barbican integration |
| 688 | |
| 689 | .. code-block:: yaml |
| 690 | |
| 691 | cinder: |
| 692 | controller: |
| 693 | barbican: |
| 694 | enabled: true |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 695 | |
Oleg Iurchenko | 6fe8e5d | 2018-02-20 14:26:04 +0200 | [diff] [blame] | 696 | |
| 697 | Specify 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 Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 706 | Enhanced logging with logging.conf |
| 707 | ---------------------------------- |
| 708 | |
| 709 | By default logging.conf is disabled. |
| 710 | |
| 711 | That 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 Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 714 | * openstack_ossyslog_handler_enabled - set to true to enable OSSysLogHandler for all Openstack services. |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 715 | |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 716 | Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available. |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 717 | |
| 718 | Also 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 Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 731 | ossyslog: |
| 732 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 733 | |
| 734 | volume: |
| 735 | logging: |
| 736 | log_appender: true |
| 737 | log_handlers: |
| 738 | watchedfile: |
| 739 | enabled: true |
| 740 | fluentd: |
| 741 | enabled: true |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 742 | ossyslog: |
| 743 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 744 | |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 745 | Documentation and Bugs |
| 746 | ============================ |
| 747 | |
| 748 | To learn how to deploy OpenStack Salt, consult the documentation available |
| 749 | online at: |
| 750 | |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 751 | https://wiki.openstack.org/wiki/OpenStackSalt |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 752 | |
| 753 | In the unfortunate event that bugs are discovered, they should be reported to |
| 754 | the appropriate bug tracker. If you obtained the software from a 3rd party |
| 755 | operating system vendor, it is often wise to use their own bug tracker for |
| 756 | reporting problems. In all other cases use the master OpenStack bug tracker, |
| 757 | available at: |
| 758 | |
| 759 | http://bugs.launchpad.net/openstack-salt |
| 760 | |
| 761 | Developers wishing to work on the OpenStack Salt project should always base |
| 762 | their work on the latest formulas code, available from the master GIT |
| 763 | repository at: |
| 764 | |
| 765 | https://git.openstack.org/cgit/openstack/salt-formula-cinder |
| 766 | |
| 767 | Developers should also join the discussion on the IRC list, at: |
| 768 | |
| 769 | https://wiki.openstack.org/wiki/Meetings/openstack-salt |
Filip Pytloun | b0f5c1f | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 770 | |
| 771 | Documentation and Bugs |
| 772 | ====================== |
| 773 | |
| 774 | To learn how to install and update salt-formulas, consult the documentation |
| 775 | available online at: |
| 776 | |
| 777 | http://salt-formulas.readthedocs.io/ |
| 778 | |
| 779 | In the unfortunate event that bugs are discovered, they should be reported to |
| 780 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 781 | formula: |
| 782 | |
| 783 | https://github.com/salt-formulas/salt-formula-cinder/issues |
| 784 | |
| 785 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 786 | use Launchpad salt-formulas project: |
| 787 | |
| 788 | https://launchpad.net/salt-formulas |
| 789 | |
| 790 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 791 | |
| 792 | https://launchpad.net/~salt-formulas-users |
| 793 | |
| 794 | Developers wishing to work on the salt-formulas projects should always base |
| 795 | their work on master branch and submit pull request against specific formula. |
| 796 | |
| 797 | https://github.com/salt-formulas/salt-formula-cinder |
| 798 | |
| 799 | Any questions or feedback is always welcome so feel free to join our IRC |
| 800 | channel: |
| 801 | |
| 802 | #salt-formulas @ irc.freenode.net |