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