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