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 | ============ |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 3 | Usage |
Aleš Komárek | 7215285 | 2017-04-11 13:48:48 +0200 | [diff] [blame] | 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 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 17 | Nova services on the controller node: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 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 |
Michel Nederlof | 8ff9933 | 2017-10-23 14:29:15 +0200 | [diff] [blame] | 32 | dhcp_domain: novalocal |
Dzmitry Stremkouski | fe346fc | 2020-01-30 18:29:29 +0100 | [diff] [blame] | 33 | vif_plugging_timeout: 300 |
| 34 | vif_plugging_is_fatal: false |
| 35 | instance_build_timeout: 600 |
| 36 | use_cow_images: False |
| 37 | force_raw_images: True |
| 38 | snapshot_image_format: qcow2 |
| 39 | images_type: default |
Ivan Berezovskiy | 689e6ea | 2019-11-14 20:17:58 +0400 | [diff] [blame] | 40 | concurrency: |
| 41 | lock_path: '/var/lib/nova/tmp' |
sgarbuz | cc02c7f | 2018-10-25 14:29:30 +0300 | [diff] [blame] | 42 | consoleauth: |
| 43 | token_ttl: 600 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 44 | bind: |
| 45 | public_address: 10.0.0.122 |
| 46 | public_name: openstack.domain.com |
| 47 | novncproxy_port: 6080 |
| 48 | database: |
| 49 | engine: mysql |
| 50 | host: 127.0.0.1 |
| 51 | port: 3306 |
| 52 | name: nova |
| 53 | user: nova |
| 54 | password: pwd |
| 55 | identity: |
| 56 | engine: keystone |
| 57 | host: 127.0.0.1 |
| 58 | port: 35357 |
| 59 | user: nova |
| 60 | password: pwd |
| 61 | tenant: service |
Dzmitry Stremkouski | 9f74322 | 2019-05-26 01:20:42 +0200 | [diff] [blame] | 62 | interface: internal |
| 63 | valid_interfaces: |
| 64 | - internal |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 65 | message_queue: |
| 66 | engine: rabbitmq |
| 67 | host: 127.0.0.1 |
| 68 | port: 5672 |
| 69 | user: openstack |
| 70 | password: pwd |
| 71 | virtual_host: '/openstack' |
Oleh Hryhorov | f5093b8 | 2018-10-17 11:16:08 +0000 | [diff] [blame] | 72 | pci: |
| 73 | alias: |
| 74 | alias1: |
| 75 | device_type: "type-PF" |
| 76 | name: "a1" |
| 77 | product_id: "154d" |
| 78 | vendor_id: "8086" |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 79 | network: |
| 80 | engine: neutron |
| 81 | host: 127.0.0.1 |
| 82 | port: 9696 |
Jakub Pavlik | 617a896 | 2016-09-04 18:50:06 +0200 | [diff] [blame] | 83 | extension_sync_interval: 600 |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 84 | identity: |
| 85 | engine: keystone |
| 86 | host: 127.0.0.1 |
| 87 | port: 35357 |
| 88 | user: neutron |
| 89 | password: pwd |
| 90 | tenant: service |
| 91 | metadata: |
| 92 | password: password |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 93 | audit: |
| 94 | enabled: false |
Simon Pasquier | 8683b7a | 2017-02-03 16:00:16 +0100 | [diff] [blame] | 95 | osapi_max_limit: 500 |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 96 | barbican: |
| 97 | enabled: true |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 98 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 99 | Nova services from custom package repository: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 100 | |
| 101 | .. code-block:: yaml |
| 102 | |
| 103 | nova: |
| 104 | controller: |
| 105 | version: juno |
| 106 | source: |
| 107 | engine: pkg |
| 108 | address: http://... |
| 109 | .... |
| 110 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 111 | Client-side RabbitMQ HA setup: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 112 | |
| 113 | .. code-block:: yaml |
| 114 | |
| 115 | nova: |
| 116 | controller: |
| 117 | .... |
| 118 | message_queue: |
| 119 | engine: rabbitmq |
| 120 | members: |
| 121 | - host: 10.0.16.1 |
| 122 | - host: 10.0.16.2 |
| 123 | - host: 10.0.16.3 |
| 124 | user: openstack |
| 125 | password: pwd |
| 126 | virtual_host: '/openstack' |
| 127 | .... |
| 128 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 129 | Enable auditing filter, i.e: CADF: |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 130 | |
| 131 | .. code-block:: yaml |
| 132 | |
| 133 | nova: |
| 134 | controller: |
Simon Pasquier | 6a3c8f7 | 2016-12-19 15:37:24 +0100 | [diff] [blame] | 135 | audit: |
Petr Michalec | aa23dc0 | 2016-11-29 16:30:25 +0100 | [diff] [blame] | 136 | enabled: true |
| 137 | .... |
| 138 | filter_factory: 'keystonemiddleware.audit:filter_factory' |
| 139 | map_file: '/etc/pycadf/nova_api_audit_map.conf' |
| 140 | .... |
| 141 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 142 | Enable CORS parameters: |
Ondrej Smola | 25b53cb | 2017-04-28 10:56:19 +0200 | [diff] [blame] | 143 | |
| 144 | .. code-block:: yaml |
| 145 | |
| 146 | nova: |
| 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 |
| 155 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 156 | Configuration of the ``policy.json`` file: |
Dmitry Ukov | 3562a08 | 2017-05-04 00:00:48 +0400 | [diff] [blame] | 157 | |
| 158 | .. code-block:: yaml |
| 159 | |
| 160 | nova: |
| 161 | controller: |
| 162 | .... |
| 163 | policy: |
| 164 | context_is_admin: 'role:admin or role:administrator' |
| 165 | 'compute:create': 'rule:admin_or_owner' |
| 166 | # Add key without value to remove line from policy.json |
| 167 | 'compute:create:attach_network': |
Ondrej Smola | 25b53cb | 2017-04-28 10:56:19 +0200 | [diff] [blame] | 168 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 169 | Enable Barbican integration: |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 170 | |
| 171 | .. code-block:: yaml |
| 172 | |
| 173 | nova: |
| 174 | controller: |
| 175 | .... |
| 176 | barbican: |
| 177 | enabled: true |
| 178 | |
Oleh Hryhorov | f5093b8 | 2018-10-17 11:16:08 +0000 | [diff] [blame] | 179 | Define aliases for PCI devices: |
| 180 | .. code-block:: yaml |
| 181 | |
| 182 | nova: |
| 183 | controller: |
| 184 | ... |
| 185 | pci: |
| 186 | alias: |
| 187 | alias1: |
| 188 | device_type: "type-PF" |
| 189 | name: "a1" |
| 190 | product_id: "154d" |
| 191 | vendor_id: "8086" |
| 192 | |
Jiri Broulik | 789179a | 2018-02-13 16:16:46 +0100 | [diff] [blame] | 193 | Enable cells update: |
| 194 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 195 | .. note:: Useful when upgrading Openstack. To update cells to test |
| 196 | sync db agains duplicated production database. |
Jiri Broulik | 789179a | 2018-02-13 16:16:46 +0100 | [diff] [blame] | 197 | |
| 198 | .. code-block:: yaml |
| 199 | |
| 200 | nova: |
| 201 | controller: |
| 202 | update_cells: true |
| 203 | |
Dzmitry Stremkouski | f849767 | 2019-11-03 10:36:46 +0100 | [diff] [blame] | 204 | Increase number of chunks for online db migrations: |
| 205 | |
| 206 | .. note:: This only should be done in offline as large number of |
| 207 | rows locked by this process may cause service outage, which |
| 208 | may not be expected. |
| 209 | |
| 210 | .. code-block:: yaml |
| 211 | |
| 212 | nova: |
| 213 | controller: |
| 214 | db_migrations: |
| 215 | max_count: 5000000 |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 216 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 217 | Configuring TLS communications |
| 218 | ------------------------------ |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 219 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 220 | .. note:: By default system wide installed CA certs are used, |
| 221 | so ``cacert_file`` param is optional, as well as ``cacert``. |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 222 | |
| 223 | - **RabbitMQ TLS** |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 224 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 225 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 226 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 227 | nova: |
| 228 | compute: |
| 229 | message_queue: |
| 230 | port: 5671 |
| 231 | ssl: |
| 232 | enabled: True |
| 233 | (optional) cacert: cert body if the cacert_file does not exists |
| 234 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 235 | (optional) version: TLSv1_2 |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 236 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 237 | - **MySQL TLS** |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 238 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 239 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 240 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 241 | nova: |
| 242 | controller: |
| 243 | database: |
| 244 | ssl: |
| 245 | enabled: True |
| 246 | (optional) cacert: cert body if the cacert_file does not exists |
| 247 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 248 | |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 249 | - **Openstack HTTPS API** |
| 250 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 251 | Set the ``https`` as protocol at ``nova:compute`` and |
| 252 | ``nova:controller`` sections : |
Kirill Bespalov | a0eaca7 | 2017-11-20 13:40:42 +0300 | [diff] [blame] | 253 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 254 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 255 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 256 | nova: |
| 257 | controller : |
| 258 | identity: |
| 259 | protocol: https |
| 260 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 261 | network: |
| 262 | protocol: https |
| 263 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 264 | glance: |
| 265 | protocol: https |
| 266 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 267 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 268 | .. code-block:: yaml |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 269 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 270 | nova: |
| 271 | compute: |
| 272 | identity: |
| 273 | protocol: https |
| 274 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 275 | network: |
| 276 | protocol: https |
| 277 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 278 | image: |
| 279 | protocol: https |
| 280 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 281 | ironic: |
| 282 | protocol: https |
| 283 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 284 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 285 | .. note:: Barbican, Cinder, and placement url endpoints are discovering |
| 286 | using service catalog. |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 287 | |
Martin Polreich | dbf4f14 | 2019-12-17 14:19:44 +0100 | [diff] [blame] | 288 | Change default service policy configuration: |
| 289 | -------------------------------------------- |
| 290 | |
| 291 | .. code-block:: yaml |
| 292 | |
| 293 | nova: |
| 294 | controller: |
| 295 | policy: |
| 296 | 'context_is_admin': 'role:admin or role:administrator' |
| 297 | 'compute:create': 'rule:admin_or_owner' |
| 298 | # Add key without value to remove line from policy.json |
| 299 | 'compute:create:attach_network': |
| 300 | |
Taras Khlivnyak | 0d2606d | 2021-02-09 13:47:27 +0200 | [diff] [blame] | 301 | Configure host_subset_size |
| 302 | -------------------------- |
| 303 | |
| 304 | .. code-block:: yaml |
| 305 | |
| 306 | nova: |
| 307 | controller: |
| 308 | host_subset_size: 1 |
| 309 | |
Martin Polreich | dbf4f14 | 2019-12-17 14:19:44 +0100 | [diff] [blame] | 310 | |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 311 | Compute nodes |
| 312 | ------------- |
| 313 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 314 | Nova controller services on compute node: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 315 | |
| 316 | .. code-block:: yaml |
| 317 | |
| 318 | nova: |
| 319 | compute: |
| 320 | version: juno |
| 321 | enabled: true |
Dmitry Stremkovskiy | 2bcba8d | 2017-07-30 21:43:59 +0300 | [diff] [blame] | 322 | cross_az_attach: false |
Dmitry Stremkovskiy | 35e53b7 | 2017-07-29 12:50:39 +0300 | [diff] [blame] | 323 | disk_cachemodes: network=writeback,block=none |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 324 | availability_zone: availability_zone_01 |
Damian Szeluga | e192241 | 2017-04-18 16:36:46 +0200 | [diff] [blame] | 325 | aggregates: |
| 326 | - hosts_with_fc |
| 327 | - hosts_with_ssd |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 328 | security_group: true |
Petr Michalec | f03e488 | 2017-04-10 10:26:18 +0200 | [diff] [blame] | 329 | resume_guests_state_on_host_boot: False |
Michael Polenchuk | 159c254 | 2018-06-09 15:31:51 +0400 | [diff] [blame] | 330 | preallocate_images: space # Default is 'none' |
Dmitry Stremkovskiy | 8a0ff51 | 2017-07-25 20:54:13 +0300 | [diff] [blame] | 331 | my_ip: 10.1.0.16 |
Ivan Berezovskiy | 689e6ea | 2019-11-14 20:17:58 +0400 | [diff] [blame] | 332 | concurrency: |
| 333 | lock_path: '/var/lib/nova/tmp' |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 334 | bind: |
| 335 | vnc_address: 172.20.0.100 |
| 336 | vnc_port: 6080 |
| 337 | vnc_name: openstack.domain.com |
| 338 | vnc_protocol: http |
| 339 | database: |
| 340 | engine: mysql |
| 341 | host: 127.0.0.1 |
| 342 | port: 3306 |
| 343 | name: nova |
| 344 | user: nova |
| 345 | password: pwd |
| 346 | identity: |
| 347 | engine: keystone |
| 348 | host: 127.0.0.1 |
| 349 | port: 35357 |
| 350 | user: nova |
| 351 | password: pwd |
| 352 | tenant: service |
| 353 | message_queue: |
| 354 | engine: rabbitmq |
| 355 | host: 127.0.0.1 |
| 356 | port: 5672 |
| 357 | user: openstack |
| 358 | password: pwd |
| 359 | virtual_host: '/openstack' |
| 360 | image: |
| 361 | engine: glance |
| 362 | host: 127.0.0.1 |
| 363 | port: 9292 |
Oleh Hryhorov | f5093b8 | 2018-10-17 11:16:08 +0000 | [diff] [blame] | 364 | pci: |
| 365 | alias: |
| 366 | alias1: |
| 367 | device_type: "type-PF" |
| 368 | name: "a1" |
| 369 | product_id: "154d" |
| 370 | vendor_id: "8086" |
Oleksandr Pidrepnyi | d9bab1b | 2019-02-20 12:48:17 +0200 | [diff] [blame] | 371 | passthrough_whitelist: |
| 372 | - vendor_id: "10de" |
| 373 | product_id: "1db4" |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 374 | network: |
| 375 | engine: neutron |
| 376 | host: 127.0.0.1 |
| 377 | port: 9696 |
| 378 | identity: |
| 379 | engine: keystone |
| 380 | host: 127.0.0.1 |
| 381 | port: 35357 |
| 382 | user: neutron |
| 383 | password: pwd |
| 384 | tenant: service |
| 385 | qemu: |
| 386 | max_files: 4096 |
| 387 | max_processes: 4096 |
Dmitry Stremkovskiy | 96281f5 | 2017-07-26 00:39:22 +0300 | [diff] [blame] | 388 | host: node-12.domain.tld |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 389 | |
Vasyl Saienko | cab3a90 | 2018-07-12 13:17:17 +0300 | [diff] [blame] | 390 | Compute with vmware driver. Each vmware cluster requires a separate process of nova-compute. |
| 391 | Each process should have uniq host identifier. However multiple computes might be running on |
| 392 | single host. It is not recommended to have multiple computes running on different hosts that |
| 393 | manage the same vmware cluster. To achive this pacemaker/corosync or keepalived might be used. |
| 394 | |
| 395 | .. code-block:: yaml |
| 396 | |
| 397 | nova: |
| 398 | compute: |
| 399 | compute_driver: vmwareapi.VMwareVCDriver |
| 400 | vmware: |
| 401 | host_username: vmware |
| 402 | host_password: vmware |
| 403 | cluster_name: vmware_cluster01 |
| 404 | host_ip: 1.2.3.4 |
| 405 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 406 | Group and user to be used for QEMU processes run by the system instance: |
kkalynovskyi | f50f0c0 | 2017-12-12 17:52:57 +0200 | [diff] [blame] | 407 | |
| 408 | .. code-block:: yaml |
| 409 | |
| 410 | nova: |
| 411 | compute: |
| 412 | enabled: true |
| 413 | ... |
| 414 | qemu: |
| 415 | user: nova |
| 416 | group: cinder |
| 417 | dynamic_ownership: 1 |
| 418 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 419 | Group membership for user nova (upgrade related): |
Dmitry Stremkovskiy | 3cd6ba8 | 2017-07-25 17:15:36 +0300 | [diff] [blame] | 420 | |
| 421 | .. code-block:: yaml |
| 422 | |
| 423 | nova: |
| 424 | compute: |
| 425 | enabled: true |
| 426 | ... |
| 427 | user: |
| 428 | groups: |
| 429 | - libvirt |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 430 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 431 | Nova services on compute node with OpenContrail: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 432 | |
| 433 | .. code-block:: yaml |
| 434 | |
| 435 | nova: |
| 436 | compute: |
| 437 | enabled: true |
| 438 | ... |
| 439 | networking: contrail |
| 440 | |
Oleksandr Bryndzii | bb8abfe | 2018-09-28 22:21:43 +0000 | [diff] [blame] | 441 | Nova services on compute node with memcached caching and security strategy: |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 442 | |
| 443 | .. code-block:: yaml |
| 444 | |
| 445 | nova: |
| 446 | compute: |
| 447 | enabled: true |
| 448 | ... |
| 449 | cache: |
| 450 | engine: memcached |
| 451 | members: |
| 452 | - host: 127.0.0.1 |
| 453 | port: 11211 |
| 454 | - host: 127.0.0.1 |
| 455 | port: 11211 |
Oleksandr Bryndzii | bb8abfe | 2018-09-28 22:21:43 +0000 | [diff] [blame] | 456 | security: |
| 457 | enabled: true |
| 458 | strategy: ENCRYPT |
| 459 | secret_key: secret |
Filip Pytloun | 4a72d79 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 460 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 461 | Client-side RabbitMQ HA setup: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 462 | |
| 463 | .. code-block:: yaml |
| 464 | |
| 465 | nova: |
Kirill Bespalov | 6461717 | 2017-07-11 14:43:14 +0300 | [diff] [blame] | 466 | compute: |
Jiri Konecny | e31f2c5 | 2016-04-14 17:16:02 +0200 | [diff] [blame] | 467 | .... |
| 468 | message_queue: |
| 469 | engine: rabbitmq |
| 470 | members: |
| 471 | - host: 10.0.16.1 |
| 472 | - host: 10.0.16.2 |
| 473 | - host: 10.0.16.3 |
| 474 | user: openstack |
| 475 | password: pwd |
| 476 | virtual_host: '/openstack' |
| 477 | .... |
| 478 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 479 | Nova with ephemeral configured with Ceph: |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 480 | |
| 481 | .. code-block:: yaml |
| 482 | |
| 483 | nova: |
| 484 | compute: |
| 485 | enabled: true |
| 486 | ... |
| 487 | ceph: |
| 488 | ephemeral: yes |
| 489 | rbd_pool: nova |
| 490 | rbd_user: nova |
| 491 | secret_uuid: 03006edd-d957-40a3-ac4c-26cd254b3731 |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 492 | .... |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 493 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 494 | Nova with ephemeral configured with LVM: |
Kalynovskyi | 0bc7969 | 2017-07-21 16:22:09 +0300 | [diff] [blame] | 495 | |
| 496 | .. code-block:: yaml |
| 497 | |
| 498 | nova: |
| 499 | compute: |
| 500 | enabled: true |
| 501 | ... |
| 502 | lvm: |
| 503 | ephemeral: yes |
| 504 | images_volume_group: nova_vg |
| 505 | |
| 506 | linux: |
| 507 | storage: |
| 508 | lvm: |
| 509 | nova_vg: |
| 510 | name: nova_vg |
| 511 | devices: |
| 512 | - /dev/sdf |
| 513 | - /dev/sdd |
| 514 | - /dev/sdg |
| 515 | - /dev/sde |
| 516 | - /dev/sdc |
| 517 | - /dev/sdj |
| 518 | - /dev/sdh |
maxstack | 39e6aca | 2016-05-04 13:50:13 +0000 | [diff] [blame] | 519 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 520 | Enable Barbican integration: |
Oleg Iurchenko | 370c10d | 2017-10-19 14:03:37 +0300 | [diff] [blame] | 521 | |
| 522 | .. code-block:: yaml |
| 523 | |
| 524 | nova: |
| 525 | compute: |
| 526 | .... |
| 527 | barbican: |
| 528 | enabled: true |
| 529 | |
Oleksandr Pidrepnyi | d9bab1b | 2019-02-20 12:48:17 +0200 | [diff] [blame] | 530 | Define aliases for a PCI passthrough devices: |
Oleh Hryhorov | f5093b8 | 2018-10-17 11:16:08 +0000 | [diff] [blame] | 531 | .. code-block:: yaml |
| 532 | |
| 533 | nova: |
| 534 | compute: |
| 535 | ... |
| 536 | pci: |
| 537 | alias: |
| 538 | alias1: |
| 539 | device_type: "type-PF" |
| 540 | name: "a1" |
| 541 | product_id: "154d" |
| 542 | vendor_id: "8086" |
| 543 | |
Oleksandr Pidrepnyi | d9bab1b | 2019-02-20 12:48:17 +0200 | [diff] [blame] | 544 | Define white list of PCI devices available to VMs: |
| 545 | .. code-block:: yaml |
| 546 | |
| 547 | nova: |
| 548 | compute: |
| 549 | ... |
| 550 | pci: |
| 551 | passthrough_whitelist: |
| 552 | - vendor_id: "10de" |
| 553 | product_id: "1db4" |
| 554 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 555 | Nova metadata custom bindings: |
Vasyl Saienko | 2d59128 | 2018-02-05 14:19:02 +0200 | [diff] [blame] | 556 | |
| 557 | .. code-block:: yaml |
| 558 | |
| 559 | nova: |
| 560 | controller: |
| 561 | enabled: true |
| 562 | ... |
| 563 | metadata: |
| 564 | bind: |
| 565 | address: 1.2.3.4 |
| 566 | port: 8776 |
| 567 | |
Oleh Hryhorov | 08482aa | 2018-11-19 14:07:47 +0200 | [diff] [blame] | 568 | Define multipath for nova compute: |
| 569 | |
| 570 | .. code-block:: yaml |
| 571 | |
| 572 | nova: |
| 573 | compute: |
| 574 | .... |
| 575 | libvirt: |
| 576 | volume_use_multipath: True |
| 577 | |
Oleh Hryhorov | 5add3b2 | 2019-03-06 17:00:00 +0000 | [diff] [blame] | 578 | To disable or enable StrictHostKeyChecking and discover |
| 579 | compute nodes fingerprints the below pillar should be used: |
| 580 | |
| 581 | .. code-block:: yaml |
| 582 | |
| 583 | nova: |
| 584 | compute: |
| 585 | .... |
| 586 | openssh: |
| 587 | stricthostkeychecking: True |
| 588 | discover_compute_hosts: True |
| 589 | |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 590 | Client role |
| 591 | ----------- |
| 592 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 593 | Nova configured with NFS: |
Dmitry Stremkovskiy | 665c728 | 2017-07-05 17:36:27 +0300 | [diff] [blame] | 594 | |
| 595 | .. code-block:: yaml |
| 596 | |
| 597 | nova: |
| 598 | compute: |
| 599 | instances_path: /mnt/nova/instances |
| 600 | |
| 601 | linux: |
| 602 | storage: |
| 603 | enabled: true |
| 604 | mount: |
| 605 | nfs_nova: |
| 606 | enabled: true |
| 607 | path: ${nova:compute:instances_path} |
| 608 | device: 172.31.35.145:/data |
| 609 | file_system: nfs |
| 610 | opts: rw,vers=3 |
| 611 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 612 | Nova flavors: |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 613 | |
| 614 | .. code-block:: yaml |
| 615 | |
| 616 | nova: |
| 617 | client: |
| 618 | enabled: true |
Dzmitry Stremkouski | 4841000 | 2019-11-22 20:14:21 +0100 | [diff] [blame] | 619 | resources: |
| 620 | v21: |
| 621 | admin_identity: |
| 622 | endpoint_type: internalURL |
| 623 | flavor: |
| 624 | flavor1: |
| 625 | flavor_id: 10 |
| 626 | ram: 4096 |
| 627 | disk: 10 |
| 628 | vcpus: 1 |
| 629 | flavor2: |
| 630 | flavor_id: auto |
| 631 | ram: 4096 |
| 632 | disk: 20 |
| 633 | vcpus: 2 |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 634 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 635 | Availability zones: |
Jiri Broulik | 70d9e3f | 2017-02-15 18:37:13 +0100 | [diff] [blame] | 636 | |
| 637 | .. code-block:: yaml |
| 638 | |
| 639 | nova: |
| 640 | client: |
| 641 | enabled: true |
| 642 | server: |
| 643 | identity: |
| 644 | availability_zones: |
| 645 | - availability_zone_01 |
| 646 | - availability_zone_02 |
| 647 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 648 | Aggregates: |
Damian Szeluga | 5dca0f0 | 2017-04-13 17:27:15 +0200 | [diff] [blame] | 649 | |
| 650 | .. code-block:: yaml |
| 651 | |
| 652 | nova: |
| 653 | client: |
| 654 | enabled: true |
Dzmitry Stremkouski | 4841000 | 2019-11-22 20:14:21 +0100 | [diff] [blame] | 655 | resources: |
| 656 | v21: |
| 657 | admin_identity: |
| 658 | aggregates: |
| 659 | aggregate1: {} |
| 660 | aggregate2: |
| 661 | metadata: "..." |
Damian Szeluga | 5dca0f0 | 2017-04-13 17:27:15 +0200 | [diff] [blame] | 662 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 663 | Upgrade levels: |
Dmitry Stremkovskiy | 91f4585 | 2017-07-18 16:22:31 +0300 | [diff] [blame] | 664 | |
| 665 | .. code-block:: yaml |
| 666 | |
| 667 | nova: |
| 668 | controller: |
| 669 | upgrade_levels: |
| 670 | compute: juno |
| 671 | |
| 672 | nova: |
| 673 | compute: |
| 674 | upgrade_levels: |
| 675 | compute: juno |
| 676 | |
Petr Jediný | d855ef2 | 2017-03-06 22:24:33 +0100 | [diff] [blame] | 677 | SR-IOV |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 678 | ------ |
| 679 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 680 | Add ``PciPassthroughFilter`` into scheduler filters and NICs on |
| 681 | specific compute nodes: |
Jakub Pavlik | 39a0594 | 2017-02-13 23:03:08 +0100 | [diff] [blame] | 682 | |
| 683 | .. code-block:: yaml |
| 684 | |
| 685 | nova: |
| 686 | controller: |
| 687 | sriov: true |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 688 | 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] | 689 | |
| 690 | nova: |
| 691 | compute: |
| 692 | sriov: |
| 693 | nic_one: |
| 694 | devname: eth1 |
| 695 | physical_network: physnet1 |
| 696 | |
Oleh Hryhorov | f5093b8 | 2018-10-17 11:16:08 +0000 | [diff] [blame] | 697 | .. note:: Parameters located under nova:compute:sriov:<nic_name> are copied to passthrough_whitelist parameter into |
| 698 | nova.conf file in appropriate format. |
| 699 | |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 700 | CPU pinning & Hugepages |
| 701 | ----------------------- |
| 702 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 703 | CPU pinning of virtual machine instances to dedicated physical |
| 704 | CPU cores. Hugepages mount point for libvirt. |
Jakub Pavlik | 26fb85c | 2017-02-16 22:29:22 +0100 | [diff] [blame] | 705 | |
| 706 | .. code-block:: yaml |
| 707 | |
| 708 | nova: |
| 709 | controller: |
sandriichenko | 4fe321d | 2018-01-22 17:34:06 +0000 | [diff] [blame] | 710 | 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] | 711 | |
| 712 | nova: |
| 713 | compute: |
| 714 | vcpu_pin_set: 2,3,4,5 |
| 715 | hugepages: |
| 716 | mount_points: |
| 717 | - path: /mnt/hugepages_1GB |
| 718 | - path: /mnt/hugepages_2MB |
Jiri Broulik | 0ce9fc9 | 2017-02-01 23:10:40 +0100 | [diff] [blame] | 719 | |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 720 | Custom Scheduler filters |
| 721 | ------------------------ |
| 722 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 723 | If you have a custom filter, that needs to be included in the |
| 724 | scheduler, then you can include it like so: |
Michel Nederlof | 171c7ac | 2017-04-13 12:54:14 +0200 | [diff] [blame] | 725 | |
| 726 | .. code-block:: yaml |
| 727 | |
| 728 | nova: |
| 729 | controller: |
| 730 | scheduler_custom_filters: |
| 731 | - my_custom_driver.nova.scheduler.filters.my_custom_filter.MyCustomFilter |
| 732 | |
| 733 | # 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] | 734 | 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] | 735 | |
Michael Polenchuk | 2bce2cb | 2018-09-17 16:05:43 +0400 | [diff] [blame] | 736 | # Since Queens version a sequence could be used as well: |
| 737 | ~scheduler_default_filters: |
| 738 | - DifferentHostFilter |
| 739 | - SameHostFilter |
| 740 | ... |
| 741 | - MyCustomFilter |
| 742 | |
| 743 | |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 744 | Hardware Trip/Unmap Support |
| 745 | --------------------------- |
| 746 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 747 | To enable TRIM support for ephemeral images (thru nova managed |
| 748 | images), libvirt has this option: |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 749 | |
| 750 | .. code-block:: yaml |
| 751 | |
| 752 | nova: |
| 753 | compute: |
| 754 | libvirt: |
| 755 | hw_disk_discard: unmap |
| 756 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 757 | To actually utilize this feature, the following metadata must be |
| 758 | set on the image as well, so the SCSI unmap is supported: |
Michel Nederlof | eb566f6 | 2017-04-21 15:37:47 +0200 | [diff] [blame] | 759 | |
| 760 | .. code-block:: bash |
| 761 | |
| 762 | glance image-update --property hw_scsi_model=virtio-scsi <image> |
| 763 | glance image-update --property hw_disk_bus=scsi <image> |
Filip Pytloun | 5bc9e9f | 2017-02-02 13:05:40 +0100 | [diff] [blame] | 764 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 765 | Scheduler Host Manager |
| 766 | ---------------------- |
| 767 | |
| 768 | Specify a custom host manager. |
| 769 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 770 | libvirt CPU mode |
| 771 | ---------------- |
| 772 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 773 | Allow setting the model of CPU that is exposed to a VM. This |
| 774 | allows for better support live migration between hypervisors with |
| 775 | different hardware, among other things. Defaults to host-passthrough. |
Jakub Pavlik | 7046b9c | 2017-09-19 12:04:19 +0200 | [diff] [blame] | 776 | |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 777 | .. code-block:: yaml |
| 778 | |
| 779 | nova: |
| 780 | controller: |
| 781 | scheduler_host_manager: ironic_host_manager |
| 782 | |
Thom Gerdes | ec00afd | 2017-04-07 18:06:59 +0000 | [diff] [blame] | 783 | compute: |
| 784 | cpu_mode: host-model |
| 785 | |
Dzmitry Stremkouski | 7da9bf1 | 2018-04-25 22:30:37 +0200 | [diff] [blame] | 786 | Nova compute cpu model |
| 787 | ---------------------- |
| 788 | |
| 789 | .. code-block:: yaml |
| 790 | |
| 791 | nova: |
| 792 | compute: |
| 793 | cpu_mode: custom |
| 794 | libvirt: |
| 795 | cpu_model: IvyBridge |
| 796 | |
Oleksandr Pidrepnyi | ef9fd78 | 2019-03-04 19:18:19 +0200 | [diff] [blame] | 797 | RNG (Random Number Generator) device path |
| 798 | ---------------------- |
| 799 | |
| 800 | The path to an RNG (Random Number Generator) device that will be used |
| 801 | as the source of entropy on the host. |
| 802 | The recommended source of entropy is /dev/urandom. |
| 803 | Permitted options are: /dev/random, /dev/urandom or /dev/hwrng. |
| 804 | Default: /dev/urandom |
| 805 | |
| 806 | .. code-block:: yaml |
| 807 | |
| 808 | nova: |
| 809 | controller: |
| 810 | libvirt: |
| 811 | rng_dev_path: /dev/random |
| 812 | |
| 813 | compute: |
| 814 | libvirt: |
| 815 | rng_dev_path: /dev/random |
| 816 | |
Dzmitry Stremkouski | 7da9bf1 | 2018-04-25 22:30:37 +0200 | [diff] [blame] | 817 | |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 818 | Nova compute workarounds |
| 819 | ------------------------ |
| 820 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 821 | Live snapshotting is disabled by default in nova. To enable |
| 822 | this, it needs a manual switch. |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 823 | |
| 824 | From manual: |
| 825 | |
| 826 | .. code-block:: yaml |
| 827 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 828 | When using libvirt 1.2.2 live snapshots fail intermittently under load |
| 829 | (likely related to concurrent libvirt/qemu operations). This config |
| 830 | option provides a mechanism to disable live snapshot, in favor of cold |
| 831 | snapshot, while this is resolved. Cold snapshot causes an instance |
| 832 | outage while the guest is going through the snapshotting process. |
| 833 | |
| 834 | For more information, refer to the bug report: |
| 835 | |
| 836 | https://bugs.launchpad.net/nova/+bug/1334398 |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 837 | |
| 838 | Configurable pillar data: |
| 839 | |
| 840 | .. code-block:: yaml |
| 841 | |
| 842 | nova: |
| 843 | compute: |
Michel Nederlof | e322ebb | 2017-07-10 12:29:21 +0200 | [diff] [blame] | 844 | workaround: |
Michel Nederlof | f7eefb2 | 2017-07-10 11:14:33 +0200 | [diff] [blame] | 845 | disable_libvirt_livesnapshot: False |
| 846 | |
Michel Nederlof | b51a514 | 2017-06-27 08:31:35 +0200 | [diff] [blame] | 847 | Config drive options |
| 848 | -------------------- |
| 849 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 850 | See example below on how to configure the options for the |
| 851 | config drive: |
Michel Nederlof | b51a514 | 2017-06-27 08:31:35 +0200 | [diff] [blame] | 852 | |
| 853 | .. code-block:: yaml |
| 854 | |
| 855 | nova: |
| 856 | compute: |
| 857 | config_drive: |
| 858 | forced: True # Default: True |
| 859 | cdrom: True # Default: False |
| 860 | format: iso9660 # Default: vfat |
| 861 | inject_password: False # Default: False |
| 862 | |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 863 | Number of concurrent live migrates |
| 864 | ---------------------------------- |
| 865 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 866 | Default is to have no concurrent live migrations (so 1 |
| 867 | live-migration at a time). |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 868 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 869 | Excerpt from config options page |
| 870 | https://docs.openstack.org/ocata/config-reference/compute/config-options.html: |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 871 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 872 | Maximum number of live migrations to run concurrently. This limit is |
| 873 | enforced to avoid outbound live migrations overwhelming the host/network |
| 874 | and causing failures. It is not recommended that you change this unless |
| 875 | you are very sure that doing so is safe and stable in your environment. |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 876 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 877 | Possible values: |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 878 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 879 | - 0 : treated as unlimited. |
| 880 | - Negative value defaults to 0. |
| 881 | - Any positive integer representing maximum number of live migrations |
| 882 | to run concurrently. |
Michel Nederlof | f81919b | 2017-11-20 09:37:07 +0100 | [diff] [blame] | 883 | |
| 884 | To configure this option: |
| 885 | |
| 886 | .. code-block:: yaml |
| 887 | |
| 888 | nova: |
| 889 | compute: |
| 890 | max_concurrent_live_migrations: 1 # (1 is the default) |
| 891 | |
Sergio Lystopad | 9d31cba | 2018-05-15 11:29:11 +0300 | [diff] [blame] | 892 | Live migration with auto converge |
| 893 | ---------------------------------- |
| 894 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 895 | Auto converge throttles down CPU if a progress of on-going live |
| 896 | migration is slow |
| 897 | https://docs.openstack.org/ocata/config-reference/compute/config-options.html: |
Sergio Lystopad | 9d31cba | 2018-05-15 11:29:11 +0300 | [diff] [blame] | 898 | |
| 899 | .. code-block:: yaml |
| 900 | |
| 901 | nova: |
| 902 | compute: |
| 903 | libvirt: |
| 904 | live_migration_permit_auto_converge: False # (False is the default) |
| 905 | |
| 906 | .. code-block:: yaml |
| 907 | |
| 908 | nova: |
| 909 | controller: |
| 910 | libvirt: |
| 911 | live_migration_permit_auto_converge: False # (False is the default) |
| 912 | |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 913 | Enhanced logging with logging.conf |
| 914 | ---------------------------------- |
| 915 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 916 | By default ``logging.conf`` is disabled. |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 917 | |
| 918 | That is possible to enable per-binary logging.conf with new variables: |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 919 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 920 | * ``openstack_log_appender`` |
| 921 | Set to true to enable log_config_append for all OpenStack services |
| 922 | |
| 923 | * ``openstack_fluentd_handler_enabled`` |
| 924 | Set to true to enable FluentHandler for all Openstack services |
| 925 | |
| 926 | * ``openstack_ossyslog_handler_enabled`` |
| 927 | Set to true to enable OSSysLogHandler for all Openstack services |
| 928 | |
| 929 | Only ``WatchedFileHandler``, ``OSSysLogHandler``, and ``FluentHandler`` |
| 930 | are available. |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 931 | |
Dmitry Kalashnik | 8da249c | 2018-01-16 17:58:00 +0400 | [diff] [blame] | 932 | Also it is possible to configure this with pillar: |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 933 | |
| 934 | .. code-block:: yaml |
| 935 | |
| 936 | nova: |
| 937 | controller: |
| 938 | logging: |
| 939 | log_appender: true |
| 940 | log_handlers: |
| 941 | watchedfile: |
| 942 | enabled: true |
| 943 | fluentd: |
| 944 | enabled: true |
Oleksii Chupryn | 99e3503 | 2018-02-06 01:59:40 +0200 | [diff] [blame] | 945 | ossyslog: |
| 946 | enabled: true |
Dmitry Kalashnik | e58fe08 | 2017-12-01 16:31:14 +0400 | [diff] [blame] | 947 | |
| 948 | compute: |
| 949 | logging: |
| 950 | log_appender: true |
| 951 | log_handlers: |
| 952 | watchedfile: |
| 953 | enabled: true |
| 954 | fluentd: |
| 955 | enabled: true |
Oleksii Chupryn | 99e3503 | 2018-02-06 01:59:40 +0200 | [diff] [blame] | 956 | ossyslog: |
| 957 | enabled: true |
Thom Gerdes | f582f1e | 2017-05-02 18:05:50 +0000 | [diff] [blame] | 958 | |
Vasyl Saienko | 7243a95 | 2018-05-11 21:26:54 +0300 | [diff] [blame] | 959 | The log level might be configured per logger by using the |
| 960 | following pillar structure: |
| 961 | |
| 962 | .. code-block:: yaml |
| 963 | |
| 964 | nova: |
| 965 | compute: |
| 966 | logging: |
| 967 | loggers: |
| 968 | <logger_name>: |
| 969 | level: WARNING |
| 970 | |
| 971 | nova: |
| 972 | compute: |
| 973 | logging: |
| 974 | loggers: |
| 975 | <logger_name>: |
| 976 | level: WARNING |
| 977 | |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 978 | Configure syslog parameters for libvirtd |
| 979 | ---------------------------------------- |
| 980 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 981 | To configure syslog parameters for libvirtd the below pillar |
| 982 | structure should be used with values which are supported |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 983 | by libvirtd. These values might be known from the documentation. |
| 984 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 985 | .. code-block:: yaml |
| 986 | |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 987 | nova: |
| 988 | compute: |
| 989 | libvirt: |
| 990 | logging: |
| 991 | level: 3 |
| 992 | filters: '3:remote 4:event' |
| 993 | outputs: '3:syslog:libvirtd' |
| 994 | buffer_size: 64 |
| 995 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 996 | Logging controls: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 997 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 998 | Logging level: 4 errors, 3 warnings, 2 information, 1 debug |
| 999 | basically 1 will log everything possible ``log_level = 3`` |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 1000 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1001 | Logging filters: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 1002 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1003 | A filter allows to select a different logging level for a given category |
| 1004 | of logs. |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 1005 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1006 | The format for a filter is one of: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 1007 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1008 | * ``x:name`` |
| 1009 | * ``x:+name`` |
| 1010 | where name is a string which is matched against source file name, |
| 1011 | e.g., ``remote``, ``qemu``, or ``util/json``, the optional ``+`` prefix |
| 1012 | tells libvirt to log stack trace for each message matching name, |
| 1013 | and x is the minimal level where matching messages should be logged: |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 1014 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1015 | * ``1: DEBUG`` |
| 1016 | * ``2: INFO`` |
| 1017 | * ``3: WARNING`` |
| 1018 | * ``4: ERROR`` |
| 1019 | |
| 1020 | Multiple filter can be defined in a single @filters, they just |
| 1021 | need to be separated by spaces. |
| 1022 | |
| 1023 | For example, to only get warning or errors from the remote layer |
| 1024 | and only errors from the event layer: ``log_filters="3:remote 4:event`` |
| 1025 | |
| 1026 | Logging outputs: |
| 1027 | |
| 1028 | An output is one of the places to save logging information |
| 1029 | The format for an output can be: |
| 1030 | |
| 1031 | * ``x:stderr`` |
| 1032 | Output goes to stderr |
| 1033 | |
| 1034 | * ``x:syslog:name`` |
| 1035 | Use syslog for the output and use the given name as the ident |
| 1036 | |
| 1037 | * ``x:file:file_path`` |
| 1038 | output to a file, with the given filepath |
| 1039 | |
| 1040 | In all case the x prefix is the minimal level, acting as a filter |
| 1041 | |
| 1042 | * ``1: DEBUG`` |
| 1043 | * ``2: INFO`` |
| 1044 | * ``3: WARNING`` |
| 1045 | * ``4: ERROR`` |
| 1046 | |
| 1047 | Multiple output can be defined, they just need to be separated by spaces. |
| 1048 | For example, to log all warnings and errors to syslog under the libvirt |
| 1049 | dident: ``log_outputs="3:syslog:libvirtd`` |
| 1050 | |
| 1051 | Log debug buffer size: default 64 |
| 1052 | The daemon keeps an internal debug log buffer which will be dumped |
| 1053 | in case of crash or upon receiving a ``SIGUSR2`` signal. This setting |
| 1054 | allows to override the default buffer size in kilobytes. |
| 1055 | If value is ``0`` or less the debug log buffer is deactivated |
| 1056 | ``log_buffer_size = 64`` |
| 1057 | |
| 1058 | To configure the logging parameters for QEMU, the below pillar |
| 1059 | structure and logging parameters should be used: |
| 1060 | |
| 1061 | .. code-block:: yaml |
| 1062 | |
| 1063 | nova: |
| 1064 | compute: |
| 1065 | qemu: |
| 1066 | logging: |
| 1067 | handler: logd |
| 1068 | virtlog: |
| 1069 | enabled: true |
| 1070 | level: 4 |
| 1071 | filters: '3:remote 3:event' |
| 1072 | outputs: '4:syslog:virtlogd' |
| 1073 | max_clients: 512 |
| 1074 | max_size: 2097100 |
| 1075 | max_backups: 2 |
Oleh Hryhorov | e38525d | 2018-05-15 08:58:59 +0000 | [diff] [blame] | 1076 | |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 1077 | Inject password to VM |
| 1078 | --------------------- |
| 1079 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1080 | By default nova blocks up any inject to VM because |
| 1081 | ``inject_partition`` param is equal to ``-2``. |
| 1082 | If you want to inject password to VM, you will need to |
| 1083 | define ``inject_partition`` greater or equal to ``-1`` and |
| 1084 | define ``inject_password`` to ``True`` |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 1085 | |
| 1086 | For example: |
| 1087 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1088 | .. code-block:: yaml |
| 1089 | |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 1090 | nova: |
| 1091 | compute: |
| 1092 | inject_partition: '-1' |
| 1093 | inject_password: True |
| 1094 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1095 | Allow the injection of an admin password for instance only at |
| 1096 | ``create`` and ``rebuild`` process. |
| 1097 | |
| 1098 | There is no agent needed within the image to do this. If *libguestfs* is |
| 1099 | available on the host, it will be used. Otherwise *nbd* is used. The file |
| 1100 | system of the image will be mounted and the admin password, which is provided |
| 1101 | in the REST API call will be injected as password for the root user. If no |
| 1102 | root user is available, the instance won't be launched and an error is thrown. |
| 1103 | Be aware that the injection is *not* possible when the instance gets launched |
| 1104 | from a volume. |
| 1105 | |
| 1106 | Possible values: |
| 1107 | |
| 1108 | * ``True`` |
| 1109 | Allows the injection |
| 1110 | |
| 1111 | * ``False`` (default) |
| 1112 | Disallows the injection. Any via the REST API provided |
| 1113 | admin password will be silently ignored. |
| 1114 | |
| 1115 | Related options: |
| 1116 | |
| 1117 | * ``inject_partition`` |
| 1118 | Decides about the discovery and usage of the file system. |
| 1119 | It also can disable the injection at all. |
| 1120 | (boolean value) |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 1121 | |
| 1122 | You can read more about injecting the administrator password here: |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1123 | https://docs.openstack.org/nova/queens/admin/admin-password-injection.html |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 1124 | |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 1125 | Enable libvirt control channel over TLS |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1126 | --------------------------------------- |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 1127 | |
| 1128 | By default TLS is disabled. |
| 1129 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1130 | Enable TLS transport: |
| 1131 | |
| 1132 | .. code-block:: yaml |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 1133 | |
| 1134 | compute: |
| 1135 | libvirt: |
| 1136 | tls: |
| 1137 | enabled: True |
| 1138 | |
| 1139 | You able to set custom certificates in pillar: |
| 1140 | |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1141 | .. code-block:: yaml |
| 1142 | |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 1143 | nova: |
| 1144 | compute: |
| 1145 | libvirt: |
| 1146 | tls: |
| 1147 | key: (certificate content) |
| 1148 | cert: (certificate content) |
| 1149 | cacert: (certificate content) |
| 1150 | client: |
| 1151 | key: (certificate content) |
| 1152 | cert: (certificate content) |
| 1153 | |
Dmitry Teselkin | 7086202 | 2019-04-18 16:43:50 +0300 | [diff] [blame] | 1154 | It is possible to limit allowed SSL / TLS ciphers using libvirt's tls_priority: |
| 1155 | |
| 1156 | .. code-block:: yaml |
| 1157 | |
| 1158 | nova: |
| 1159 | compute: |
| 1160 | libvirt: |
| 1161 | tls: |
| 1162 | priority: <TLS priority string> |
| 1163 | |
| 1164 | Example priority strings are: |
| 1165 | |
| 1166 | - The system imposed security level: |
| 1167 | |
| 1168 | .. code-block:: text |
| 1169 | |
| 1170 | "SYSTEM" |
| 1171 | |
| 1172 | - The default priority without the HMAC-MD5: |
| 1173 | |
| 1174 | .. code-block:: text |
| 1175 | |
| 1176 | "NORMAL:-MD5" |
| 1177 | |
| 1178 | - Specifying RSA with AES-128-CBC: |
| 1179 | |
| 1180 | .. code-block:: text |
| 1181 | |
| 1182 | "NONE:+VERS-TLS-ALL:+MAC-ALL:+RSA:+AES-128-CBC:+SIGN-ALL:+COMP-NULL" |
| 1183 | |
| 1184 | - Specifying the defaults plus ARCFOUR-128: |
| 1185 | |
| 1186 | .. code-block:: text |
| 1187 | |
| 1188 | "NORMAL:+ARCFOUR-128" |
| 1189 | |
| 1190 | - Enabling the 128-bit secure ciphers, while disabling TLS 1.0: |
| 1191 | |
| 1192 | .. code-block:: text |
| 1193 | |
| 1194 | "SECURE128:-VERS-TLS1.0" |
| 1195 | |
| 1196 | - Enabling the 128-bit and 192-bit secure ciphers, while disabling all TLS |
| 1197 | versions except TLS 1.2: |
| 1198 | |
| 1199 | .. code-block:: text |
| 1200 | |
| 1201 | "SECURE128:+SECURE192:-VERS-ALL:+VERS-TLS1.2" |
| 1202 | |
| 1203 | More on TLS Priority Strings: |
| 1204 | |
| 1205 | - https://gnutls.org/manual/html_node/Priority-Strings.html |
| 1206 | |
Vasyl Saienko | 11ac973 | 2018-10-02 17:04:33 +0000 | [diff] [blame] | 1207 | Controlling access by `tls_allowed_dn_list`. |
| 1208 | Enable an access control list of client certificate Distinguished Names (DNs) |
| 1209 | which can connect to the TLS port on this server. The default is that DNs are |
| 1210 | not checked. This list may contain wildcards such as |
| 1211 | "C=GB,ST=London,L=London,O=Libvirt Project,CN=*" See the POSIX fnmatch function |
| 1212 | for the format of the wildcards. |
| 1213 | Note that if this is an empty list, no client can connect. |
| 1214 | Note also that GnuTLS returns DNs without spaces after commas between |
| 1215 | the fields (and this is what we check against), but the openssl x509 tool |
| 1216 | shows spaces. |
| 1217 | |
| 1218 | .. code-block:: yaml |
| 1219 | |
| 1220 | nova: |
| 1221 | compute: |
| 1222 | libvirt: |
| 1223 | tls: |
| 1224 | tls_allowed_dn_list: |
| 1225 | host1: |
| 1226 | enabled: true |
| 1227 | value: 'C=foo,CN=cmp1' |
| 1228 | host2: |
| 1229 | enabled: true |
| 1230 | value: 'C=foo,CN=cmp2' |
| 1231 | |
| 1232 | |
Oleksandr Shyshko | 1c020d1 | 2018-05-24 12:47:08 +0300 | [diff] [blame] | 1233 | You can read more about live migration over TLS here: |
OlgaGusarenko | 9dd01c9 | 2018-07-31 00:49:30 +0300 | [diff] [blame] | 1234 | https://wiki.libvirt.org/page/TLSCreateServerCerts |
Oleksandr Shyshko | 981b4fa | 2018-05-02 15:39:30 +0300 | [diff] [blame] | 1235 | |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1236 | Enable transport + authentication for VNC over TLS |
| 1237 | --------------------- |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1238 | # Only for Queens. Communication between noVNC proxy service and QEMU |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1239 | |
| 1240 | By default communication between nova-novncproxy and qemu service is unsecure. |
| 1241 | |
| 1242 | compute: |
| 1243 | qemu: |
| 1244 | vnc: |
| 1245 | tls: |
| 1246 | enabled: True |
| 1247 | |
| 1248 | controller: |
| 1249 | novncproxy: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1250 | # This section responsible for communication between noVNC proxy and client machine |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1251 | tls: |
| 1252 | enabled: True |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1253 | # This section responsible for communication between nova-novncproxy and qemu service |
| 1254 | vencrypt: |
| 1255 | tls: |
| 1256 | enabled: True |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1257 | |
| 1258 | You able to set custom certificates in pillar: |
| 1259 | |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1260 | nova: |
| 1261 | compute: |
| 1262 | qemu: |
| 1263 | vnc: |
| 1264 | tls: |
| 1265 | cacert (certificate content) |
| 1266 | cert (certificate content) |
| 1267 | key (certificate content) |
| 1268 | |
| 1269 | nova: |
| 1270 | controller: |
| 1271 | novncproxy: |
| 1272 | tls: |
| 1273 | server: |
| 1274 | cert (certificate content) |
| 1275 | key (certificate content) |
| 1276 | vencrypt: |
| 1277 | tls: |
| 1278 | cacert (certificate content) |
| 1279 | cert (certificate content) |
| 1280 | key (certificate content) |
| 1281 | |
| 1282 | |
| 1283 | You can read more about it here: |
| 1284 | https://docs.openstack.org/nova/queens/admin/remote-console-access.html |
| 1285 | |
| 1286 | Enable communication between noVNC proxy and client machine over TLS |
| 1287 | --------------------- |
| 1288 | |
| 1289 | By default communication between noVNC proxy and client machine is unsecure. |
| 1290 | |
| 1291 | controller: |
| 1292 | novncproxy: |
| 1293 | tls: |
| 1294 | enabled: True |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1295 | |
| 1296 | nova: |
| 1297 | controller: |
| 1298 | novncproxy: |
| 1299 | tls: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1300 | server: |
| 1301 | cert (certificate content) |
| 1302 | key (certificate content) |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1303 | |
| 1304 | You can read more about it here: |
Oleksandr Shyshko | d8337cf | 2018-07-11 17:55:58 +0300 | [diff] [blame] | 1305 | https://docs.openstack.org/mitaka/config-reference/dashboard/configure.html |
Oleksandr Shyshko | 1195fca | 2018-07-09 18:22:59 +0300 | [diff] [blame] | 1306 | |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1307 | Enable x509 and ssl communication between Nova and Galera cluster. |
| 1308 | --------------------- |
| 1309 | By default communication between Nova and Galera is unsecure. |
| 1310 | |
Oleksandr Shyshko | cbe8735 | 2018-09-07 13:42:57 +0300 | [diff] [blame] | 1311 | nova: |
| 1312 | controller: |
| 1313 | database: |
| 1314 | x509: |
| 1315 | enabled: True |
| 1316 | |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1317 | You able to set custom certificates in pillar: |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1318 | |
| 1319 | nova: |
| 1320 | controller: |
| 1321 | database: |
| 1322 | x509: |
Oleksandr Shyshko | cbe8735 | 2018-09-07 13:42:57 +0300 | [diff] [blame] | 1323 | cacert: (certificate content) |
| 1324 | cert: (certificate content) |
| 1325 | key: (certificate content) |
Oleksandr Shyshko | 55eeac7 | 2018-08-03 18:23:28 +0300 | [diff] [blame] | 1326 | |
| 1327 | You can read more about it here: |
| 1328 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
| 1329 | |
Oleksandr Bryndzii | 687b654 | 2019-02-20 15:51:15 +0200 | [diff] [blame] | 1330 | Configure nova to use service user tokens: |
| 1331 | ======== |
| 1332 | Long-running operations such as live migration or snapshot can sometimes overrun the |
| 1333 | expiry of the user token. In such cases, post operations such as cleaning up after a |
| 1334 | live migration can fail when the nova-compute service needs to cleanup resources in |
| 1335 | other services, such as in the block-storage (cinder) or networking (neutron) services. |
| 1336 | |
| 1337 | This patch enables nova to use service user tokens to supplement the regular user token |
| 1338 | used to initiate the operation. The identity service (keystone) will then authenticate |
| 1339 | a request using the service user token if the user token has already expired. |
| 1340 | |
| 1341 | .. code-block:: yaml |
| 1342 | |
| 1343 | nova: |
| 1344 | controller: |
| 1345 | enabled: True |
| 1346 | ... |
| 1347 | service_user: |
| 1348 | enabled: True |
| 1349 | user_domain_id: default |
| 1350 | project_domain_id: default |
| 1351 | project_name: service |
| 1352 | username: nova |
| 1353 | password: pswd |
| 1354 | |
| 1355 | |
obryndzii | 2ea6141 | 2019-01-31 00:55:56 +0000 | [diff] [blame] | 1356 | Nova database connection setup: |
| 1357 | ======== |
| 1358 | |
| 1359 | .. code-block:: yaml |
| 1360 | |
| 1361 | nova: |
| 1362 | controller: |
| 1363 | enabled: True |
| 1364 | ... |
| 1365 | min_pool_size: 100 |
| 1366 | max_pool_size: 700 |
| 1367 | max_overflow: 100 |
| 1368 | retry_interval: 5 |
| 1369 | max_retries: '-1' |
| 1370 | db_max_retries: 3 |
| 1371 | db_retry_interval: 1 |
| 1372 | connection_debug: 10 |
| 1373 | pool_timeout: 120 |
Oleksandr Bryndzii | 687b654 | 2019-02-20 15:51:15 +0200 | [diff] [blame] | 1374 | |
Oleksandr Bryndzii | fe715df | 2019-04-23 15:34:42 +0300 | [diff] [blame] | 1375 | Change default resource quotas using configmap template settings |
| 1376 | ======== |
| 1377 | |
| 1378 | .. code-block:: yaml |
| 1379 | |
| 1380 | nova: |
| 1381 | controller: |
| 1382 | configmap: |
| 1383 | quota: |
| 1384 | instances: 10 |
| 1385 | cores: 20 |
| 1386 | ram: 51200 |
| 1387 | metadata_items: 128 |
| 1388 | injected_files: 5 |
| 1389 | injected_file_content_bytes: 10240 |
| 1390 | injected_file_path_length: 255 |
| 1391 | key_pairs: 100 |
| 1392 | server_groups: 10 |
| 1393 | server_group_members: 10 |
| 1394 | reservation_expire: 86400 |
| 1395 | until_refresh: 0 |
| 1396 | max_age: 0 |
| 1397 | |
Roman Lubianyi | ddd2c71 | 2020-03-26 14:08:10 +0200 | [diff] [blame] | 1398 | Set use_db_reconnect for Nova |
| 1399 | ======== |
| 1400 | |
| 1401 | .. code-block:: yaml |
| 1402 | |
| 1403 | nova: |
| 1404 | controller: |
| 1405 | database: |
| 1406 | use_db_reconnect: true |
| 1407 | |
| 1408 | .. code-block:: yaml |
| 1409 | |
| 1410 | nova: |
| 1411 | compute: |
| 1412 | database: |
| 1413 | use_db_reconnect: true |
| 1414 | |
Oleksii Molchanov | 1f9f661 | 2020-11-19 22:46:05 +0200 | [diff] [blame] | 1415 | Set qemu security_driver |
| 1416 | ======== |
| 1417 | |
| 1418 | .. code-block:: yaml |
| 1419 | |
| 1420 | nova: |
| 1421 | compute: |
| 1422 | security_driver: apparmor |
| 1423 | |
Taras Khlivnyak | db4aa58 | 2021-08-19 09:48:56 +0300 | [diff] [blame] | 1424 | |
| 1425 | Change files/directories permissions for nova service: |
| 1426 | ======================================= |
| 1427 | In order to change file permissions the following should be set: |
| 1428 | |
| 1429 | 'files' - block to set permissions for files. |
| 1430 | - full path to file |
| 1431 | - user ( default value is 'root' ) this parameter is optional. |
| 1432 | - group ( default value is 'nova' ) this parameter is optional |
| 1433 | - mode ( default value is '0640' ) this parameter is optional |
| 1434 | |
| 1435 | 'directories' - block to set permissions for directories. |
| 1436 | - full path to directory |
| 1437 | - user ( default value is 'root' ) this parameter is optional |
| 1438 | - group ( default value is 'nova' ) this parameter is optional |
| 1439 | - mode ( default value is '0750' ) this parameter is optional |
| 1440 | |
| 1441 | .. code-block:: yaml |
| 1442 | |
| 1443 | nova: |
| 1444 | files: |
| 1445 | /etc/nova/nova.conf: |
| 1446 | user: 'root' |
| 1447 | group: 'nova' |
| 1448 | mode: '0750' |
| 1449 | directories: |
| 1450 | /etc/nova: |
| 1451 | user: 'root' |
| 1452 | group: 'nova' |
| 1453 | mode: '0750' |
| 1454 | |
| 1455 | |
Oleh Hryhorov | 63ee845 | 2018-08-14 09:16:02 +0000 | [diff] [blame] | 1456 | Upgrades |
| 1457 | ======== |
| 1458 | |
| 1459 | Each openstack formula provide set of phases (logical bloks) that will help to |
| 1460 | build flexible upgrade orchestration logic for particular components. The list |
| 1461 | of phases might and theirs descriptions are listed in table below: |
| 1462 | |
| 1463 | +-------------------------------+------------------------------------------------------+ |
| 1464 | | State | Description | |
| 1465 | +===============================+======================================================+ |
| 1466 | | <app>.upgrade.service_running | Ensure that all services for particular application | |
| 1467 | | | are enabled for autostart and running | |
| 1468 | +-------------------------------+------------------------------------------------------+ |
| 1469 | | <app>.upgrade.service_stopped | Ensure that all services for particular application | |
| 1470 | | | disabled for autostart and dead | |
| 1471 | +-------------------------------+------------------------------------------------------+ |
| 1472 | | <app>.upgrade.pkgs_latest | Ensure that packages used by particular application | |
| 1473 | | | are installed to latest available version. | |
| 1474 | | | This will not upgrade data plane packages like qemu | |
| 1475 | | | and openvswitch as usually minimal required version | |
| 1476 | | | in openstack services is really old. The data plane | |
| 1477 | | | packages should be upgraded separately by `apt-get | |
| 1478 | | | upgrade` or `apt-get dist-upgrade` | |
| 1479 | | | Applying this state will not autostart service. | |
| 1480 | +-------------------------------+------------------------------------------------------+ |
| 1481 | | <app>.upgrade.render_config | Ensure configuration is rendered actual version. + |
| 1482 | +-------------------------------+------------------------------------------------------+ |
| 1483 | | <app>.upgrade.pre | We assume this state is applied on all nodes in the | |
| 1484 | | | cloud before running upgrade. | |
| 1485 | | | Only non destructive actions will be applied during | |
| 1486 | | | this phase. Perform service built in service check | |
| 1487 | | | like (keystone-manage doctor and nova-status upgrade)| |
| 1488 | +-------------------------------+------------------------------------------------------+ |
| 1489 | | <app>.upgrade.upgrade.pre | Mostly applicable for data plane nodes. During this | |
| 1490 | | | phase resources will be gracefully removed from | |
| 1491 | | | current node if it is allowed. Services for upgraded | |
| 1492 | | | application will be set to admin disabled state to | |
| 1493 | | | make sure node will not participate in resources | |
| 1494 | | | scheduling. For example on gtw nodes this will set | |
| 1495 | | | all agents to admin disable state and will move all | |
| 1496 | | | routers to other agents. | |
| 1497 | +-------------------------------+------------------------------------------------------+ |
| 1498 | | <app>.upgrade.upgrade | This state will basically upgrade application on | |
| 1499 | | | particular target. Stop services, render | |
| 1500 | | | configuration, install new packages, run offline | |
| 1501 | | | dbsync (for ctl), start services. Data plane should | |
| 1502 | | | not be affected, only OpenStack python services. | |
| 1503 | +-------------------------------+------------------------------------------------------+ |
| 1504 | | <app>.upgrade.upgrade.post | Add services back to scheduling. | |
| 1505 | +-------------------------------+------------------------------------------------------+ |
| 1506 | | <app>.upgrade.post | This phase should be launched only when upgrade of | |
| 1507 | | | the cloud is completed. Cleanup temporary files, | |
| 1508 | | | perform other post upgrade tasks. | |
| 1509 | +-------------------------------+------------------------------------------------------+ |
| 1510 | | <app>.upgrade.verify | Here we will do basic health checks (API CRUD | |
| 1511 | | | operations, verify do not have dead network | |
| 1512 | | | agents/compute services) | |
| 1513 | +-------------------------------+------------------------------------------------------+ |
Oleksandr Pidrepnyi | dabe8b2 | 2019-06-07 16:18:11 +0300 | [diff] [blame] | 1514 | |
| 1515 | |
| 1516 | Don't manage services scheduling while upgrade |
| 1517 | ---------------------------------------------- |
| 1518 | For some special cases, don't manage services scheduling both enable and disable |
| 1519 | before and after upgrade procedure. |
| 1520 | |
| 1521 | If 'manage_service_maintenance: true' or not present - default behavior, disable services |
| 1522 | before upgrade and enable it after upgrade. |
| 1523 | If 'manage_service_maintenance: false' - don't disable and don't enable upgraded services |
| 1524 | scheduling before and after upgrade. |
| 1525 | |
| 1526 | .. code-block:: yaml |
| 1527 | |
| 1528 | nova: |
| 1529 | upgrade: |
| 1530 | manage_service_maintenance: false |
Dzmitry Stremkouski | ce8475b | 2020-07-06 20:02:58 +0200 | [diff] [blame] | 1531 | |
| 1532 | Execute database maintenance tasks |
| 1533 | ---------------------------------- |
| 1534 | Cleanup stale records from nova database to make it smaller. |
| 1535 | This is helpful before any upgrade activity. |
| 1536 | It is safe to execute it generally without maintenance window same as online db_sync. |
| 1537 | |
| 1538 | Enable this pillar: |
| 1539 | |
| 1540 | .. code-block:: yaml |
| 1541 | |
| 1542 | nova: |
| 1543 | controller: |
| 1544 | db_purge: |
| 1545 | enabled: True |
| 1546 | |
| 1547 | Execute state nova.db.db_cleanup to purge stale records: |
| 1548 | |
| 1549 | .. code-block:: bash |
| 1550 | |
| 1551 | salt -C 'I@nova:controller:role:primary' state.apply nova.db.db_cleanup -l debug |
| 1552 | |
| 1553 | Starting from rocky release it is possible to pass days parameter. |
| 1554 | If you skip setting it, all records would be archived/purged: |
| 1555 | |
| 1556 | .. code-block:: yaml |
| 1557 | |
| 1558 | nova: |
| 1559 | controller: |
| 1560 | db_purge: |
| 1561 | enabled: True |
| 1562 | days: 45 |
| 1563 | |
| 1564 | Control pre-rocky releases parameters: |
| 1565 | |
| 1566 | .. code-block:: yaml |
| 1567 | |
| 1568 | nova: |
| 1569 | controller: |
| 1570 | db_purge: |
| 1571 | enabled: True |
| 1572 | max_rows: 1000 |
| 1573 | verbose: True |
| 1574 | |
| 1575 | Control rocky+ releases parameters: |
| 1576 | 'days' and 'all' parameters are mutually exclusive. |
| 1577 | |
| 1578 | .. code-block:: yaml |
| 1579 | |
| 1580 | nova: |
| 1581 | controller: |
| 1582 | db_purge: |
| 1583 | enabled: True |
| 1584 | all: True |
| 1585 | verbose: True |
| 1586 | all_cells: True |
Vladimir Khlyunev | 76b9e34 | 2020-09-15 12:39:55 +0400 | [diff] [blame] | 1587 | |
| 1588 | |
| 1589 | Configure filter schedulers |
| 1590 | --------------------------- |
| 1591 | At this moment only max_instances_per_host for NumInstancesFilter is supported. |
| 1592 | |
| 1593 | .. code-block:: yaml |
| 1594 | |
| 1595 | nova: |
| 1596 | controller: |
| 1597 | filter_scheduler: |
| 1598 | max_instances_per_host: 50 |