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