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 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 252 | |
| 253 | Default Cinder setup with iSCSI target |
| 254 | |
| 255 | .. code-block:: yaml |
| 256 | |
| 257 | cinder: |
| 258 | controller: |
| 259 | enabled: true |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 260 | version: mitaka |
| 261 | default_volume_type: lvmdriver-1 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 262 | database: |
| 263 | engine: mysql |
| 264 | host: 127.0.0.1 |
| 265 | port: 3306 |
| 266 | name: cinder |
| 267 | user: cinder |
| 268 | password: pwd |
| 269 | identity: |
| 270 | engine: keystone |
| 271 | host: 127.0.0.1 |
| 272 | port: 35357 |
| 273 | tenant: service |
| 274 | user: cinder |
| 275 | password: pwd |
| 276 | message_queue: |
| 277 | engine: rabbitmq |
| 278 | host: 127.0.0.1 |
| 279 | port: 5672 |
| 280 | user: openstack |
| 281 | password: pwd |
| 282 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 283 | backend: |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 284 | lvmdriver-1: |
| 285 | engine: lvm |
| 286 | type_name: lvmdriver-1 |
| 287 | volume_group: cinder-volume |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 288 | |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 289 | Cinder setup for IBM Storwize |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 290 | |
| 291 | .. code-block:: yaml |
| 292 | |
| 293 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 294 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 295 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 296 | backend: |
| 297 | 7k2_SAS: |
| 298 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 299 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 300 | host: 192.168.0.1 |
| 301 | port: 22 |
| 302 | user: username |
| 303 | password: pass |
| 304 | connection: FC/iSCSI |
| 305 | multihost: true |
| 306 | multipath: true |
| 307 | pool: SAS7K2 |
| 308 | 10k_SAS: |
| 309 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 310 | type_name: 10k 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: SAS10K |
| 319 | 15k_SAS: |
| 320 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 321 | type_name: 15k SAS |
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: SAS15K |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 330 | |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 331 | |
| 332 | Cinder setup with NFS |
| 333 | |
| 334 | .. code-block:: yaml |
| 335 | |
| 336 | cinder: |
| 337 | controller: |
| 338 | enabled: true |
| 339 | default_volume_type: nfs-driver |
| 340 | backend: |
| 341 | nfs-driver: |
| 342 | engine: nfs |
| 343 | type_name: nfs-driver |
| 344 | volume_group: cinder-volume |
| 345 | path: /var/lib/cinder/nfs |
| 346 | devices: |
| 347 | - 172.16.10.110:/var/nfs/cinder |
| 348 | options: rw,sync |
| 349 | |
| 350 | |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 351 | Cinder setup with NetApp |
| 352 | |
| 353 | .. code-block:: yaml |
| 354 | |
| 355 | cinder: |
| 356 | controller: |
| 357 | backend: |
| 358 | netapp: |
| 359 | engine: netapp |
| 360 | type_name: netapp |
| 361 | user: openstack |
| 362 | vserver: vm1 |
| 363 | server_hostname: 172.18.2.3 |
| 364 | password: password |
| 365 | storage_protocol: nfs |
| 366 | transport_type: https |
| 367 | lun_space_reservation: enabled |
| 368 | use_multipath_for_image_xfer: True |
Dmitry Stremkouski | ffa53c0 | 2017-09-15 19:47:21 +0300 | [diff] [blame] | 369 | nas_secure_file_operations: false |
| 370 | nas_secure_file_permissions: false |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 371 | devices: |
| 372 | - 172.18.1.2:/vol_1 |
| 373 | - 172.18.1.2:/vol_2 |
| 374 | - 172.18.1.2:/vol_3 |
| 375 | - 172.18.1.2:/vol_4 |
Jakub Pavlik | 94dc0c9 | 2017-06-14 14:53:23 +0200 | [diff] [blame] | 376 | linux: |
| 377 | system: |
| 378 | package: |
| 379 | nfs-common: |
| 380 | version: latest |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 381 | |
| 382 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 383 | Cinder setup with Hitachi VPS |
| 384 | |
| 385 | .. code-block:: yaml |
| 386 | |
| 387 | cinder: |
| 388 | controller: |
| 389 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 390 | backend: |
| 391 | hus100_backend: |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 392 | type_name: HUS100 |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 393 | backend: hus100_backend |
| 394 | engine: hitachi_vsp |
| 395 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 396 | |
Ondrej Smola | 16d66bd | 2017-01-15 13:56:03 +0100 | [diff] [blame] | 397 | Cinder setup with Hitachi VPS with defined ldev range |
| 398 | |
| 399 | .. code-block:: yaml |
| 400 | |
| 401 | cinder: |
| 402 | controller: |
| 403 | enabled: true |
| 404 | backend: |
| 405 | hus100_backend: |
| 406 | type_name: HUS100 |
| 407 | backend: hus100_backend |
| 408 | engine: hitachi_vsp |
| 409 | connection: FC |
| 410 | ldev_range: 0-1000 |
| 411 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 412 | Cinder setup with CEPH |
| 413 | |
| 414 | .. code-block:: yaml |
| 415 | |
| 416 | cinder: |
| 417 | controller: |
| 418 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 419 | backend: |
| 420 | ceph_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 421 | type_name: standard-iops |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 422 | backend: ceph_backend |
| 423 | pool: volumes |
| 424 | engine: ceph |
| 425 | user: cinder |
| 426 | secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e |
| 427 | client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw== |
Michel Nederlof | b43a487 | 2017-06-20 09:36:47 +0200 | [diff] [blame] | 428 | report_discard_supported: True |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 429 | |
| 430 | http://ceph.com/docs/master/rbd/rbd-openstack/ |
| 431 | |
| 432 | |
| 433 | Cinder setup with HP3par |
| 434 | |
| 435 | .. code-block:: yaml |
| 436 | |
| 437 | cinder: |
| 438 | controller: |
| 439 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 440 | backend: |
| 441 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 442 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 443 | backend: hp3par_backend |
| 444 | user: hp3paruser |
| 445 | password: something |
| 446 | url: http://10.10.10.10/api/v1 |
| 447 | cpg: OpenStackCPG |
| 448 | host: 10.10.10.10 |
| 449 | login: hp3paradmin |
| 450 | sanpassword: something |
| 451 | debug: True |
| 452 | snapcpg: OpenStackSNAPCPG |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 453 | |
| 454 | Cinder setup with Fujitsu Eternus |
| 455 | |
| 456 | .. code-block:: yaml |
| 457 | |
| 458 | cinder: |
| 459 | volume: |
| 460 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 461 | backend: |
| 462 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 463 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 464 | engine: fujitsu |
| 465 | pool: 10kThinPro |
| 466 | host: 192.168.0.1 |
| 467 | port: 5988 |
| 468 | user: username |
| 469 | password: pass |
| 470 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 471 | name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 472 | 10k_SAS: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 473 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 474 | pool: SAS10K |
| 475 | engine: fujitsu |
| 476 | host: 192.168.0.1 |
| 477 | port: 5988 |
| 478 | user: username |
| 479 | password: pass |
| 480 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 481 | name: 10k_SAS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 482 | |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 483 | Cinder setup with IBM GPFS filesystem |
| 484 | |
| 485 | .. code-block:: yaml |
| 486 | |
| 487 | cinder: |
| 488 | volume: |
| 489 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 490 | backend: |
| 491 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 492 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 493 | engine: gpfs |
| 494 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 495 | GPFS-SILVER: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 496 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 497 | engine: gpfs |
| 498 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 499 | |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 500 | Cinder setup with HP LeftHand |
| 501 | |
| 502 | .. code-block:: yaml |
| 503 | |
| 504 | cinder: |
| 505 | volume: |
| 506 | enabled: true |
| 507 | backend: |
| 508 | HP-LeftHand: |
| 509 | type_name: normal-storage |
| 510 | engine: hp_lefthand |
| 511 | api_url: 'https://10.10.10.10:8081/lhos' |
| 512 | username: user |
| 513 | password: password |
| 514 | clustername: cluster1 |
| 515 | iscsi_chap_enabled: false |
| 516 | |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 517 | Extra parameters for HP LeftHand |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 518 | |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 519 | .. code-block:: yaml |
| 520 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 521 | 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] | 522 | |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 523 | Cinder setup with Solidfire |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 524 | |
| 525 | .. code-block:: yaml |
| 526 | |
| 527 | cinder: |
| 528 | volume: |
| 529 | enabled: true |
| 530 | backend: |
| 531 | solidfire: |
| 532 | type_name: normal-storage |
| 533 | engine: solidfire |
| 534 | san_ip: 10.10.10.10 |
| 535 | san_login: user |
| 536 | san_password: password |
| 537 | clustername: cluster1 |
| 538 | sf_emulate_512: false |
sergio | 9e6387e | 2018-02-19 21:13:14 +0200 | [diff] [blame^] | 539 | sf_api_port: 14443 |
| 540 | host: ctl01 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 541 | |
Alexander Noskov | 023a003 | 2017-06-16 09:31:59 +0200 | [diff] [blame] | 542 | Cinder setup with Block Device driver |
| 543 | |
| 544 | .. code-block:: yaml |
| 545 | |
| 546 | cinder: |
| 547 | volume: |
| 548 | enabled: true |
| 549 | backend: |
| 550 | bdd: |
| 551 | engine: bdd |
| 552 | enabled: true |
| 553 | type_name: bdd |
| 554 | devices: |
| 555 | - sdb |
| 556 | - sdc |
| 557 | - sdd |
| 558 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 559 | Enable cinder-backup service for ceph |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 560 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 561 | .. code-block:: yaml |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 562 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 563 | cinder: |
| 564 | controller: |
| 565 | enabled: true |
| 566 | version: mitaka |
| 567 | backup: |
| 568 | engine: ceph |
| 569 | ceph_conf: "/etc/ceph/ceph.conf" |
| 570 | ceph_pool: backup |
| 571 | ceph_stripe_count: 0 |
| 572 | ceph_stripe_unit: 0 |
| 573 | ceph_user: cinder |
| 574 | ceph_chunk_size: 134217728 |
| 575 | restore_discard_excess_bytes: false |
| 576 | volume: |
| 577 | enabled: true |
| 578 | version: mitaka |
| 579 | backup: |
| 580 | engine: ceph |
| 581 | ceph_conf: "/etc/ceph/ceph.conf" |
| 582 | ceph_pool: backup |
| 583 | ceph_stripe_count: 0 |
| 584 | ceph_stripe_unit: 0 |
| 585 | ceph_user: cinder |
| 586 | ceph_chunk_size: 134217728 |
| 587 | restore_discard_excess_bytes: false |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 588 | |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 589 | Enable auditing filter, ie: CADF |
| 590 | |
| 591 | .. code-block:: yaml |
| 592 | |
| 593 | cinder: |
| 594 | controller: |
| 595 | audit: |
| 596 | enabled: true |
| 597 | .... |
| 598 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 599 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 600 | .... |
| 601 | volume: |
| 602 | audit: |
| 603 | enabled: true |
| 604 | .... |
| 605 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 606 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 607 | |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 608 | |
| 609 | Cinder setup with custom availability zones: |
| 610 | |
| 611 | .. code-block:: yaml |
| 612 | |
| 613 | cinder: |
| 614 | controller: |
| 615 | default_availability_zone: my-default-zone |
| 616 | storage_availability_zone: my-custom-zone-name |
| 617 | cinder: |
| 618 | volume: |
| 619 | default_availability_zone: my-default-zone |
| 620 | storage_availability_zone: my-custom-zone-name |
| 621 | |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 622 | |
| 623 | Cinder setup with custom non-admin volume query filters: |
| 624 | |
| 625 | .. code-block:: yaml |
| 626 | |
| 627 | cinder: |
| 628 | controller: |
| 629 | query_volume_filters: |
| 630 | - name |
| 631 | - status |
| 632 | - metadata |
| 633 | - availability_zone |
| 634 | - bootable |
| 635 | |
| 636 | |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 637 | public_endpoint and osapi_volume_base_url parameters: |
| 638 | "public_endpoint" is used for configuring versions endpoint, |
| 639 | "osapi_volume_base_URL" is used to present Cinder URL to users. |
| 640 | They are useful when running Cinder under load balancer in SSL. |
| 641 | |
| 642 | .. code-block:: yaml |
| 643 | |
| 644 | cinder: |
| 645 | controller: |
| 646 | public_endpoint_address: https://${_param:cluster_domain}:8776 |
| 647 | |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 648 | 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) |
| 649 | The storage availability zone is the actual zone where the node belongs to. Make sure to specify this per node. |
| 650 | Check the documentation of OpenStack for more information |
| 651 | |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 652 | |
| 653 | Client role |
| 654 | |
| 655 | .. code-block:: yaml |
| 656 | |
| 657 | cinder: |
| 658 | client: |
| 659 | enabled: true |
| 660 | identity: |
| 661 | host: 127.0.0.1 |
| 662 | port: 35357 |
| 663 | project: service |
| 664 | user: cinder |
| 665 | password: pwd |
| 666 | protocol: http |
| 667 | endpoint_type: internalURL |
| 668 | region_name: RegionOne |
| 669 | backend: |
| 670 | ceph: |
| 671 | type_name: standard-iops |
| 672 | engine: ceph |
| 673 | key: |
| 674 | conn_speed: fibre-10G |
| 675 | |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 676 | Enable Barbican integration |
| 677 | |
| 678 | .. code-block:: yaml |
| 679 | |
| 680 | cinder: |
| 681 | controller: |
| 682 | barbican: |
| 683 | enabled: true |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 684 | |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 685 | Enhanced logging with logging.conf |
| 686 | ---------------------------------- |
| 687 | |
| 688 | By default logging.conf is disabled. |
| 689 | |
| 690 | That is possible to enable per-binary logging.conf with new variables: |
| 691 | * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services; |
| 692 | * 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] | 693 | * 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] | 694 | |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 695 | Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available. |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 696 | |
| 697 | Also it is possible to configure this with pillar: |
| 698 | |
| 699 | .. code-block:: yaml |
| 700 | |
| 701 | cinder: |
| 702 | controller: |
| 703 | logging: |
| 704 | log_appender: true |
| 705 | log_handlers: |
| 706 | watchedfile: |
| 707 | enabled: true |
| 708 | fluentd: |
| 709 | enabled: true |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 710 | ossyslog: |
| 711 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 712 | |
| 713 | volume: |
| 714 | logging: |
| 715 | log_appender: true |
| 716 | log_handlers: |
| 717 | watchedfile: |
| 718 | enabled: true |
| 719 | fluentd: |
| 720 | enabled: true |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 721 | ossyslog: |
| 722 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 723 | |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 724 | Documentation and Bugs |
| 725 | ============================ |
| 726 | |
| 727 | To learn how to deploy OpenStack Salt, consult the documentation available |
| 728 | online at: |
| 729 | |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 730 | https://wiki.openstack.org/wiki/OpenStackSalt |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 731 | |
| 732 | In the unfortunate event that bugs are discovered, they should be reported to |
| 733 | the appropriate bug tracker. If you obtained the software from a 3rd party |
| 734 | operating system vendor, it is often wise to use their own bug tracker for |
| 735 | reporting problems. In all other cases use the master OpenStack bug tracker, |
| 736 | available at: |
| 737 | |
| 738 | http://bugs.launchpad.net/openstack-salt |
| 739 | |
| 740 | Developers wishing to work on the OpenStack Salt project should always base |
| 741 | their work on the latest formulas code, available from the master GIT |
| 742 | repository at: |
| 743 | |
| 744 | https://git.openstack.org/cgit/openstack/salt-formula-cinder |
| 745 | |
| 746 | Developers should also join the discussion on the IRC list, at: |
| 747 | |
| 748 | https://wiki.openstack.org/wiki/Meetings/openstack-salt |
Filip Pytloun | b0f5c1f | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 749 | |
| 750 | Documentation and Bugs |
| 751 | ====================== |
| 752 | |
| 753 | To learn how to install and update salt-formulas, consult the documentation |
| 754 | available online at: |
| 755 | |
| 756 | http://salt-formulas.readthedocs.io/ |
| 757 | |
| 758 | In the unfortunate event that bugs are discovered, they should be reported to |
| 759 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 760 | formula: |
| 761 | |
| 762 | https://github.com/salt-formulas/salt-formula-cinder/issues |
| 763 | |
| 764 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 765 | use Launchpad salt-formulas project: |
| 766 | |
| 767 | https://launchpad.net/salt-formulas |
| 768 | |
| 769 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 770 | |
| 771 | https://launchpad.net/~salt-formulas-users |
| 772 | |
| 773 | Developers wishing to work on the salt-formulas projects should always base |
| 774 | their work on master branch and submit pull request against specific formula. |
| 775 | |
| 776 | https://github.com/salt-formulas/salt-formula-cinder |
| 777 | |
| 778 | Any questions or feedback is always welcome so feel free to join our IRC |
| 779 | channel: |
| 780 | |
| 781 | #salt-formulas @ irc.freenode.net |