OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 1 | ===== |
| 2 | Usage |
| 3 | ===== |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 4 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 5 | Cinder provides an infrastructure for managing volumes in OpenStack. |
| 6 | Originally, this project was the Nova component called ``nova-volume`` |
| 7 | and starting from the Folsom OpenStack release it has become an independent |
| 8 | project. |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 9 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 10 | This file provides the sample configurations for different use cases: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 11 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 12 | * Pillar sample of a basic Cinder configuration: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 13 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 14 | The pillar structure defines ``cinder-api`` and ``cinder-scheduler`` inside |
| 15 | the ``controller`` role and ``cinder-volume`` inside the to ``volume`` |
| 16 | role. |
| 17 | |
| 18 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 19 | |
| 20 | cinder: |
| 21 | controller: |
| 22 | enabled: true |
| 23 | version: juno |
Dmitry Stremkovskiy | 9f4ac8b | 2017-07-11 09:48:46 +0300 | [diff] [blame] | 24 | cinder_uid: 304 |
| 25 | cinder_gid: 304 |
Dmitry Stremkovskiy | ef4c7d0 | 2017-07-30 16:51:52 +0300 | [diff] [blame] | 26 | nas_secure_file_permissions: false |
| 27 | nas_secure_file_operations: false |
Dmitry Stremkovskiy | a5dd799 | 2017-07-30 19:54:23 +0300 | [diff] [blame] | 28 | cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef |
| 29 | cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 30 | default_volume_type: 7k2SaS |
stelucz | 1f3a82f | 2017-09-19 18:38:13 +0200 | [diff] [blame] | 31 | enable_force_upload: true |
Damian Szeluga | 0918f5a | 2017-04-19 12:26:56 +0200 | [diff] [blame] | 32 | availability_zone_fallback: True |
Oleksandr Pidrepnyi | 27e25fa | 2019-05-02 14:00:40 +0300 | [diff] [blame] | 33 | image_conversion_dir: /var/tmp/cinder/conversion |
Denis V. Meltsaykin | 1cbeb5a | 2020-08-26 17:03:41 +0200 | [diff] [blame^] | 34 | wsgi_processes_count: 5 |
Ivan Berezovskiy | 3fe3194 | 2019-11-19 16:27:47 +0400 | [diff] [blame] | 35 | concurrency: |
| 36 | lock_path: '/var/lock/cinder' |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 37 | database: |
| 38 | engine: mysql |
| 39 | host: 127.0.0.1 |
| 40 | port: 3306 |
| 41 | name: cinder |
| 42 | user: cinder |
| 43 | password: pwd |
| 44 | identity: |
| 45 | engine: keystone |
| 46 | host: 127.0.0.1 |
| 47 | port: 35357 |
| 48 | tenant: service |
| 49 | user: cinder |
| 50 | password: pwd |
| 51 | message_queue: |
| 52 | engine: rabbitmq |
| 53 | host: 127.0.0.1 |
| 54 | port: 5672 |
| 55 | user: openstack |
| 56 | password: pwd |
| 57 | virtual_host: '/openstack' |
root | 0840265 | 2018-12-28 15:04:23 +0000 | [diff] [blame] | 58 | client: |
| 59 | connection_params: |
| 60 | connect_retries: 50 |
| 61 | connect_retry_delay: 1 |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 62 | backend: |
| 63 | 7k2_SAS: |
| 64 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 65 | type_name: slow-disks |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 66 | host: 192.168.0.1 |
| 67 | port: 22 |
| 68 | user: username |
| 69 | password: pass |
| 70 | connection: FC/iSCSI |
| 71 | multihost: true |
| 72 | multipath: true |
| 73 | pool: SAS7K2 |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 74 | audit: |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 75 | enabled: false |
Simon Pasquier | 9089de4 | 2017-02-03 16:13:22 +0100 | [diff] [blame] | 76 | osapi_max_limit: 500 |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 77 | barbican: |
| 78 | enabled: true |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 79 | |
| 80 | cinder: |
| 81 | volume: |
| 82 | enabled: true |
| 83 | version: juno |
Dmitry Stremkovskiy | 9f4ac8b | 2017-07-11 09:48:46 +0300 | [diff] [blame] | 84 | cinder_uid: 304 |
| 85 | cinder_gid: 304 |
Dmitry Stremkovskiy | ef4c7d0 | 2017-07-30 16:51:52 +0300 | [diff] [blame] | 86 | nas_secure_file_permissions: false |
| 87 | nas_secure_file_operations: false |
Dmitry Stremkovskiy | a5dd799 | 2017-07-30 19:54:23 +0300 | [diff] [blame] | 88 | cinder_internal_tenant_user_id: f46924c112a14c80ab0a24a613d95eef |
| 89 | cinder_internal_tenant_project_id: b7455b8974bb4064ad247c8f375eae6c |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 90 | default_volume_type: 7k2SaS |
Michael Polenchuk | f0d642e | 2018-07-27 09:55:14 +0400 | [diff] [blame] | 91 | enable_force_upload: true |
| 92 | my_ip: 192.168.0.254 |
Oleksandr Pidrepnyi | da46502 | 2019-04-26 18:44:05 +0300 | [diff] [blame] | 93 | image_conversion_dir: /var/tmp/cinder/conversion |
Ivan Berezovskiy | 3fe3194 | 2019-11-19 16:27:47 +0400 | [diff] [blame] | 94 | concurrency: |
| 95 | lock_path: '/var/lock/cinder' |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 96 | database: |
| 97 | engine: mysql |
| 98 | host: 127.0.0.1 |
| 99 | port: 3306 |
| 100 | name: cinder |
| 101 | user: cinder |
| 102 | password: pwd |
| 103 | identity: |
| 104 | engine: keystone |
| 105 | host: 127.0.0.1 |
| 106 | port: 35357 |
| 107 | tenant: service |
| 108 | user: cinder |
| 109 | password: pwd |
| 110 | message_queue: |
| 111 | engine: rabbitmq |
| 112 | host: 127.0.0.1 |
| 113 | port: 5672 |
| 114 | user: openstack |
| 115 | password: pwd |
| 116 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 117 | backend: |
| 118 | 7k2_SAS: |
| 119 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 120 | type_name: 7k2 SAS disk |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 121 | host: 192.168.0.1 |
| 122 | port: 22 |
| 123 | user: username |
| 124 | password: pass |
| 125 | connection: FC/iSCSI |
| 126 | multihost: true |
| 127 | multipath: true |
| 128 | pool: SAS7K2 |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 129 | audit: |
| 130 | enabled: false |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 131 | barbican: |
| 132 | enabled: true |
Ondrej Smola | 74af21b | 2017-04-28 12:30:24 +0200 | [diff] [blame] | 133 | |
| 134 | |
Vasyl Saienko | a5de751 | 2018-07-12 17:28:36 +0300 | [diff] [blame] | 135 | Volume vmware related options: |
| 136 | |
| 137 | .. code-block:: yaml |
| 138 | |
| 139 | cinder: |
| 140 | volume: |
| 141 | backend: |
| 142 | vmware: |
| 143 | engine: vmware |
| 144 | host_username: vmware |
| 145 | host_password: vmware |
| 146 | cluster_names: vmware_cluster01,vmware_cluster02 |
| 147 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 148 | * The CORS parameters enablement: |
Vasyl Saienko | a5de751 | 2018-07-12 17:28:36 +0300 | [diff] [blame] | 149 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 150 | .. code-block:: yaml |
Ondrej Smola | 74af21b | 2017-04-28 12:30:24 +0200 | [diff] [blame] | 151 | |
| 152 | cinder: |
| 153 | controller: |
| 154 | cors: |
| 155 | allowed_origin: https:localhost.local,http:localhost.local |
| 156 | expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 157 | allow_methods: GET,PUT,POST,DELETE,PATCH |
| 158 | allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 159 | allow_credentials: True |
| 160 | max_age: 86400 |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 161 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 162 | * The client-side RabbitMQ HA setup for the controller: |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 163 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 164 | .. code-block:: yaml |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 165 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 166 | cinder: |
| 167 | controller: |
| 168 | .... |
| 169 | message_queue: |
| 170 | engine: rabbitmq |
| 171 | members: |
| 172 | - host: 10.0.16.1 |
| 173 | - host: 10.0.16.2 |
| 174 | - host: 10.0.16.3 |
| 175 | user: openstack |
| 176 | password: pwd |
| 177 | virtual_host: '/openstack' |
| 178 | .... |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 179 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 180 | * The client-side RabbitMQ HA setup for the volume component |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 181 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 182 | .. code-block:: yaml |
Jiri Konecny | 2dce35f | 2016-04-19 16:29:52 +0200 | [diff] [blame] | 183 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 184 | cinder: |
| 185 | volume: |
| 186 | .... |
| 187 | message_queue: |
| 188 | engine: rabbitmq |
| 189 | members: |
| 190 | - host: 10.0.16.1 |
| 191 | - host: 10.0.16.2 |
| 192 | - host: 10.0.16.3 |
| 193 | user: openstack |
| 194 | password: pwd |
| 195 | virtual_host: '/openstack' |
| 196 | .... |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 197 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 198 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 199 | * Configuring TLS communications. |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 200 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 201 | .. note:: By default, system-wide installed CA certs are used. |
| 202 | Therefore, the ``cacert_file`` and ``cacert`` parameters are |
| 203 | optional. |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 204 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 205 | * RabbitMQ TLS: |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 206 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 207 | .. code-block:: yaml |
Kirill Bespalov | 1550d6c | 2017-11-21 12:55:33 +0300 | [diff] [blame] | 208 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 209 | cinder: |
| 210 | controller, volume: |
| 211 | message_queue: |
| 212 | port: 5671 |
| 213 | ssl: |
| 214 | enabled: True |
| 215 | (optional) cacert: cert body if the cacert_file does not exists |
| 216 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 217 | (optional) version: TLSv1_2 |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 218 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 219 | * MySQL TLS: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 220 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 221 | .. code-block:: yaml |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 222 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 223 | cinder: |
| 224 | controller: |
| 225 | database: |
| 226 | ssl: |
| 227 | enabled: True |
| 228 | (optional) cacert: cert body if the cacert_file does not exists |
| 229 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 230 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 231 | * Openstack HTTPS API: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 232 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 233 | .. code-block:: yaml |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 234 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 235 | cinder: |
| 236 | controller, volume: |
| 237 | identity: |
| 238 | protocol: https |
| 239 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 240 | glance: |
| 241 | protocol: https |
| 242 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 243 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 244 | * Cinder setup with zeroing deleted volumes: |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 245 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 246 | .. code-block:: yaml |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 247 | |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 248 | cinder: |
| 249 | controller: |
| 250 | enabled: true |
| 251 | wipe_method: zero |
| 252 | ... |
| 253 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 254 | * Cinder setup with shreding deleted volumes: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 255 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 256 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 257 | |
| 258 | cinder: |
| 259 | controller: |
| 260 | enabled: true |
| 261 | wipe_method: shred |
| 262 | ... |
| 263 | |
Oleksandr Pidrepnyi | da46502 | 2019-04-26 18:44:05 +0300 | [diff] [blame] | 264 | * Configure directory used for temporary storage during image conversion: |
| 265 | |
| 266 | .. code-block:: yaml |
| 267 | |
| 268 | cinder: |
Oleksandr Pidrepnyi | 27e25fa | 2019-05-02 14:00:40 +0300 | [diff] [blame] | 269 | controller: |
| 270 | image_conversion_dir: /var/tmp/cinder/conversion |
Oleksandr Pidrepnyi | da46502 | 2019-04-26 18:44:05 +0300 | [diff] [blame] | 271 | volume: |
| 272 | image_conversion_dir: /var/tmp/cinder/conversion |
| 273 | ... |
| 274 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 275 | * Configuration of ``policy.json`` file: |
Dmitry Ukov | 56c2907 | 2017-05-04 16:48:29 +0400 | [diff] [blame] | 276 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 277 | .. code-block:: yaml |
Dmitry Ukov | 56c2907 | 2017-05-04 16:48:29 +0400 | [diff] [blame] | 278 | |
| 279 | cinder: |
| 280 | controller: |
| 281 | .... |
| 282 | policy: |
| 283 | 'volume:delete': 'rule:admin_or_owner' |
| 284 | # Add key without value to remove line from policy.json |
| 285 | 'volume:extend': |
| 286 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 287 | * Default Cinder backend ``lvm_type`` setup: |
sgarbuz | 0901ebe | 2018-06-13 17:16:16 +0300 | [diff] [blame] | 288 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 289 | .. code-block:: yaml |
sgarbuz | 0901ebe | 2018-06-13 17:16:16 +0300 | [diff] [blame] | 290 | |
| 291 | cinder: |
| 292 | volume: |
| 293 | enabled: true |
| 294 | backend: |
| 295 | # Type of LVM volumes to deploy; (default, thin, or auto). Auto defaults to thin if thin is supported. |
| 296 | lvm_type: auto |
| 297 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 298 | * Default Cinder setup with iSCSI target: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 299 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 300 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 301 | |
| 302 | cinder: |
| 303 | controller: |
| 304 | enabled: true |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 305 | version: mitaka |
| 306 | default_volume_type: lvmdriver-1 |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 307 | database: |
| 308 | engine: mysql |
| 309 | host: 127.0.0.1 |
| 310 | port: 3306 |
| 311 | name: cinder |
| 312 | user: cinder |
| 313 | password: pwd |
| 314 | identity: |
| 315 | engine: keystone |
| 316 | host: 127.0.0.1 |
| 317 | port: 35357 |
| 318 | tenant: service |
| 319 | user: cinder |
| 320 | password: pwd |
| 321 | message_queue: |
| 322 | engine: rabbitmq |
| 323 | host: 127.0.0.1 |
| 324 | port: 5672 |
| 325 | user: openstack |
| 326 | password: pwd |
| 327 | virtual_host: '/openstack' |
Jakub Pavlik | af96c2a | 2016-01-08 15:49:54 +0100 | [diff] [blame] | 328 | backend: |
Jakub Pavlik | 3d437df | 2016-04-11 22:07:50 +0200 | [diff] [blame] | 329 | lvmdriver-1: |
| 330 | engine: lvm |
| 331 | type_name: lvmdriver-1 |
| 332 | volume_group: cinder-volume |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 333 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 334 | * Cinder setup for IBM Storwize: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 335 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 336 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 337 | |
| 338 | cinder: |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 339 | volume: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 340 | enabled: true |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 341 | backend: |
| 342 | 7k2_SAS: |
| 343 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 344 | type_name: 7k2 SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 345 | host: 192.168.0.1 |
| 346 | port: 22 |
| 347 | user: username |
| 348 | password: pass |
| 349 | connection: FC/iSCSI |
| 350 | multihost: true |
| 351 | multipath: true |
| 352 | pool: SAS7K2 |
| 353 | 10k_SAS: |
| 354 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 355 | type_name: 10k SAS disk |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 356 | host: 192.168.0.1 |
| 357 | port: 22 |
| 358 | user: username |
| 359 | password: pass |
| 360 | connection: FC/iSCSI |
| 361 | multihost: true |
| 362 | multipath: true |
| 363 | pool: SAS10K |
| 364 | 15k_SAS: |
| 365 | engine: storwize |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 366 | type_name: 15k SAS |
Ales Komarek | df13bbd | 2016-01-05 21:33:36 +0100 | [diff] [blame] | 367 | host: 192.168.0.1 |
| 368 | port: 22 |
| 369 | user: username |
| 370 | password: pass |
| 371 | connection: FC/iSCSI |
| 372 | multihost: true |
| 373 | multipath: true |
| 374 | pool: SAS15K |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 375 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 376 | * Cinder setup with NFS: |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 377 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 378 | .. code-block:: yaml |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 379 | |
| 380 | cinder: |
| 381 | controller: |
| 382 | enabled: true |
| 383 | default_volume_type: nfs-driver |
| 384 | backend: |
| 385 | nfs-driver: |
| 386 | engine: nfs |
| 387 | type_name: nfs-driver |
| 388 | volume_group: cinder-volume |
| 389 | path: /var/lib/cinder/nfs |
| 390 | devices: |
| 391 | - 172.16.10.110:/var/nfs/cinder |
| 392 | options: rw,sync |
| 393 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 394 | * Cinder setup with NetApp: |
Jiri Broulik | 88548db | 2017-03-31 12:21:37 +0200 | [diff] [blame] | 395 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 396 | .. code-block:: yaml |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 397 | |
| 398 | cinder: |
| 399 | controller: |
| 400 | backend: |
| 401 | netapp: |
| 402 | engine: netapp |
| 403 | type_name: netapp |
| 404 | user: openstack |
| 405 | vserver: vm1 |
| 406 | server_hostname: 172.18.2.3 |
| 407 | password: password |
| 408 | storage_protocol: nfs |
| 409 | transport_type: https |
| 410 | lun_space_reservation: enabled |
| 411 | use_multipath_for_image_xfer: True |
Dmitry Stremkouski | ffa53c0 | 2017-09-15 19:47:21 +0300 | [diff] [blame] | 412 | nas_secure_file_operations: false |
| 413 | nas_secure_file_permissions: false |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 414 | devices: |
| 415 | - 172.18.1.2:/vol_1 |
| 416 | - 172.18.1.2:/vol_2 |
| 417 | - 172.18.1.2:/vol_3 |
| 418 | - 172.18.1.2:/vol_4 |
Jakub Pavlik | 94dc0c9 | 2017-06-14 14:53:23 +0200 | [diff] [blame] | 419 | linux: |
| 420 | system: |
| 421 | package: |
| 422 | nfs-common: |
| 423 | version: latest |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 424 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 425 | * Cinder setup with Hitachi VPS: |
Alexey Chekunov | f916f0c | 2017-05-25 13:29:45 +0400 | [diff] [blame] | 426 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 427 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 428 | |
| 429 | cinder: |
| 430 | controller: |
| 431 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 432 | backend: |
| 433 | hus100_backend: |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 434 | type_name: HUS100 |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 435 | backend: hus100_backend |
| 436 | engine: hitachi_vsp |
| 437 | connection: FC |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 438 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 439 | * Cinder setup with Hitachi VPS with defined ``ldev`` range: |
Ondrej Smola | 16d66bd | 2017-01-15 13:56:03 +0100 | [diff] [blame] | 440 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 441 | .. code-block:: yaml |
Ondrej Smola | 16d66bd | 2017-01-15 13:56:03 +0100 | [diff] [blame] | 442 | |
| 443 | cinder: |
| 444 | controller: |
| 445 | enabled: true |
| 446 | backend: |
| 447 | hus100_backend: |
| 448 | type_name: HUS100 |
| 449 | backend: hus100_backend |
| 450 | engine: hitachi_vsp |
| 451 | connection: FC |
| 452 | ldev_range: 0-1000 |
| 453 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 454 | * Cinder setup with Ceph: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 455 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 456 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 457 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 458 | cinder: |
| 459 | controller: |
| 460 | enabled: true |
| 461 | backend: |
| 462 | ceph_backend: |
| 463 | type_name: standard-iops |
| 464 | backend: ceph_backend |
sgarbuz | 94de929 | 2018-09-10 10:22:39 +0300 | [diff] [blame] | 465 | backend_host: ceph |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 466 | pool: volumes |
| 467 | engine: ceph |
| 468 | user: cinder |
| 469 | secret_uuid: da74ccb7-aa59-1721-a172-0006b1aa4e3e |
| 470 | client_cinder_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw== |
| 471 | report_discard_supported: True |
stelucz | 9f4986c | 2018-08-30 09:46:55 +0200 | [diff] [blame] | 472 | image_volume_cache_enabled: False |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 473 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 474 | .. note:: `Ceph official documentation <http://ceph.com/docs/master/rbd/rbd-openstack/>`__ |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 475 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 476 | * Cinder setup with HP3par: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 477 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 478 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 479 | |
| 480 | cinder: |
| 481 | controller: |
| 482 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 483 | backend: |
| 484 | hp3par_backend: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 485 | type_name: hp3par |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 486 | backend: hp3par_backend |
| 487 | user: hp3paruser |
| 488 | password: something |
| 489 | url: http://10.10.10.10/api/v1 |
| 490 | cpg: OpenStackCPG |
| 491 | host: 10.10.10.10 |
| 492 | login: hp3paradmin |
| 493 | sanpassword: something |
| 494 | debug: True |
| 495 | snapcpg: OpenStackSNAPCPG |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 496 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 497 | * Cinder setup with Fujitsu Eternus: |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 498 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 499 | .. code-block:: yaml |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 500 | |
| 501 | cinder: |
| 502 | volume: |
| 503 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 504 | backend: |
| 505 | 10kThinPro: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 506 | type_name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 507 | engine: fujitsu |
| 508 | pool: 10kThinPro |
| 509 | host: 192.168.0.1 |
| 510 | port: 5988 |
| 511 | user: username |
| 512 | password: pass |
| 513 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 514 | name: 10kThinPro |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 515 | 10k_SAS: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 516 | type_name: 10k_SAS |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 517 | pool: SAS10K |
| 518 | engine: fujitsu |
| 519 | host: 192.168.0.1 |
| 520 | port: 5988 |
| 521 | user: username |
| 522 | password: pass |
| 523 | connection: FC/iSCSI |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 524 | name: 10k_SAS |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 525 | |
Sergio Lystopad | bbfba65 | 2019-06-06 16:20:08 +0300 | [diff] [blame] | 526 | * Cinder setup with Fujitsu Eternus. Set driver class to be used by cinder-volume: |
| 527 | .. code-block:: yaml |
| 528 | |
| 529 | cinder: |
| 530 | controller: |
| 531 | enabled: True |
| 532 | backend: |
| 533 | FJISCSI: |
| 534 | driver: cinder.volume.drivers.fujitsu.eternus_dx.eternus_dx_iscsi.FJDXISCSIDriver |
| 535 | engine: fujitsu |
| 536 | FJFC: |
| 537 | driver: cinder.volume.drivers.fujitsu.eternus_dx.eternus_dx_fc.FJDXFCDriver |
| 538 | engine: fujitsu |
| 539 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 540 | * Cinder setup with IBM GPFS filesystem: |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 541 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 542 | .. code-block:: yaml |
Jakub Pavlik | 9703c60 | 2015-10-15 18:52:47 +0200 | [diff] [blame] | 543 | |
| 544 | cinder: |
| 545 | volume: |
| 546 | enabled: true |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 547 | backend: |
| 548 | GPFS-GOLD: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 549 | type_name: GPFS-GOLD |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 550 | engine: gpfs |
| 551 | mount_point: '/mnt/gpfs-openstack/cinder/gold' |
marco | daa52fa | 2016-01-25 23:49:50 +0100 | [diff] [blame] | 552 | GPFS-SILVER: |
Jakub Pavlik | edd4610 | 2016-01-08 16:20:38 +0100 | [diff] [blame] | 553 | type_name: GPFS-SILVER |
Jakub Pavlik | 5d7df0d | 2016-01-06 13:08:30 +0100 | [diff] [blame] | 554 | engine: gpfs |
| 555 | mount_point: '/mnt/gpfs-openstack/cinder/silver' |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 556 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 557 | * Cinder setup with HP LeftHand: |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 558 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 559 | .. code-block:: yaml |
Jakub Pavlik | 9f5988a | 2016-01-11 13:44:57 +0100 | [diff] [blame] | 560 | |
| 561 | cinder: |
| 562 | volume: |
| 563 | enabled: true |
| 564 | backend: |
| 565 | HP-LeftHand: |
| 566 | type_name: normal-storage |
| 567 | engine: hp_lefthand |
| 568 | api_url: 'https://10.10.10.10:8081/lhos' |
| 569 | username: user |
| 570 | password: password |
| 571 | clustername: cluster1 |
| 572 | iscsi_chap_enabled: false |
| 573 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 574 | * Extra parameters for HP LeftHand: |
Jakub Pavlik | a63764f | 2016-01-11 14:41:06 +0100 | [diff] [blame] | 575 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 576 | .. code-block:: yaml |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 577 | |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 578 | 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] | 579 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 580 | * Cinder setup with Solidfire: |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 581 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 582 | .. code-block:: yaml |
Jakub Pavlik | 5050dda | 2016-01-11 16:52:32 +0100 | [diff] [blame] | 583 | |
| 584 | cinder: |
| 585 | volume: |
| 586 | enabled: true |
| 587 | backend: |
| 588 | solidfire: |
| 589 | type_name: normal-storage |
| 590 | engine: solidfire |
| 591 | san_ip: 10.10.10.10 |
| 592 | san_login: user |
| 593 | san_password: password |
| 594 | clustername: cluster1 |
| 595 | sf_emulate_512: false |
sergio | 9e6387e | 2018-02-19 21:13:14 +0200 | [diff] [blame] | 596 | sf_api_port: 14443 |
| 597 | host: ctl01 |
Aleksieiev, Oleksii | 224e8ae | 2018-07-13 09:43:43 -0700 | [diff] [blame] | 598 | #for compatibility with old versions |
| 599 | sf_account_prefix: PREFIX |
Filip Pytloun | da2a079 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 600 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 601 | * Cinder setup with Block Device driver: |
Alexander Noskov | 023a003 | 2017-06-16 09:31:59 +0200 | [diff] [blame] | 602 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 603 | .. code-block:: yaml |
Alexander Noskov | 023a003 | 2017-06-16 09:31:59 +0200 | [diff] [blame] | 604 | |
| 605 | cinder: |
| 606 | volume: |
| 607 | enabled: true |
| 608 | backend: |
| 609 | bdd: |
| 610 | engine: bdd |
| 611 | enabled: true |
| 612 | type_name: bdd |
| 613 | devices: |
| 614 | - sdb |
| 615 | - sdc |
| 616 | - sdd |
| 617 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 618 | * Enable cinder-backup service for ceph |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 619 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 620 | .. code-block:: yaml |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 621 | |
Ondrej Smola | ed6abbf | 2017-04-25 11:55:44 +0200 | [diff] [blame] | 622 | cinder: |
| 623 | controller: |
| 624 | enabled: true |
| 625 | version: mitaka |
| 626 | backup: |
| 627 | engine: ceph |
| 628 | ceph_conf: "/etc/ceph/ceph.conf" |
| 629 | ceph_pool: backup |
| 630 | ceph_stripe_count: 0 |
| 631 | ceph_stripe_unit: 0 |
| 632 | ceph_user: cinder |
| 633 | ceph_chunk_size: 134217728 |
| 634 | restore_discard_excess_bytes: false |
| 635 | volume: |
| 636 | enabled: true |
| 637 | version: mitaka |
| 638 | backup: |
| 639 | engine: ceph |
| 640 | ceph_conf: "/etc/ceph/ceph.conf" |
| 641 | ceph_pool: backup |
| 642 | ceph_stripe_count: 0 |
| 643 | ceph_stripe_unit: 0 |
| 644 | ceph_user: cinder |
| 645 | ceph_chunk_size: 134217728 |
| 646 | restore_discard_excess_bytes: false |
Kirill Bespalov | 01614c0 | 2017-07-31 17:06:09 +0300 | [diff] [blame] | 647 | |
Dzmitry Stremkouski | b454b1d | 2019-08-23 17:10:48 +0200 | [diff] [blame] | 648 | * Enable swift driver for cinder-backup service |
| 649 | |
| 650 | .. code-block:: yaml |
| 651 | |
| 652 | cinder: |
| 653 | controller: |
| 654 | backup: |
| 655 | engine: swift |
| 656 | swift: |
| 657 | driver: cinder.backup.drivers.swift |
| 658 | auth: per_user |
| 659 | auth_version: 3 |
| 660 | block_size: 32768 |
| 661 | object_size: 52428800 |
| 662 | container: volumebackup |
| 663 | compression_algorithm: gzip |
| 664 | retry_attempts: 3 |
| 665 | retry_backoff: 2 |
| 666 | catalog_info: object-store:swift:internalURL |
| 667 | keystone_catalog_info: identity:Identity Service:publicURL |
| 668 | user: test |
| 669 | user_domain: localhost |
| 670 | key: AAAAAAAAAAA |
| 671 | tenant: admin |
| 672 | project_domain: localhost |
| 673 | project: service |
| 674 | enable_progress_timer: True |
| 675 | ca_cert_file: /etc/ssl/pki/ca.pem |
| 676 | |
| 677 | cinder: |
| 678 | volume: |
| 679 | backup: |
| 680 | engine: swift |
| 681 | swift: |
| 682 | driver: cinder.backup.drivers.swift |
| 683 | auth: per_user |
| 684 | auth_version: 3 |
| 685 | block_size: 32768 |
| 686 | object_size: 52428800 |
| 687 | container: volumebackup |
| 688 | compression_algorithm: gzip |
| 689 | retry_attempts: 3 |
| 690 | retry_backoff: 2 |
| 691 | catalog_info: object-store:swift:internalURL |
| 692 | keystone_catalog_info: identity:Identity Service:publicURL |
| 693 | user: test |
| 694 | user_domain: localhost |
| 695 | key: AAAAAAAAAAA |
| 696 | tenant: admin |
| 697 | project_domain: localhost |
| 698 | project: service |
| 699 | enable_progress_timer: True |
| 700 | ca_cert_file: /etc/ssl/pki/ca.pem |
| 701 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 702 | * Auditing filter (CADF) enablement: |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 703 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 704 | .. code-block:: yaml |
Petr Michalec | a1c7ff1 | 2016-11-29 16:32:50 +0100 | [diff] [blame] | 705 | |
| 706 | cinder: |
| 707 | controller: |
| 708 | audit: |
| 709 | enabled: true |
| 710 | .... |
| 711 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 712 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 713 | .... |
| 714 | volume: |
| 715 | audit: |
| 716 | enabled: true |
| 717 | .... |
| 718 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 719 | map_file: '/etc/pycadf/cinder_api_audit_map.conf' |
| 720 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 721 | * Cinder setup with custom availability zones: |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 722 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 723 | .. code-block:: yaml |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 724 | |
| 725 | cinder: |
| 726 | controller: |
| 727 | default_availability_zone: my-default-zone |
| 728 | storage_availability_zone: my-custom-zone-name |
| 729 | cinder: |
| 730 | volume: |
| 731 | default_availability_zone: my-default-zone |
| 732 | storage_availability_zone: my-custom-zone-name |
| 733 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 734 | The ``default_availability_zone`` is used when a volume has been created, |
| 735 | without specifying a zone in the ``create`` request as this zone must exist |
| 736 | in your configuration. |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 737 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 738 | The ``storage_availability_zone`` is an actual zone where the node belongs to |
| 739 | and must be specified per each node. |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 740 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 741 | * Cinder setup with custom non-admin volume query filters: |
| 742 | |
| 743 | .. code-block:: yaml |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 744 | |
| 745 | cinder: |
| 746 | controller: |
| 747 | query_volume_filters: |
| 748 | - name |
| 749 | - status |
| 750 | - metadata |
| 751 | - availability_zone |
| 752 | - bootable |
| 753 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 754 | * ``public_endpoint`` and ``osapi_volume_base_url``: |
Andrii Ostapenko | b7aa34d | 2017-04-20 14:22:44 +0300 | [diff] [blame] | 755 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 756 | * ``public_endpoint`` |
| 757 | Used for configuring versions endpoint |
| 758 | * ``osapi_volume_base_URL`` |
| 759 | Used to present Cinder URL to users |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 760 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 761 | These parameters can be useful when running Cinder under load balancer in |
| 762 | SSL. |
| 763 | |
| 764 | .. code-block:: yaml |
Alexander Noskov | 62496fb | 2017-02-27 16:42:54 +0100 | [diff] [blame] | 765 | |
| 766 | cinder: |
| 767 | controller: |
| 768 | public_endpoint_address: https://${_param:cluster_domain}:8776 |
| 769 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 770 | * Client role definition: |
Michel Nederlof | b8603eb | 2017-02-09 10:04:38 +0100 | [diff] [blame] | 771 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 772 | .. code-block:: yaml |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 773 | |
| 774 | cinder: |
| 775 | client: |
| 776 | enabled: true |
| 777 | identity: |
| 778 | host: 127.0.0.1 |
| 779 | port: 35357 |
| 780 | project: service |
| 781 | user: cinder |
| 782 | password: pwd |
| 783 | protocol: http |
| 784 | endpoint_type: internalURL |
| 785 | region_name: RegionOne |
root | 0840265 | 2018-12-28 15:04:23 +0000 | [diff] [blame] | 786 | connection_params: |
| 787 | connect_retries: 5 |
| 788 | connect_retry_delay: 1 |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 789 | backend: |
| 790 | ceph: |
| 791 | type_name: standard-iops |
| 792 | engine: ceph |
| 793 | key: |
| 794 | conn_speed: fibre-10G |
| 795 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 796 | * Barbican integration enablement: |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 797 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 798 | .. code-block:: yaml |
Oleg Iurchenko | 83ee09a | 2017-10-17 18:24:28 +0300 | [diff] [blame] | 799 | |
| 800 | cinder: |
| 801 | controller: |
| 802 | barbican: |
| 803 | enabled: true |
Jiri Broulik | 47aa6b3 | 2017-07-10 18:39:15 +0200 | [diff] [blame] | 804 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 805 | * Keystone API version specification (v3 is default): |
Oleg Iurchenko | 6fe8e5d | 2018-02-20 14:26:04 +0200 | [diff] [blame] | 806 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 807 | .. code-block:: yaml |
Oleg Iurchenko | 6fe8e5d | 2018-02-20 14:26:04 +0200 | [diff] [blame] | 808 | |
| 809 | cinder: |
| 810 | controller: |
| 811 | identity: |
| 812 | api_version: v2.0 |
| 813 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 814 | **Enhanced logging with logging.conf** |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 815 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 816 | By default ``logging.conf`` is disabled. |
| 817 | You can enable per-binary ``logging.conf`` by setting the following |
| 818 | parameters: |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 819 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 820 | * ``openstack_log_appender`` |
| 821 | Set to ``true`` to enable ``log_config_append`` for all OpenStack |
| 822 | services |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 823 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 824 | * ``openstack_fluentd_handler_enabled`` |
| 825 | Set to ``true`` to enable FluentHandler for all Openstack services |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 826 | |
OlgaGusarenko | 74b53f2 | 2018-06-28 17:35:48 +0300 | [diff] [blame] | 827 | * ``openstack_ossyslog_handler_enabled`` |
| 828 | Set to ``true`` to enable OSSysLogHandler for all Openstack services |
| 829 | |
| 830 | Only WatchedFileHandler, OSSysLogHandler, and FluentHandler are available. |
| 831 | |
| 832 | To configure this functionality with pillar: |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 833 | |
| 834 | .. code-block:: yaml |
| 835 | |
| 836 | cinder: |
| 837 | controller: |
| 838 | logging: |
| 839 | log_appender: true |
| 840 | log_handlers: |
| 841 | watchedfile: |
| 842 | enabled: true |
| 843 | fluentd: |
| 844 | enabled: true |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 845 | ossyslog: |
| 846 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 847 | |
| 848 | volume: |
| 849 | logging: |
| 850 | log_appender: true |
| 851 | log_handlers: |
| 852 | watchedfile: |
| 853 | enabled: true |
| 854 | fluentd: |
| 855 | enabled: true |
Oleksii Chupryn | 688ae09 | 2018-02-07 09:49:21 +0200 | [diff] [blame] | 856 | ossyslog: |
| 857 | enabled: true |
Dmitry Kalashnik | 3291f54 | 2017-12-05 18:43:47 +0400 | [diff] [blame] | 858 | |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 859 | Enable x509 and ssl communication between Cinder and Galera cluster. |
| 860 | --------------------- |
| 861 | By default communication between Cinder and Galera is unsecure. |
Jakub Pavlik | b513f13 | 2016-05-20 11:11:19 +0200 | [diff] [blame] | 862 | |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame] | 863 | cinder: |
| 864 | volume: |
| 865 | database: |
| 866 | x509: |
| 867 | enabled: True |
| 868 | controller: |
| 869 | database: |
| 870 | x509: |
| 871 | enabled: True |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 872 | |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame] | 873 | You able to set custom certificates in pillar: |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 874 | |
| 875 | cinder: |
| 876 | controller: |
| 877 | database: |
| 878 | x509: |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame] | 879 | cacert: (certificate content) |
| 880 | cert: (certificate content) |
| 881 | key: (certificate content) |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 882 | volume: |
| 883 | database: |
| 884 | x509: |
Oleksandr Shyshko | 9a8196c | 2018-09-07 13:51:20 +0300 | [diff] [blame] | 885 | cacert: (certificate content) |
| 886 | cert: (certificate content) |
| 887 | key: (certificate content) |
Oleksandr Shyshko | e17f67a | 2018-08-22 15:26:17 +0300 | [diff] [blame] | 888 | |
| 889 | You can read more about it here: |
| 890 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
| 891 | |
Oleksandr Bryndzii | 8f9e388 | 2018-09-28 23:08:56 +0000 | [diff] [blame] | 892 | Cinder services on compute node with memcached caching and security strategy: |
| 893 | |
| 894 | .. code-block:: yaml |
| 895 | |
| 896 | cinder: |
| 897 | volume: |
| 898 | enabled: true |
| 899 | ... |
| 900 | cache: |
| 901 | engine: memcached |
| 902 | members: |
| 903 | - host: 127.0.0.1 |
| 904 | port: 11211 |
| 905 | - host: 127.0.0.1 |
| 906 | port: 11211 |
| 907 | security: |
| 908 | enabled: true |
| 909 | strategy: ENCRYPT |
| 910 | secret_key: secret |
| 911 | |
| 912 | Cinder services on controller node with memcached caching and security strategy: |
| 913 | |
| 914 | .. code-block:: yaml |
| 915 | |
| 916 | cinder: |
| 917 | controller: |
| 918 | enabled: true |
| 919 | ... |
| 920 | cache: |
| 921 | engine: memcached |
| 922 | members: |
| 923 | - host: 127.0.0.1 |
| 924 | port: 11211 |
| 925 | - host: 127.0.0.1 |
| 926 | port: 11211 |
| 927 | security: |
| 928 | enabled: true |
| 929 | strategy: ENCRYPT |
| 930 | secret_key: secret |
| 931 | |
Oleksandr Shyshko | f8446ed | 2019-02-01 13:02:34 +0000 | [diff] [blame] | 932 | Cinder service supports to define iscsi_helper for lvm backend. |
root | bb60700 | 2019-01-30 17:17:34 +0000 | [diff] [blame] | 933 | ======= |
Oleksandr Shyshko | f8446ed | 2019-02-01 13:02:34 +0000 | [diff] [blame] | 934 | |
| 935 | .. code-block:: yaml |
| 936 | |
| 937 | cinder: |
| 938 | volume: |
| 939 | ... |
| 940 | backend: |
| 941 | lvm: |
| 942 | ... |
| 943 | engine: lvm |
| 944 | iscsi_helper: tgtadm |
| 945 | |
| 946 | Cinder service supports to define scheduler_default_filters. Which filter class names |
| 947 | to use for filtering hosts when not specified in the request. |
| 948 | |
| 949 | .. code-block:: yaml |
| 950 | |
| 951 | cinder: |
| 952 | volume: |
| 953 | ... |
| 954 | scheduler_default_filters: (filters) |
| 955 | |
| 956 | cinder: |
| 957 | controller: |
| 958 | ... |
| 959 | scheduler_default_filters: (filters) |
root | bb60700 | 2019-01-30 17:17:34 +0000 | [diff] [blame] | 960 | ======= |
| 961 | |
| 962 | * Cinder database connection setup: |
| 963 | |
| 964 | .. code-block:: yaml |
| 965 | |
| 966 | cinder: |
| 967 | controller: |
| 968 | enabled: True |
| 969 | ... |
| 970 | database: |
| 971 | idle_timeout: 280 |
| 972 | max_pool_size: 30 |
| 973 | max_retries: '-1' |
| 974 | max_overflow: 40 |
| 975 | volume: |
| 976 | enabled: True |
| 977 | ... |
| 978 | database: |
| 979 | idle_timeout: 280 |
| 980 | max_pool_size: 30 |
| 981 | max_retries: '-1' |
| 982 | max_overflow: 40 |
| 983 | |
Oleksandr Bryndzii | 3beb085 | 2019-02-27 16:44:01 +0200 | [diff] [blame] | 984 | Configure cinder to use service user tokens: |
| 985 | ======== |
| 986 | Long-running operations such as snapshot can sometimes overrun the expiry of the user token. |
| 987 | In such cases, post operations such as cleaning up after a snapshot can fail when the |
| 988 | cinder service needs to cleanup resources. |
| 989 | |
| 990 | This pillar enables cinder to use service user tokens to supplement the regular user token |
| 991 | used to initiate the operation. The identity service (keystone) will then authenticate |
| 992 | a request using the service user token if the user token has already expired. |
| 993 | |
| 994 | .. code-block:: yaml |
| 995 | |
| 996 | cinder: |
| 997 | controller: |
| 998 | enabled: True |
| 999 | ... |
| 1000 | service_user: |
| 1001 | enabled: True |
| 1002 | auth_type: password |
| 1003 | user_domain_id: default |
| 1004 | project_domain_id: default |
| 1005 | project_name: service |
| 1006 | username: cinder |
| 1007 | password: pswd |
Oleksandr Shyshko | f8446ed | 2019-02-01 13:02:34 +0000 | [diff] [blame] | 1008 | |
Oleksandr Bryndzii | 95b4b6b | 2019-04-24 11:22:39 +0300 | [diff] [blame] | 1009 | Change default resource quotas using configmap template settings |
| 1010 | ======== |
| 1011 | |
| 1012 | .. code-block:: yaml |
| 1013 | |
| 1014 | cinder: |
| 1015 | controller: |
| 1016 | configmap: |
| 1017 | DEFAULT: |
| 1018 | quota_volumes: 15 |
| 1019 | quota_snapshots: 15 |
| 1020 | quota_consistencygroups: 15 |
| 1021 | quota_groups: 15 |
| 1022 | quota_gigabytes: 1500 |
| 1023 | quota_backups: 15 |
| 1024 | quota_backup_gigabytes: 1500 |
| 1025 | reservation_expire: 86400 |
| 1026 | reservation_clean_interval: 86400 |
| 1027 | until_refresh: 0 |
| 1028 | max_age: 0 |
| 1029 | quota_driver: cinder.quota.DbQuotaDriver |
| 1030 | use_default_quota_class: true |
| 1031 | per_volume_size_limit: 100 |
| 1032 | |
Martin Polreich | a095810 | 2019-12-11 16:49:29 +0100 | [diff] [blame] | 1033 | |
| 1034 | Change default service policy configuration: |
| 1035 | ============================================ |
| 1036 | |
| 1037 | .. code-block:: yaml |
| 1038 | |
| 1039 | cinder: |
| 1040 | controller: |
| 1041 | policy: |
| 1042 | context_is_admin: 'role:admin' |
| 1043 | admin_or_owner: 'is_admin:True or project_id:%(project_id)s' |
| 1044 | # Add key without value to remove line from policy.json |
| 1045 | volume:create: |
| 1046 | |
| 1047 | |
Vasyl Saienko | 79ecd55 | 2018-09-10 10:31:21 +0000 | [diff] [blame] | 1048 | Upgrades |
| 1049 | ======== |
| 1050 | |
| 1051 | Each openstack formula provide set of phases (logical bloks) that will help to |
| 1052 | build flexible upgrade orchestration logic for particular components. The list |
| 1053 | of phases and theirs descriptions are listed in table below: |
| 1054 | |
| 1055 | +-------------------------------+------------------------------------------------------+ |
| 1056 | | State | Description | |
| 1057 | +===============================+======================================================+ |
| 1058 | | <app>.upgrade.service_running | Ensure that all services for particular application | |
| 1059 | | | are enabled for autostart and running | |
| 1060 | +-------------------------------+------------------------------------------------------+ |
| 1061 | | <app>.upgrade.service_stopped | Ensure that all services for particular application | |
| 1062 | | | disabled for autostart and dead | |
| 1063 | +-------------------------------+------------------------------------------------------+ |
| 1064 | | <app>.upgrade.pkgs_latest | Ensure that packages used by particular application | |
| 1065 | | | are installed to latest available version. | |
| 1066 | | | This will not upgrade data plane packages like qemu | |
| 1067 | | | and openvswitch as usually minimal required version | |
| 1068 | | | in openstack services is really old. The data plane | |
| 1069 | | | packages should be upgraded separately by `apt-get | |
| 1070 | | | upgrade` or `apt-get dist-upgrade` | |
| 1071 | | | Applying this state will not autostart service. | |
| 1072 | +-------------------------------+------------------------------------------------------+ |
| 1073 | | <app>.upgrade.render_config | Ensure configuration is rendered actual version. + |
| 1074 | +-------------------------------+------------------------------------------------------+ |
| 1075 | | <app>.upgrade.pre | We assume this state is applied on all nodes in the | |
| 1076 | | | cloud before running upgrade. | |
| 1077 | | | Only non destructive actions will be applied during | |
| 1078 | | | this phase. Perform service built in service check | |
| 1079 | | | like (keystone-manage doctor and nova-status upgrade)| |
| 1080 | +-------------------------------+------------------------------------------------------+ |
| 1081 | | <app>.upgrade.upgrade.pre | Mostly applicable for data plane nodes. During this | |
| 1082 | | | phase resources will be gracefully removed from | |
| 1083 | | | current node if it is allowed. Services for upgraded | |
| 1084 | | | application will be set to admin disabled state to | |
| 1085 | | | make sure node will not participate in resources | |
| 1086 | | | scheduling. For example on gtw nodes this will set | |
| 1087 | | | all agents to admin disable state and will move all | |
| 1088 | | | routers to other agents. | |
| 1089 | +-------------------------------+------------------------------------------------------+ |
| 1090 | | <app>.upgrade.upgrade | This state will basically upgrade application on | |
| 1091 | | | particular target. Stop services, render | |
| 1092 | | | configuration, install new packages, run offline | |
| 1093 | | | dbsync (for ctl), start services. Data plane should | |
| 1094 | | | not be affected, only OpenStack python services. | |
| 1095 | +-------------------------------+------------------------------------------------------+ |
| 1096 | | <app>.upgrade.upgrade.post | Add services back to scheduling. | |
| 1097 | +-------------------------------+------------------------------------------------------+ |
| 1098 | | <app>.upgrade.post | This phase should be launched only when upgrade of | |
| 1099 | | | the cloud is completed. Cleanup temporary files, | |
| 1100 | | | perform other post upgrade tasks. | |
| 1101 | +-------------------------------+------------------------------------------------------+ |
| 1102 | | <app>.upgrade.verify | Here we will do basic health checks (API CRUD | |
| 1103 | | | operations, verify do not have dead network | |
| 1104 | | | agents/compute services) | |
| 1105 | +-------------------------------+------------------------------------------------------+ |
Oleksandr Pidrepnyi | 57837bf | 2019-06-10 11:23:42 +0300 | [diff] [blame] | 1106 | |
| 1107 | |
| 1108 | Don't manage services scheduling while upgrade |
| 1109 | ---------------------------------------------- |
| 1110 | For some special cases, don't manage services scheduling both enable and disable |
| 1111 | before and after upgrade procedure. |
| 1112 | |
| 1113 | If 'manage_service_maintenance: true' or not present - default behavior, disable services |
| 1114 | before upgrade and enable it after upgrade. |
| 1115 | If 'manage_service_maintenance: false' - don't disable and don't enable upgraded services |
| 1116 | scheduling before and after upgrade. |
| 1117 | |
| 1118 | .. code-block:: yaml |
| 1119 | |
| 1120 | cinder: |
| 1121 | upgrade: |
| 1122 | manage_service_maintenance: false |