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