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