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