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