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 |
Damian Szeluga | 0918f5a | 2017-04-19 12:26:56 +0200 | [diff] [blame] | 28 | availability_zone_fallback: True |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 29 | database: |
| 30 | engine: mysql |
| 31 | host: 127.0.0.1 |
| 32 | port: 3306 |
| 33 | name: cinder |
| 34 | user: cinder |
| 35 | password: pwd |
| 36 | identity: |
| 37 | engine: keystone |
| 38 | host: 127.0.0.1 |
| 39 | port: 35357 |
| 40 | tenant: service |
| 41 | user: cinder |
| 42 | password: pwd |
| 43 | message_queue: |
| 44 | engine: rabbitmq |
| 45 | host: 127.0.0.1 |
| 46 | port: 5672 |
| 47 | user: openstack |
| 48 | password: pwd |
| 49 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 50 | backend: |
| 51 | 7k2_SAS: |
| 52 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 53 | type_name: slow-disks |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 54 | host: 192.168.0.1 |
| 55 | port: 22 |
| 56 | user: username |
| 57 | password: pass |
| 58 | connection: FC/iSCSI |
| 59 | multihost: true |
| 60 | multipath: true |
| 61 | pool: SAS7K2 |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 62 | audit: |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 63 | enabled: false |
Simon Pasquier | 9089de4 | 2017-02-03 16:13:22 +0100 | [diff] [blame] | 64 | osapi_max_limit: 500 |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 65 | barbican: |
| 66 | enabled: true |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 67 | |
| 68 | cinder: |
| 69 | volume: |
| 70 | enabled: true |
| 71 | version: juno |
Dmitry Stremkovskiy | 9f4ac8b | 2017-07-11 09:48:46 +0300 | [diff] [blame] | 72 | cinder_uid: 304 |
| 73 | cinder_gid: 304 |
Dmitry Stremkovskiy | ef4c7d0 | 2017-07-30 16:51:52 +0300 | [diff] [blame] | 74 | nas_secure_file_permissions: false |
| 75 | nas_secure_file_operations: false |
Dmitry Stremkovskiy | a5dd799 | 2017-07-30 19:54:23 +0300 | [diff] [blame] | 76 | cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef |
| 77 | cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 78 | default_volume_type: 7k2SaS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 79 | database: |
| 80 | engine: mysql |
| 81 | host: 127.0.0.1 |
| 82 | port: 3306 |
| 83 | name: cinder |
| 84 | user: cinder |
| 85 | password: pwd |
| 86 | identity: |
| 87 | engine: keystone |
| 88 | host: 127.0.0.1 |
| 89 | port: 35357 |
| 90 | tenant: service |
| 91 | user: cinder |
| 92 | password: pwd |
| 93 | message_queue: |
| 94 | engine: rabbitmq |
| 95 | host: 127.0.0.1 |
| 96 | port: 5672 |
| 97 | user: openstack |
| 98 | password: pwd |
| 99 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 100 | backend: |
| 101 | 7k2_SAS: |
| 102 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 103 | type_name: 7k2 SAS disk |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 104 | host: 192.168.0.1 |
| 105 | port: 22 |
| 106 | user: username |
| 107 | password: pass |
| 108 | connection: FC/iSCSI |
| 109 | multihost: true |
| 110 | multipath: true |
| 111 | pool: SAS7K2 |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 112 | audit: |
| 113 | enabled: false |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 114 | barbican: |
| 115 | enabled: true |
Ondrej Smola | 74af21b | 2017-04-28 12:30:24 +0200 | [diff] [blame] | 116 | |
| 117 | |
| 118 | Enable CORS parameters |
| 119 | |
| 120 | .. code-block:: yaml |
| 121 | |
| 122 | cinder: |
| 123 | controller: |
| 124 | cors: |
| 125 | allowed_origin: https:localhost.local,http:localhost.local |
| 126 | expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 127 | allow_methods: GET,PUT,POST,DELETE,PATCH |
| 128 | allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 129 | allow_credentials: True |
| 130 | max_age: 86400 |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 131 | |
| 132 | Client-side RabbitMQ HA setup for controller |
| 133 | |
| 134 | .. code-block:: yaml |
| 135 | |
| 136 | cinder: |
| 137 | controller: |
| 138 | .... |
| 139 | message_queue: |
| 140 | engine: rabbitmq |
| 141 | members: |
| 142 | - host: 10.0.16.1 |
| 143 | - host: 10.0.16.2 |
| 144 | - host: 10.0.16.3 |
| 145 | user: openstack |
| 146 | password: pwd |
| 147 | virtual_host: '/openstack' |
| 148 | .... |
| 149 | |
| 150 | Client-side RabbitMQ HA setup for volume component |
| 151 | |
| 152 | .. code-block:: yaml |
| 153 | |
| 154 | cinder: |
| 155 | volume: |
| 156 | .... |
| 157 | message_queue: |
| 158 | engine: rabbitmq |
| 159 | members: |
| 160 | - host: 10.0.16.1 |
| 161 | - host: 10.0.16.2 |
| 162 | - host: 10.0.16.3 |
| 163 | user: openstack |
| 164 | password: pwd |
| 165 | virtual_host: '/openstack' |
| 166 | .... |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 167 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 168 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 169 | Configuring TLS communications |
| 170 | ------------------------------ |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 171 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 172 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 173 | **Note:** by default system wide installed CA certs are used, so ``cacert_file`` param is optional, as well as ``cacert``. |
| 174 | |
| 175 | |
| 176 | - **RabbitMQ TLS** |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 177 | |
| 178 | .. code-block:: yaml |
| 179 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 180 | cinder: |
| 181 | controller, volume: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 182 | message_queue: |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 183 | port: 5671 |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 184 | ssl: |
| 185 | enabled: True |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 186 | (optional) cacert: cert body if the cacert_file does not exists |
| 187 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 188 | (optional) version: TLSv1_2 |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 189 | |
| 190 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 191 | - **MySQL TLS** |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 192 | |
| 193 | .. code-block:: yaml |
| 194 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 195 | cinder: |
| 196 | controller: |
| 197 | database: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 198 | ssl: |
| 199 | enabled: True |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 200 | (optional) cacert: cert body if the cacert_file does not exists |
| 201 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 202 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 203 | - **Openstack HTTPS API** |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 204 | |
| 205 | .. code-block:: yaml |
| 206 | |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame^] | 207 | cinder: |
| 208 | controller, volume: |
| 209 | identity: |
| 210 | protocol: https |
| 211 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 212 | glance: |
| 213 | protocol: https |
| 214 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 215 | |
| 216 | |
| 217 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 218 | Cinder setup with zeroing deleted volumes |
| 219 | |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 220 | .. code-block:: yaml |
| 221 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 222 | cinder: |
| 223 | controller: |
| 224 | enabled: true |
| 225 | wipe_method: zero |
| 226 | ... |
| 227 | |
| 228 | Cinder setup with shreding deleted volumes |
| 229 | |
| 230 | .. code-block:: yaml |
| 231 | |
| 232 | cinder: |
| 233 | controller: |
| 234 | enabled: true |
| 235 | wipe_method: shred |
| 236 | ... |
| 237 | |
Dmitry Ukov | 56c2907 | 2017-05-04 16:48:29 +0400 | [diff] [blame] | 238 | Configuration of policy.json file |
| 239 | |
| 240 | .. code-block:: yaml |
| 241 | |
| 242 | cinder: |
| 243 | controller: |
| 244 | .... |
| 245 | policy: |
| 246 | 'volume:delete': 'rule:admin_or_owner' |
| 247 | # Add key without value to remove line from policy.json |
| 248 | 'volume:extend': |
| 249 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 250 | |
| 251 | Default Cinder setup with iSCSI target |
| 252 | |
| 253 | .. code-block:: yaml |
| 254 | |
| 255 | cinder: |
| 256 | controller: |
| 257 | enabled: true |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 258 | version: mitaka |
| 259 | default_volume_type: lvmdriver-1 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 260 | database: |
| 261 | engine: mysql |
| 262 | host: 127.0.0.1 |
| 263 | port: 3306 |
| 264 | name: cinder |
| 265 | user: cinder |
| 266 | password: pwd |
| 267 | identity: |
| 268 | engine: keystone |
| 269 | host: 127.0.0.1 |
| 270 | port: 35357 |
| 271 | tenant: service |
| 272 | user: cinder |
| 273 | password: pwd |
| 274 | message_queue: |
| 275 | engine: rabbitmq |
| 276 | host: 127.0.0.1 |
| 277 | port: 5672 |
| 278 | user: openstack |
| 279 | password: pwd |
| 280 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 281 | backend: |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 282 | lvmdriver-1: |
| 283 | engine: lvm |
| 284 | type_name: lvmdriver-1 |
| 285 | volume_group: cinder-volume |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 286 | |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 287 | Cinder setup for IBM Storwize |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 288 | |
| 289 | .. code-block:: yaml |
| 290 | |
| 291 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 292 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 293 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 294 | backend: |
| 295 | 7k2_SAS: |
| 296 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 297 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 298 | host: 192.168.0.1 |
| 299 | port: 22 |
| 300 | user: username |
| 301 | password: pass |
| 302 | connection: FC/iSCSI |
| 303 | multihost: true |
| 304 | multipath: true |
| 305 | pool: SAS7K2 |
| 306 | 10k_SAS: |
| 307 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 308 | type_name: 10k SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 309 | host: 192.168.0.1 |
| 310 | port: 22 |
| 311 | user: username |
| 312 | password: pass |
| 313 | connection: FC/iSCSI |
| 314 | multihost: true |
| 315 | multipath: true |
| 316 | pool: SAS10K |
| 317 | 15k_SAS: |
| 318 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 319 | type_name: 15k SAS |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 320 | host: 192.168.0.1 |
| 321 | port: 22 |
| 322 | user: username |
| 323 | password: pass |
| 324 | connection: FC/iSCSI |
| 325 | multihost: true |
| 326 | multipath: true |
| 327 | pool: SAS15K |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 328 | |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 329 | |
| 330 | Cinder setup with NFS |
| 331 | |
| 332 | .. code-block:: yaml |
| 333 | |
| 334 | cinder: |
| 335 | controller: |
| 336 | enabled: true |
| 337 | default_volume_type: nfs-driver |
| 338 | backend: |
| 339 | nfs-driver: |
| 340 | engine: nfs |
| 341 | type_name: nfs-driver |
| 342 | volume_group: cinder-volume |
| 343 | path: /var/lib/cinder/nfs |
| 344 | devices: |
| 345 | - 172.16.10.110:/var/nfs/cinder |
| 346 | options: rw,sync |
| 347 | |
| 348 | |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 349 | Cinder setup with NetApp |
| 350 | |
| 351 | .. code-block:: yaml |
| 352 | |
| 353 | cinder: |
| 354 | controller: |
| 355 | backend: |
| 356 | netapp: |
| 357 | engine: netapp |
| 358 | type_name: netapp |
| 359 | user: openstack |
| 360 | vserver: vm1 |
| 361 | server_hostname: 172.18.2.3 |
| 362 | password: password |
| 363 | storage_protocol: nfs |
| 364 | transport_type: https |
| 365 | lun_space_reservation: enabled |
| 366 | use_multipath_for_image_xfer: True |
Dmitry Stremkouski | ffa53c0 | 2017-09-15 19:47:21 +0300 | [diff] [blame] | 367 | nas_secure_file_operations: false |
| 368 | nas_secure_file_permissions: false |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 369 | devices: |
| 370 | - 172.18.1.2:/vol_1 |
| 371 | - 172.18.1.2:/vol_2 |
| 372 | - 172.18.1.2:/vol_3 |
| 373 | - 172.18.1.2:/vol_4 |
Jakub Pavlik | 94dc0c9 | 2017-06-14 14:53:23 +0200 | [diff] [blame] | 374 | linux: |
| 375 | system: |
| 376 | package: |
| 377 | nfs-common: |
| 378 | version: latest |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 379 | |
| 380 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 381 | Cinder setup with Hitachi VPS |
| 382 | |
| 383 | .. code-block:: yaml |
| 384 | |
| 385 | cinder: |
| 386 | controller: |
| 387 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 388 | backend: |
| 389 | hus100_backend: |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 390 | type_name: HUS100 |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 391 | backend: hus100_backend |
| 392 | engine: hitachi_vsp |
| 393 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 394 | |
Ondrej Smola | 16d66bd | 2017-01-15 13:56:03 +0100 | [diff] [blame] | 395 | Cinder setup with Hitachi VPS with defined ldev range |
| 396 | |
| 397 | .. code-block:: yaml |
| 398 | |
| 399 | cinder: |
| 400 | controller: |
| 401 | enabled: true |
| 402 | backend: |
| 403 | hus100_backend: |
| 404 | type_name: HUS100 |
| 405 | backend: hus100_backend |
| 406 | engine: hitachi_vsp |
| 407 | connection: FC |
| 408 | ldev_range: 0-1000 |
| 409 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 410 | Cinder setup with CEPH |
| 411 | |
| 412 | .. code-block:: yaml |
| 413 | |
| 414 | cinder: |
| 415 | controller: |
| 416 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 417 | backend: |
| 418 | ceph_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 419 | type_name: standard-iops |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 420 | backend: ceph_backend |
| 421 | pool: volumes |
| 422 | engine: ceph |
| 423 | user: cinder |
| 424 | secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e |
| 425 | client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw== |
Michel Nederlof | b43a487 | 2017-06-20 09:36:47 +0200 | [diff] [blame] | 426 | report_discard_supported: True |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 427 | |
| 428 | http://ceph.com/docs/master/rbd/rbd-openstack/ |
| 429 | |
| 430 | |
| 431 | Cinder setup with HP3par |
| 432 | |
| 433 | .. code-block:: yaml |
| 434 | |
| 435 | cinder: |
| 436 | controller: |
| 437 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 438 | backend: |
| 439 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 440 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 441 | backend: hp3par_backend |
| 442 | user: hp3paruser |
| 443 | password: something |
| 444 | url: http://10.10.10.10/api/v1 |
| 445 | cpg: OpenStackCPG |
| 446 | host: 10.10.10.10 |
| 447 | login: hp3paradmin |
| 448 | sanpassword: something |
| 449 | debug: True |
| 450 | snapcpg: OpenStackSNAPCPG |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 451 | |
| 452 | Cinder setup with Fujitsu Eternus |
| 453 | |
| 454 | .. code-block:: yaml |
| 455 | |
| 456 | cinder: |
| 457 | volume: |
| 458 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 459 | backend: |
| 460 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 461 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 462 | engine: fujitsu |
| 463 | pool: 10kThinPro |
| 464 | host: 192.168.0.1 |
| 465 | port: 5988 |
| 466 | user: username |
| 467 | password: pass |
| 468 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 469 | name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 470 | 10k_SAS: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 471 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 472 | pool: SAS10K |
| 473 | engine: fujitsu |
| 474 | host: 192.168.0.1 |
| 475 | port: 5988 |
| 476 | user: username |
| 477 | password: pass |
| 478 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 479 | name: 10k_SAS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 480 | |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 481 | Cinder setup with IBM GPFS filesystem |
| 482 | |
| 483 | .. code-block:: yaml |
| 484 | |
| 485 | cinder: |
| 486 | volume: |
| 487 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 488 | backend: |
| 489 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 490 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 491 | engine: gpfs |
| 492 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 493 | GPFS-SILVER: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 494 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 495 | engine: gpfs |
| 496 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 497 | |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 498 | Cinder setup with HP LeftHand |
| 499 | |
| 500 | .. code-block:: yaml |
| 501 | |
| 502 | cinder: |
| 503 | volume: |
| 504 | enabled: true |
| 505 | backend: |
| 506 | HP-LeftHand: |
| 507 | type_name: normal-storage |
| 508 | engine: hp_lefthand |
| 509 | api_url: 'https://10.10.10.10:8081/lhos' |
| 510 | username: user |
| 511 | password: password |
| 512 | clustername: cluster1 |
| 513 | iscsi_chap_enabled: false |
| 514 | |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 515 | Extra parameters for HP LeftHand |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 516 | |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 517 | .. code-block:: yaml |
| 518 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 519 | 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] | 520 | |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 521 | Cinder setup with Solidfire |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 522 | |
| 523 | .. code-block:: yaml |
| 524 | |
| 525 | cinder: |
| 526 | volume: |
| 527 | enabled: true |
| 528 | backend: |
| 529 | solidfire: |
| 530 | type_name: normal-storage |
| 531 | engine: solidfire |
| 532 | san_ip: 10.10.10.10 |
| 533 | san_login: user |
| 534 | san_password: password |
| 535 | clustername: cluster1 |
| 536 | sf_emulate_512: false |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 537 | |
Alexander Noskov | 023a003 | 2017-06-16 09:31:59 +0200 | [diff] [blame] | 538 | Cinder setup with Block Device driver |
| 539 | |
| 540 | .. code-block:: yaml |
| 541 | |
| 542 | cinder: |
| 543 | volume: |
| 544 | enabled: true |
| 545 | backend: |
| 546 | bdd: |
| 547 | engine: bdd |
| 548 | enabled: true |
| 549 | type_name: bdd |
| 550 | devices: |
| 551 | - sdb |
| 552 | - sdc |
| 553 | - sdd |
| 554 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 555 | Enable cinder-backup service for ceph |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 556 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 557 | .. code-block:: yaml |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 558 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 559 | cinder: |
| 560 | controller: |
| 561 | enabled: true |
| 562 | version: mitaka |
| 563 | backup: |
| 564 | engine: ceph |
| 565 | ceph_conf: "/etc/ceph/ceph.conf" |
| 566 | ceph_pool: backup |
| 567 | ceph_stripe_count: 0 |
| 568 | ceph_stripe_unit: 0 |
| 569 | ceph_user: cinder |
| 570 | ceph_chunk_size: 134217728 |
| 571 | restore_discard_excess_bytes: false |
| 572 | volume: |
| 573 | enabled: true |
| 574 | version: mitaka |
| 575 | backup: |
| 576 | engine: ceph |
| 577 | ceph_conf: "/etc/ceph/ceph.conf" |
| 578 | ceph_pool: backup |
| 579 | ceph_stripe_count: 0 |
| 580 | ceph_stripe_unit: 0 |
| 581 | ceph_user: cinder |
| 582 | ceph_chunk_size: 134217728 |
| 583 | restore_discard_excess_bytes: false |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 584 | |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 585 | Enable auditing filter, ie: CADF |
| 586 | |
| 587 | .. code-block:: yaml |
| 588 | |
| 589 | cinder: |
| 590 | controller: |
| 591 | audit: |
| 592 | enabled: true |
| 593 | .... |
| 594 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 595 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 596 | .... |
| 597 | volume: |
| 598 | audit: |
| 599 | enabled: true |
| 600 | .... |
| 601 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 602 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 603 | |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 604 | |
| 605 | Cinder setup with custom availability zones: |
| 606 | |
| 607 | .. code-block:: yaml |
| 608 | |
| 609 | cinder: |
| 610 | controller: |
| 611 | default_availability_zone: my-default-zone |
| 612 | storage_availability_zone: my-custom-zone-name |
| 613 | cinder: |
| 614 | volume: |
| 615 | default_availability_zone: my-default-zone |
| 616 | storage_availability_zone: my-custom-zone-name |
| 617 | |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 618 | |
| 619 | Cinder setup with custom non-admin volume query filters: |
| 620 | |
| 621 | .. code-block:: yaml |
| 622 | |
| 623 | cinder: |
| 624 | controller: |
| 625 | query_volume_filters: |
| 626 | - name |
| 627 | - status |
| 628 | - metadata |
| 629 | - availability_zone |
| 630 | - bootable |
| 631 | |
| 632 | |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 633 | public_endpoint and osapi_volume_base_url parameters: |
| 634 | "public_endpoint" is used for configuring versions endpoint, |
| 635 | "osapi_volume_base_URL" is used to present Cinder URL to users. |
| 636 | They are useful when running Cinder under load balancer in SSL. |
| 637 | |
| 638 | .. code-block:: yaml |
| 639 | |
| 640 | cinder: |
| 641 | controller: |
| 642 | public_endpoint_address: https://${_param:cluster_domain}:8776 |
| 643 | |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 644 | 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) |
| 645 | The storage availability zone is the actual zone where the node belongs to. Make sure to specify this per node. |
| 646 | Check the documentation of OpenStack for more information |
| 647 | |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 648 | |
| 649 | Client role |
| 650 | |
| 651 | .. code-block:: yaml |
| 652 | |
| 653 | cinder: |
| 654 | client: |
| 655 | enabled: true |
| 656 | identity: |
| 657 | host: 127.0.0.1 |
| 658 | port: 35357 |
| 659 | project: service |
| 660 | user: cinder |
| 661 | password: pwd |
| 662 | protocol: http |
| 663 | endpoint_type: internalURL |
| 664 | region_name: RegionOne |
| 665 | backend: |
| 666 | ceph: |
| 667 | type_name: standard-iops |
| 668 | engine: ceph |
| 669 | key: |
| 670 | conn_speed: fibre-10G |
| 671 | |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 672 | Enable Barbican integration |
| 673 | |
| 674 | .. code-block:: yaml |
| 675 | |
| 676 | cinder: |
| 677 | controller: |
| 678 | barbican: |
| 679 | enabled: true |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 680 | |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 681 | Documentation and Bugs |
| 682 | ============================ |
| 683 | |
| 684 | To learn how to deploy OpenStack Salt, consult the documentation available |
| 685 | online at: |
| 686 | |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 687 | https://wiki.openstack.org/wiki/OpenStackSalt |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 688 | |
| 689 | In the unfortunate event that bugs are discovered, they should be reported to |
| 690 | the appropriate bug tracker. If you obtained the software from a 3rd party |
| 691 | operating system vendor, it is often wise to use their own bug tracker for |
| 692 | reporting problems. In all other cases use the master OpenStack bug tracker, |
| 693 | available at: |
| 694 | |
| 695 | http://bugs.launchpad.net/openstack-salt |
| 696 | |
| 697 | Developers wishing to work on the OpenStack Salt project should always base |
| 698 | their work on the latest formulas code, available from the master GIT |
| 699 | repository at: |
| 700 | |
| 701 | https://git.openstack.org/cgit/openstack/salt-formula-cinder |
| 702 | |
| 703 | Developers should also join the discussion on the IRC list, at: |
| 704 | |
| 705 | https://wiki.openstack.org/wiki/Meetings/openstack-salt |
Filip Pytloun | b0f5c1f | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 706 | |
| 707 | Documentation and Bugs |
| 708 | ====================== |
| 709 | |
| 710 | To learn how to install and update salt-formulas, consult the documentation |
| 711 | available online at: |
| 712 | |
| 713 | http://salt-formulas.readthedocs.io/ |
| 714 | |
| 715 | In the unfortunate event that bugs are discovered, they should be reported to |
| 716 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 717 | formula: |
| 718 | |
| 719 | https://github.com/salt-formulas/salt-formula-cinder/issues |
| 720 | |
| 721 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 722 | use Launchpad salt-formulas project: |
| 723 | |
| 724 | https://launchpad.net/salt-formulas |
| 725 | |
| 726 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 727 | |
| 728 | https://launchpad.net/~salt-formulas-users |
| 729 | |
| 730 | Developers wishing to work on the salt-formulas projects should always base |
| 731 | their work on master branch and submit pull request against specific formula. |
| 732 | |
| 733 | https://github.com/salt-formulas/salt-formula-cinder |
| 734 | |
| 735 | Any questions or feedback is always welcome so feel free to join our IRC |
| 736 | channel: |
| 737 | |
| 738 | #salt-formulas @ irc.freenode.net |