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