Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
Aleš Komárek | 7215285 | 2017-04-11 13:48:48 +0200 | [diff] [blame] | 2 | ============ |
| 3 | Nova Formula |
| 4 | ============ |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 5 | |
Jakub Pavlik | fcf34f8 | 2016-05-20 09:35:51 +0200 | [diff] [blame] | 6 | OpenStack Nova provides a cloud computing fabric controller, supporting a wide |
| 7 | variety of virtualization technologies, including KVM, Xen, LXC, VMware, and |
| 8 | more. In addition to its native API, it includes compatibility with the |
| 9 | commonly encountered Amazon EC2 and S3 APIs. |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 10 | |
Aleš Komárek | 7215285 | 2017-04-11 13:48:48 +0200 | [diff] [blame] | 11 | Sample Pillars |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 12 | ============== |
| 13 | |
| 14 | Controller nodes |
| 15 | ---------------- |
| 16 | |
| 17 | Nova services on the controller node |
| 18 | |
| 19 | .. code-block:: yaml |
| 20 | |
| 21 | nova: |
| 22 | controller: |
| 23 | version: juno |
| 24 | enabled: true |
| 25 | security_group: true |
Lachlan Evenson | b72de50 | 2016-01-20 15:34:04 -0800 | [diff] [blame] | 26 | cpu_allocation_ratio: 8.0 |
| 27 | ram_allocation_ratio: 1.0 |
Jiri Konecny | 9344a37 | 2016-03-21 19:25:48 +0100 | [diff] [blame] | 28 | disk_allocation_ratio: 1.0 |
Dmitry Stremkovskiy | 2bcba8d | 2017-07-30 21:43:59 +0300 | [diff] [blame] | 29 | cross_az_attach: false |
Jiri Konecny | b5a80e4 | 2016-03-22 11:51:01 +0100 | [diff] [blame] | 30 | workers: 8 |
Jakub Pavlik | 617a896 | 2016-09-04 18:50:06 +0200 | [diff] [blame] | 31 | report_interval: 60 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 32 | bind: |
| 33 | public_address: 10.0.0.122 |
| 34 | public_name: openstack.domain.com |
| 35 | novncproxy_port: 6080 |
| 36 | database: |
| 37 | engine: mysql |
| 38 | host: 127.0.0.1 |
| 39 | port: 3306 |
| 40 | name: nova |
| 41 | user: nova |
| 42 | password: pwd |
| 43 | identity: |
| 44 | engine: keystone |
| 45 | host: 127.0.0.1 |
| 46 | port: 35357 |
| 47 | user: nova |
| 48 | password: pwd |
| 49 | tenant: service |
| 50 | message_queue: |
| 51 | engine: rabbitmq |
| 52 | host: 127.0.0.1 |
| 53 | port: 5672 |
| 54 | user: openstack |
| 55 | password: pwd |
| 56 | virtual_host: '/openstack' |
| 57 | network: |
| 58 | engine: neutron |
| 59 | host: 127.0.0.1 |
| 60 | port: 9696 |
Jakub Pavlik | 617a896 | 2016-09-04 18:50:06 +0200 | [diff] [blame] | 61 | extension_sync_interval: 600 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 62 | identity: |
| 63 | engine: keystone |
| 64 | host: 127.0.0.1 |
| 65 | port: 35357 |
| 66 | user: neutron |
| 67 | password: pwd |
| 68 | tenant: service |
| 69 | metadata: |
| 70 | password: password |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 71 | audit: |
| 72 | enabled: false |
Simon Pasquier | 8683b7a | 2017-02-03 16:00:16 +0100 | [diff] [blame] | 73 | osapi_max_limit: 500 |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 74 | barbican: |
| 75 | enabled: true |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 76 | |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 77 | |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 78 | Nova services from custom package repository |
| 79 | |
| 80 | .. code-block:: yaml |
| 81 | |
| 82 | nova: |
| 83 | controller: |
| 84 | version: juno |
| 85 | source: |
| 86 | engine: pkg |
| 87 | address: http://... |
| 88 | .... |
| 89 | |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 90 | |
| 91 | Client-side RabbitMQ HA setup |
| 92 | |
| 93 | .. code-block:: yaml |
| 94 | |
| 95 | nova: |
| 96 | controller: |
| 97 | .... |
| 98 | message_queue: |
| 99 | engine: rabbitmq |
| 100 | members: |
| 101 | - host: 10.0.16.1 |
| 102 | - host: 10.0.16.2 |
| 103 | - host: 10.0.16.3 |
| 104 | user: openstack |
| 105 | password: pwd |
| 106 | virtual_host: '/openstack' |
| 107 | .... |
| 108 | |
| 109 | |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 110 | Enable auditing filter, ie: CADF |
| 111 | |
| 112 | .. code-block:: yaml |
| 113 | |
| 114 | nova: |
| 115 | controller: |
Simon Pasquier | 6a3c8f7 | 2016-12-19 15:37:24 +0100 | [diff] [blame] | 116 | audit: |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 117 | enabled: true |
| 118 | .... |
| 119 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 120 | map_file: '/etc/pycadf/nova_api_audit_map.conf' |
| 121 | .... |
| 122 | |
| 123 | |
Ondrej Smola | 25b53cb | 2017-04-28 10:56:19 +0200 | [diff] [blame] | 124 | Enable CORS parameters |
| 125 | |
| 126 | .. code-block:: yaml |
| 127 | |
| 128 | nova: |
| 129 | controller: |
| 130 | cors: |
| 131 | allowed_origin: https:localhost.local,http:localhost.local |
| 132 | expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 133 | allow_methods: GET,PUT,POST,DELETE,PATCH |
| 134 | allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 135 | allow_credentials: True |
| 136 | max_age: 86400 |
| 137 | |
Dmitry Ukov | 3562a08 | 2017-05-04 00:00:48 +0400 | [diff] [blame] | 138 | Configuration of policy.json file |
| 139 | |
| 140 | .. code-block:: yaml |
| 141 | |
| 142 | nova: |
| 143 | controller: |
| 144 | .... |
| 145 | policy: |
| 146 | context_is_admin: 'role:admin or role:administrator' |
| 147 | 'compute:create': 'rule:admin_or_owner' |
| 148 | # Add key without value to remove line from policy.json |
| 149 | 'compute:create:attach_network': |
Ondrej Smola | 25b53cb | 2017-04-28 10:56:19 +0200 | [diff] [blame] | 150 | |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 151 | Enable Barbican integration |
| 152 | |
| 153 | .. code-block:: yaml |
| 154 | |
| 155 | nova: |
| 156 | controller: |
| 157 | .... |
| 158 | barbican: |
| 159 | enabled: true |
| 160 | |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 161 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 162 | Configuring TLS communications |
| 163 | ------------------------------ |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 164 | |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 165 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 166 | **Note:** by default system wide installed CA certs are used, so ``cacert_file`` param is optional, as well as ``cacert``. |
| 167 | |
| 168 | |
| 169 | |
| 170 | - **RabbitMQ TLS** |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 171 | |
| 172 | .. code-block:: yaml |
| 173 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 174 | nova: |
| 175 | compute: |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 176 | message_queue: |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 177 | port: 5671 |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 178 | ssl: |
| 179 | enabled: True |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 180 | (optional) cacert: cert body if the cacert_file does not exists |
| 181 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 182 | (optional) version: TLSv1_2 |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 183 | |
| 184 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 185 | - **MySQL TLS** |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 186 | |
| 187 | .. code-block:: yaml |
| 188 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 189 | nova: |
| 190 | controller: |
| 191 | database: |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 192 | ssl: |
| 193 | enabled: True |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 194 | (optional) cacert: cert body if the cacert_file does not exists |
| 195 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 196 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 197 | - **Openstack HTTPS API** |
| 198 | |
| 199 | |
| 200 | Set the ``https`` as protocol at ``nova:compute`` and ``nova:controller`` sections : |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 201 | |
| 202 | .. code-block:: yaml |
| 203 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 204 | nova: |
| 205 | controller : |
| 206 | identity: |
| 207 | protocol: https |
| 208 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 209 | network: |
| 210 | protocol: https |
| 211 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 212 | glance: |
| 213 | protocol: https |
| 214 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 215 | |
| 216 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 217 | .. code-block:: yaml |
| 218 | |
| 219 | nova: |
| 220 | compute: |
| 221 | identity: |
| 222 | protocol: https |
| 223 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 224 | network: |
| 225 | protocol: https |
| 226 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 227 | image: |
| 228 | protocol: https |
| 229 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 230 | ironic: |
| 231 | protocol: https |
| 232 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 233 | |
| 234 | |
| 235 | **Note:** the barbican, cinder and placement url endpoints are discovering using service catalog. |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 236 | |
| 237 | |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 238 | Compute nodes |
| 239 | ------------- |
| 240 | |
| 241 | Nova controller services on compute node |
| 242 | |
| 243 | .. code-block:: yaml |
| 244 | |
| 245 | nova: |
| 246 | compute: |
| 247 | version: juno |
| 248 | enabled: true |
| 249 | virtualization: kvm |
Dmitry Stremkovskiy | 2bcba8d | 2017-07-30 21:43:59 +0300 | [diff] [blame] | 250 | cross_az_attach: false |
Dmitry Stremkovskiy | 35e53b7 | 2017-07-29 12:50:39 +0300 | [diff] [blame] | 251 | disk_cachemodes: network=writeback,block=none |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 252 | availability_zone: availability_zone_01 |
Damian Szeluga | e192241 | 2017-04-18 16:36:46 +0200 | [diff] [blame] | 253 | aggregates: |
| 254 | - hosts_with_fc |
| 255 | - hosts_with_ssd |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 256 | security_group: true |
Petr Michalec | f03e488 | 2017-04-10 10:26:18 +0200 | [diff] [blame] | 257 | resume_guests_state_on_host_boot: False |
Dmitry Stremkovskiy | 8a0ff51 | 2017-07-25 20:54:13 +0300 | [diff] [blame] | 258 | my_ip: 10.1.0.16 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 259 | bind: |
| 260 | vnc_address: 172.20.0.100 |
| 261 | vnc_port: 6080 |
| 262 | vnc_name: openstack.domain.com |
| 263 | vnc_protocol: http |
| 264 | database: |
| 265 | engine: mysql |
| 266 | host: 127.0.0.1 |
| 267 | port: 3306 |
| 268 | name: nova |
| 269 | user: nova |
| 270 | password: pwd |
| 271 | identity: |
| 272 | engine: keystone |
| 273 | host: 127.0.0.1 |
| 274 | port: 35357 |
| 275 | user: nova |
| 276 | password: pwd |
| 277 | tenant: service |
| 278 | message_queue: |
| 279 | engine: rabbitmq |
| 280 | host: 127.0.0.1 |
| 281 | port: 5672 |
| 282 | user: openstack |
| 283 | password: pwd |
| 284 | virtual_host: '/openstack' |
| 285 | image: |
| 286 | engine: glance |
| 287 | host: 127.0.0.1 |
| 288 | port: 9292 |
| 289 | network: |
| 290 | engine: neutron |
| 291 | host: 127.0.0.1 |
| 292 | port: 9696 |
| 293 | identity: |
| 294 | engine: keystone |
| 295 | host: 127.0.0.1 |
| 296 | port: 35357 |
| 297 | user: neutron |
| 298 | password: pwd |
| 299 | tenant: service |
| 300 | qemu: |
| 301 | max_files: 4096 |
| 302 | max_processes: 4096 |
Dmitry Stremkovskiy | 96281f5 | 2017-07-26 00:39:22 +0300 | [diff] [blame] | 303 | host: node-12.domain.tld |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 304 | |
kkalynovskyi | f50f0c0 | 2017-12-12 17:52:57 +0200 | [diff] [blame] | 305 | Group and user to be used for QEMU processes run by the system instance |
| 306 | |
| 307 | .. code-block:: yaml |
| 308 | |
| 309 | nova: |
| 310 | compute: |
| 311 | enabled: true |
| 312 | ... |
| 313 | qemu: |
| 314 | user: nova |
| 315 | group: cinder |
| 316 | dynamic_ownership: 1 |
| 317 | |
Dmitry Stremkovskiy | 3cd6ba8 | 2017-07-25 17:15:36 +0300 | [diff] [blame] | 318 | Group membership for user nova (upgrade related) |
| 319 | |
| 320 | .. code-block:: yaml |
| 321 | |
| 322 | nova: |
| 323 | compute: |
| 324 | enabled: true |
| 325 | ... |
| 326 | user: |
| 327 | groups: |
| 328 | - libvirt |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 329 | |
| 330 | Nova services on compute node with OpenContrail |
| 331 | |
| 332 | .. code-block:: yaml |
| 333 | |
| 334 | nova: |
| 335 | compute: |
| 336 | enabled: true |
| 337 | ... |
| 338 | networking: contrail |
| 339 | |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 340 | |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 341 | Nova services on compute node with memcached caching |
| 342 | |
| 343 | .. code-block:: yaml |
| 344 | |
| 345 | nova: |
| 346 | compute: |
| 347 | enabled: true |
| 348 | ... |
| 349 | cache: |
| 350 | engine: memcached |
| 351 | members: |
| 352 | - host: 127.0.0.1 |
| 353 | port: 11211 |
| 354 | - host: 127.0.0.1 |
| 355 | port: 11211 |
| 356 | |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 357 | |
| 358 | Client-side RabbitMQ HA setup |
| 359 | |
| 360 | .. code-block:: yaml |
| 361 | |
| 362 | nova: |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 363 | compute: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 364 | .... |
| 365 | message_queue: |
| 366 | engine: rabbitmq |
| 367 | members: |
| 368 | - host: 10.0.16.1 |
| 369 | - host: 10.0.16.2 |
| 370 | - host: 10.0.16.3 |
| 371 | user: openstack |
| 372 | password: pwd |
| 373 | virtual_host: '/openstack' |
| 374 | .... |
| 375 | |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 376 | Nova with ephemeral configured with Ceph |
| 377 | |
| 378 | .. code-block:: yaml |
| 379 | |
| 380 | nova: |
| 381 | compute: |
| 382 | enabled: true |
| 383 | ... |
| 384 | ceph: |
| 385 | ephemeral: yes |
| 386 | rbd_pool: nova |
| 387 | rbd_user: nova |
| 388 | secret_uuid: 03006edd-d957-40a3-ac4c-26cd254b3731 |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 389 | .... |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 390 | |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 391 | Nova with ephemeral configured with LVM |
| 392 | |
| 393 | .. code-block:: yaml |
| 394 | |
| 395 | nova: |
| 396 | compute: |
| 397 | enabled: true |
| 398 | ... |
| 399 | lvm: |
| 400 | ephemeral: yes |
| 401 | images_volume_group: nova_vg |
| 402 | |
| 403 | linux: |
| 404 | storage: |
| 405 | lvm: |
| 406 | nova_vg: |
| 407 | name: nova_vg |
| 408 | devices: |
| 409 | - /dev/sdf |
| 410 | - /dev/sdd |
| 411 | - /dev/sdg |
| 412 | - /dev/sde |
| 413 | - /dev/sdc |
| 414 | - /dev/sdj |
| 415 | - /dev/sdh |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 416 | |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 417 | Enable Barbican integration |
| 418 | |
| 419 | .. code-block:: yaml |
| 420 | |
| 421 | nova: |
| 422 | compute: |
| 423 | .... |
| 424 | barbican: |
| 425 | enabled: true |
| 426 | |
Vasyl Saienko | 2d59128 | 2018-02-05 14:19:02 +0200 | [diff] [blame^] | 427 | Nova metadata custom bindings |
| 428 | |
| 429 | .. code-block:: yaml |
| 430 | |
| 431 | nova: |
| 432 | controller: |
| 433 | enabled: true |
| 434 | ... |
| 435 | metadata: |
| 436 | bind: |
| 437 | address: 1.2.3.4 |
| 438 | port: 8776 |
| 439 | |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 440 | |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 441 | Client role |
| 442 | ----------- |
| 443 | |
Dmitry Stremkovskiy | 665c728 | 2017-07-05 17:36:27 +0300 | [diff] [blame] | 444 | Nova configured with NFS |
| 445 | |
| 446 | .. code-block:: yaml |
| 447 | |
| 448 | nova: |
| 449 | compute: |
| 450 | instances_path: /mnt/nova/instances |
| 451 | |
| 452 | linux: |
| 453 | storage: |
| 454 | enabled: true |
| 455 | mount: |
| 456 | nfs_nova: |
| 457 | enabled: true |
| 458 | path: ${nova:compute:instances_path} |
| 459 | device: 172.31.35.145:/data |
| 460 | file_system: nfs |
| 461 | opts: rw,vers=3 |
| 462 | |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 463 | Nova flavors |
| 464 | |
| 465 | .. code-block:: yaml |
| 466 | |
| 467 | nova: |
| 468 | client: |
| 469 | enabled: true |
| 470 | server: |
| 471 | identity: |
| 472 | flavor: |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 473 | flavor1: |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 474 | flavor_id: 10 |
| 475 | ram: 4096 |
| 476 | disk: 10 |
| 477 | vcpus: 1 |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 478 | flavor2: |
| 479 | flavor_id: auto |
| 480 | ram: 4096 |
| 481 | disk: 20 |
| 482 | vcpus: 2 |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 483 | identity1: |
| 484 | flavor: |
| 485 | ... |
| 486 | |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 487 | |
| 488 | Availability zones |
| 489 | |
| 490 | .. code-block:: yaml |
| 491 | |
| 492 | nova: |
| 493 | client: |
| 494 | enabled: true |
| 495 | server: |
| 496 | identity: |
| 497 | availability_zones: |
| 498 | - availability_zone_01 |
| 499 | - availability_zone_02 |
| 500 | |
Damian Szeluga | 5dca0f0 | 2017-04-13 17:27:15 +0200 | [diff] [blame] | 501 | |
| 502 | |
| 503 | Aggregates |
| 504 | |
| 505 | .. code-block:: yaml |
| 506 | |
| 507 | nova: |
| 508 | client: |
| 509 | enabled: true |
| 510 | server: |
| 511 | identity: |
| 512 | aggregates: |
| 513 | - aggregate1 |
| 514 | - aggregate2 |
| 515 | |
Dmitry Stremkovskiy | 91f4585 | 2017-07-18 16:22:31 +0300 | [diff] [blame] | 516 | Upgrade levels |
| 517 | |
| 518 | .. code-block:: yaml |
| 519 | |
| 520 | nova: |
| 521 | controller: |
| 522 | upgrade_levels: |
| 523 | compute: juno |
| 524 | |
| 525 | nova: |
| 526 | compute: |
| 527 | upgrade_levels: |
| 528 | compute: juno |
| 529 | |
Petr Jediný | d855ef2 | 2017-03-06 22:24:33 +0100 | [diff] [blame] | 530 | SR-IOV |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 531 | ------ |
| 532 | |
| 533 | Add PciPassthroughFilter into scheduler filters and NICs on specific compute nodes. |
| 534 | |
| 535 | .. code-block:: yaml |
| 536 | |
| 537 | nova: |
| 538 | controller: |
| 539 | sriov: true |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 540 | scheduler_default_filters: "DifferentHostFilter,SameHostFilter,RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter" |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 541 | |
| 542 | nova: |
| 543 | compute: |
| 544 | sriov: |
| 545 | nic_one: |
| 546 | devname: eth1 |
| 547 | physical_network: physnet1 |
| 548 | |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 549 | CPU pinning & Hugepages |
| 550 | ----------------------- |
| 551 | |
| 552 | CPU pinning of virtual machine instances to dedicated physical CPU cores. |
| 553 | Hugepages mount point for libvirt. |
| 554 | |
| 555 | .. code-block:: yaml |
| 556 | |
| 557 | nova: |
| 558 | controller: |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 559 | scheduler_default_filters: "DifferentHostFilter,SameHostFilter,RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,NUMATopologyFilter,AggregateInstanceExtraSpecsFilter" |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 560 | |
| 561 | nova: |
| 562 | compute: |
| 563 | vcpu_pin_set: 2,3,4,5 |
| 564 | hugepages: |
| 565 | mount_points: |
| 566 | - path: /mnt/hugepages_1GB |
| 567 | - path: /mnt/hugepages_2MB |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 568 | |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 569 | Custom Scheduler filters |
| 570 | ------------------------ |
| 571 | |
| 572 | If you have a custom filter, that needs to be included in the scheduler, then you can include it like so: |
| 573 | |
| 574 | .. code-block:: yaml |
| 575 | |
| 576 | nova: |
| 577 | controller: |
| 578 | scheduler_custom_filters: |
| 579 | - my_custom_driver.nova.scheduler.filters.my_custom_filter.MyCustomFilter |
| 580 | |
| 581 | # Then add your custom filter on the end (make sure to include all other ones that you need as well) |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 582 | scheduler_default_filters: "DifferentHostFilter,SameHostFilter,RetryFilter,AvailabilityZoneFilter,RamFilter,CoreFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter,MyCustomFilter" |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 583 | |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 584 | Hardware Trip/Unmap Support |
| 585 | --------------------------- |
| 586 | |
| 587 | To enable TRIM support for ephemeral images (thru nova managed images), libvirt has this option. |
| 588 | |
| 589 | .. code-block:: yaml |
| 590 | |
| 591 | nova: |
| 592 | compute: |
| 593 | libvirt: |
| 594 | hw_disk_discard: unmap |
| 595 | |
| 596 | In order to actually utilize this feature, the following metadata must be set on the image as well, so the SCSI unmap is supported. |
| 597 | |
| 598 | .. code-block:: bash |
| 599 | |
| 600 | glance image-update --property hw_scsi_model=virtio-scsi <image> |
| 601 | glance image-update --property hw_disk_bus=scsi <image> |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 602 | |
Jakub Pavlik | 7046b9c | 2017-09-19 12:04:19 +0200 | [diff] [blame] | 603 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 604 | Scheduler Host Manager |
| 605 | ---------------------- |
| 606 | |
| 607 | Specify a custom host manager. |
| 608 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 609 | libvirt CPU mode |
| 610 | ---------------- |
| 611 | |
| 612 | Allow setting the model of CPU that is exposed to a VM. This allows better |
| 613 | support live migration between hypervisors with different hardware, among other |
| 614 | things. Defaults to host-passthrough. |
| 615 | |
Jakub Pavlik | 7046b9c | 2017-09-19 12:04:19 +0200 | [diff] [blame] | 616 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 617 | .. code-block:: yaml |
| 618 | |
| 619 | nova: |
| 620 | controller: |
| 621 | scheduler_host_manager: ironic_host_manager |
| 622 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 623 | compute: |
| 624 | cpu_mode: host-model |
| 625 | |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 626 | Nova compute workarounds |
| 627 | ------------------------ |
| 628 | |
| 629 | Live snapshotting is disabled by default in nova. To enable this, it needs a manual switch. |
| 630 | |
| 631 | From manual: |
| 632 | |
| 633 | .. code-block:: yaml |
| 634 | |
| 635 | # When using libvirt 1.2.2 live snapshots fail intermittently under load |
| 636 | # (likely related to concurrent libvirt/qemu operations). This config |
| 637 | # option provides a mechanism to disable live snapshot, in favor of cold |
| 638 | # snapshot, while this is resolved. Cold snapshot causes an instance |
| 639 | # outage while the guest is going through the snapshotting process. |
| 640 | # |
| 641 | # For more information, refer to the bug report: |
| 642 | # |
| 643 | # https://bugs.launchpad.net/nova/+bug/1334398 |
| 644 | |
| 645 | Configurable pillar data: |
| 646 | |
| 647 | .. code-block:: yaml |
| 648 | |
| 649 | nova: |
| 650 | compute: |
Michel Nederlof | e322ebb | 2017-07-10 12:29:21 +0200 | [diff] [blame] | 651 | workaround: |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 652 | disable_libvirt_livesnapshot: False |
| 653 | |
Michel Nederlof | b51a514 | 2017-06-27 08:31:35 +0200 | [diff] [blame] | 654 | Config drive options |
| 655 | -------------------- |
| 656 | |
| 657 | See example below on how to configure the options for the config drive. |
| 658 | |
| 659 | .. code-block:: yaml |
| 660 | |
| 661 | nova: |
| 662 | compute: |
| 663 | config_drive: |
| 664 | forced: True # Default: True |
| 665 | cdrom: True # Default: False |
| 666 | format: iso9660 # Default: vfat |
| 667 | inject_password: False # Default: False |
| 668 | |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 669 | Number of concurrent live migrates |
| 670 | ---------------------------------- |
| 671 | |
| 672 | Default is to have no concurrent live migrations (so 1 live-migration at a time). |
| 673 | |
| 674 | Excerpt from config options page (https://docs.openstack.org/ocata/config-reference/compute/config-options.html): |
| 675 | |
| 676 | Maximum number of live migrations to run concurrently. This limit is |
| 677 | enforced to avoid outbound live migrations overwhelming the host/network |
| 678 | and causing failures. It is not recommended that you change this unless |
| 679 | you are very sure that doing so is safe and stable in your environment. |
| 680 | |
| 681 | Possible values: |
| 682 | |
| 683 | - 0 : treated as unlimited. |
| 684 | - Negative value defaults to 0. |
| 685 | - Any positive integer representing maximum number of live migrations to run concurrently. |
| 686 | |
| 687 | To configure this option: |
| 688 | |
| 689 | .. code-block:: yaml |
| 690 | |
| 691 | nova: |
| 692 | compute: |
| 693 | max_concurrent_live_migrations: 1 # (1 is the default) |
| 694 | |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 695 | Enhanced logging with logging.conf |
| 696 | ---------------------------------- |
| 697 | |
| 698 | By default logging.conf is disabled. |
| 699 | |
| 700 | That is possible to enable per-binary logging.conf with new variables: |
| 701 | * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services; |
| 702 | * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services. |
| 703 | |
Dmitry Kalashnik | 8da249c | 2018-01-16 17:58:00 +0400 | [diff] [blame] | 704 | Only WatchedFileHandler and FluentHandler are available. |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 705 | |
Dmitry Kalashnik | 8da249c | 2018-01-16 17:58:00 +0400 | [diff] [blame] | 706 | Also it is possible to configure this with pillar: |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 707 | |
| 708 | .. code-block:: yaml |
| 709 | |
| 710 | nova: |
| 711 | controller: |
| 712 | logging: |
| 713 | log_appender: true |
| 714 | log_handlers: |
| 715 | watchedfile: |
| 716 | enabled: true |
| 717 | fluentd: |
| 718 | enabled: true |
| 719 | |
| 720 | compute: |
| 721 | logging: |
| 722 | log_appender: true |
| 723 | log_handlers: |
| 724 | watchedfile: |
| 725 | enabled: true |
| 726 | fluentd: |
| 727 | enabled: true |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 728 | |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 729 | Documentation and Bugs |
| 730 | ====================== |
| 731 | |
| 732 | To learn how to install and update salt-formulas, consult the documentation |
| 733 | available online at: |
| 734 | |
| 735 | http://salt-formulas.readthedocs.io/ |
| 736 | |
| 737 | In the unfortunate event that bugs are discovered, they should be reported to |
| 738 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 739 | formula: |
| 740 | |
| 741 | https://github.com/salt-formulas/salt-formula-nova/issues |
| 742 | |
| 743 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 744 | use Launchpad salt-formulas project: |
| 745 | |
| 746 | https://launchpad.net/salt-formulas |
| 747 | |
| 748 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 749 | |
| 750 | https://launchpad.net/~salt-formulas-users |
| 751 | |
| 752 | Developers wishing to work on the salt-formulas projects should always base |
| 753 | their work on master branch and submit pull request against specific formula. |
| 754 | |
| 755 | https://github.com/salt-formulas/salt-formula-nova |
| 756 | |
| 757 | Any questions or feedback is always welcome so feel free to join our IRC |
| 758 | channel: |
| 759 | |
| 760 | #salt-formulas @ irc.freenode.net |